Fix MCP SSE: use mcp.sse_app() + uvicorn.run() instead of run_sse()
This commit is contained in:
parent
d9231e23a0
commit
db27c0d64b
1 changed files with 2 additions and 1 deletions
|
|
@ -168,6 +168,7 @@ if __name__ == "__main__":
|
|||
if transport == "sse":
|
||||
host = os.getenv("MCP_HOST", "0.0.0.0")
|
||||
port = int(os.getenv("MCP_PORT", "3000"))
|
||||
mcp.run_sse(host=host, port=port)
|
||||
app = mcp.sse_app()
|
||||
uvicorn.run(app, host=host, port=port)
|
||||
else:
|
||||
mcp.run()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue