Skip to content

Commit d9f575c

Browse files
committed
wtf
1 parent 0f24b02 commit d9f575c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,5 @@ def query(sql_query: str) -> str:
9696
if __name__ == "__main__":
9797
# Streamable HTTP uses a single endpoint (default: /mcp)
9898
# 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)
99+
app = mcp.http_app()
100+
uvicorn.run(app, host="0.0.0.0", port=8000)

0 commit comments

Comments
 (0)