# Clone the repository
git clone https://github.com/jonigl/ollama-mcp-bridge.git
cd ollama-mcp-bridge
# Install dependencies (including dev tools)
uv syncWe use Black for consistent code formatting with a 120-character line length.
# Format all code
black .
# Check formatting without changes
black --check .Black is configured in pyproject.toml and runs automatically when installed via uv sync.
# Run all tests
uv run pytest
# Run specific test file
uv run pytest tests/test_unit.py -v
# Run tests in quiet mode
uv run pytest -q
# Run with verbose output
uv run pytest -vFor testing timeout behavior, you can set:
# Set custom Ollama proxy timeout (milliseconds)
OLLAMA_PROXY_TIMEOUT=600000 uv run pytest
# Disable timeouts (useful for debugging)
OLLAMA_PROXY_TIMEOUT=0 uv run pytest- Format your code:
black . - Run tests:
uv run pytest - Verify all tests pass
We follow Conventional Commits:
feat:New featuresfix:Bug fixesdocs:Documentation changesstyle:Code formatting (no functional changes)refactor:Code restructuringtest:Adding or updating testschore:Maintenance tasks
feat: add OLLAMA_PROXY_TIMEOUT environment variable for configurable HTTP timeouts
fix: resolve timeout issues with large models on localhost
docs: update README with new environment variable documentation
style: apply black formatting to test files
test: add comprehensive timeout behavior test coverage- Create a feature branch:
git checkout -b feat/your-feature-name - Implement your changes with tests
- Format code:
black . - Run tests:
uv run pytest - Commit with conventional commit message
- Push and create a pull request
Open an issue on GitHub if you have questions or need help.