This guide is intended for developers who want to contribute to MLX Omni Server or create their own extensions.
- Clone the repository:
git clone https://github.com/madroidmaq/mlx-omni-server.git
cd mlx-omni-server
- Install dependencies using Poetry:
poetry install
There are two ways to run the server during development:
# Option 1: Using poetry run
poetry run uvicorn mlx_omni_server.main:app --reload --host 0.0.0.0 --port 10240
# Option 2: Using poetry shell
poetry shell
uvicorn mlx_omni_server.main:app --reload --host 0.0.0.0 --port 10240
The --reload
flag enables hot-reload, which automatically restarts the server when code changes are detected. This is particularly useful during development.
poetry run mlx-omni-server
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature
- Follow the code style:
- Write clear commit messages
- Push to your branch:
git push origin feature/amazing-feature
- Open a Pull Request with:
- Clear description of the changes
- Any relevant issue numbers
- Screenshots for UI changes (if applicable)
Run the test suite:
poetry run pytest
The documentation is written in Markdown and stored in the docs/
directory.
- Open an issue for bugs or feature requests
- Join discussions in the GitHub Discussions section
- Check existing issues and pull requests before creating new ones