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
+2 -1
View File
@@ -81,8 +81,9 @@ async def custom_401_handler(request: Request, exc: HTTPException):
return response
# 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")