Update asgi_app.py

This commit is contained in:
saidsurucu
2025-07-09 17:35:12 +03:00
parent 28e9a47464
commit 0a302bb13b
+1 -2
View File
@@ -86,8 +86,7 @@ async def custom_401_handler(request: Request, exc: HTTPException):
return response
# Mount MCP app as sub-application at /mcp-server to avoid path conflicts
app.mount("/mcp-server", mcp_app)
# MCP app handled via custom route handlers - mounting removed
# Add custom route to handle /mcp requests and forward to mounted app
@app.api_route("/mcp", methods=["GET", "POST", "DELETE", "OPTIONS"])