Fix mount order for /mcp paths

- Mount /mcp before /mcp/ to fix routing
- FastAPI mount order is important for path matching

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
saidsurucu
2025-07-02 03:29:22 +03:00
co-authored by Claude
parent 84b33f1f91
commit 73c72a6039
+3 -2
View File
@@ -80,9 +80,10 @@ async def custom_401_handler(request: Request, exc: HTTPException):
return response
# Mount MCP app as sub-application
# Mount MCP app as sub-application
# Order matters: mount more specific paths first
app.mount("/mcp", mcp_app) # Mount without trailing slash for Claude compatibility
app.mount("/mcp/", mcp_app)
app.mount("/mcp", mcp_app) # Also mount without trailing slash for Claude compatibility
# FastAPI health check endpoint
@app.get("/health")