There was an error while loading. Please reload this page.
1 parent e4a1e19 commit 0f24b02Copy full SHA for 0f24b02
1 file changed
server.py
@@ -96,4 +96,4 @@ 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
- mcp.run(transport="streamable-http", host="0.0.0.0", port=8000)
+ uvicorn.run(mcp.get_asgi_app(transport="streamable-http"), host="0.0.0.0", port=8000)
0 commit comments