Update asgi_app.py
This commit is contained in:
+1
-2
@@ -86,8 +86,7 @@ async def custom_401_handler(request: Request, exc: HTTPException):
|
|||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
||||||
# Mount MCP app as sub-application at /mcp-server to avoid path conflicts
|
# MCP app handled via custom route handlers - mounting removed
|
||||||
app.mount("/mcp-server", mcp_app)
|
|
||||||
|
|
||||||
# Add custom route to handle /mcp requests and forward to mounted app
|
# Add custom route to handle /mcp requests and forward to mounted app
|
||||||
@app.api_route("/mcp", methods=["GET", "POST", "DELETE", "OPTIONS"])
|
@app.api_route("/mcp", methods=["GET", "POST", "DELETE", "OPTIONS"])
|
||||||
|
|||||||
Reference in New Issue
Block a user