Use streamable_http_app() instead of to_asgi_app()
This commit is contained in:
+1
-1
@@ -581,7 +581,7 @@ def main():
|
||||
)
|
||||
|
||||
# Build ASGI app (FastMCP exposes to_asgi_app in current SDKs)
|
||||
app = mcp.to_asgi_app()
|
||||
app = mcp.streamable_http_app()
|
||||
|
||||
# Apply API key auth if configured
|
||||
if api_key:
|
||||
|
||||
Reference in New Issue
Block a user