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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user