Use streamable_http_app() instead of to_asgi_app()

This commit is contained in:
2026-06-13 16:34:59 +00:00
parent 8e93b39f0a
commit 57a225b749
+1 -1
View File
@@ -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: