From 84b33f1f916d708c2cda42e004c23276800925cc Mon Sep 17 00:00:00 2001 From: saidsurucu Date: Wed, 2 Jul 2025 03:28:22 +0300 Subject: [PATCH] Add /mcp mount for Claude compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- asgi_app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/asgi_app.py b/asgi_app.py index ea0d85e..da1e00f 100644 --- a/asgi_app.py +++ b/asgi_app.py @@ -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")