There was an error while loading. Please reload this page.
1 parent 0f24b02 commit d9f575cCopy full SHA for d9f575c
1 file changed
server.py
@@ -96,4 +96,5 @@ def query(sql_query: str) -> str:
96
if __name__ == "__main__":
97
# Streamable HTTP uses a single endpoint (default: /mcp)
98
# It supports both GET (handshake) and POST (messages) on the same URL.
99
- uvicorn.run(mcp.get_asgi_app(transport="streamable-http"), host="0.0.0.0", port=8000)
+ app = mcp.http_app()
100
+ uvicorn.run(app, host="0.0.0.0", port=8000)
0 commit comments