mirror of
https://github.com/Sun-ZhenXing/mcp-template-python.git
synced 2026-02-04 10:13:31 +00:00
chore: move ws support to feat-ws
This commit is contained in:
@@ -50,4 +50,6 @@ for name, mcp in MCP_MAP.items():
|
||||
if settings.enable_streamable_http:
|
||||
app.mount(f"/{name}", mcp.streamable_http_app())
|
||||
if settings.enable_websocket:
|
||||
app.mount(f"/{name}/websocket", mcp.ws_app())
|
||||
raise NotImplementedError(
|
||||
"To use WebSocket, you need to switch to the `feat-ws` branch."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user