This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Patch for ollama-mcp-bridge api.py | |
| # Add this endpoint BEFORE the catch-all proxy route (@app.api_route("/{path_name:path}")) | |
| # | |
| # Location: ~/.local/share/uv/tools/ollama-mcp-bridge/lib/python3.*/site-packages/ollama_mcp_bridge/api.py | |
| @app.post( | |
| "/v1/chat/completions", | |
| summary="OpenAI-compatible chat completions with MCP tool injection", | |
| description="Proxy to Ollama's /v1/chat/completions with MCP tools merged into the request.", | |
| ) |