Add /mcp mount for Claude compatibility

- Mount MCP app on both /mcp/ and /mcp paths
- Claude is calling /mcp instead of /mcp/
- This should fix the 405 Method Not Allowed errors

🤖 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:28:22 +03:00
co-authored by Claude
parent 4bcd95cc41
commit 84b33f1f91
+1
View File
@@ -82,6 +82,7 @@ async def custom_401_handler(request: Request, exc: HTTPException):
# Mount MCP app as sub-application
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")