feat: remove sse

This commit is contained in:
Sun-ZhenXing
2026-02-28 10:05:07 +08:00
parent f7051ac028
commit e78f4dae6c
6 changed files with 131 additions and 131 deletions

View File

@@ -23,9 +23,6 @@ class MCPSettings(BaseSettings):
enable_helpers_router: bool = True
"""Enable the helpers router for the MCP server."""
enable_sse: bool = False
"""Enable Server-Sent Events (SSE) for the MCP server."""
enable_streamable_http: bool = True
"""Enable streamable HTTP for the MCP server."""

View File

@@ -51,7 +51,5 @@ if settings.mcp.enable_helpers_router:
app.include_router(helpers_router)
for name, mcp in MCP_MAP.items():
if settings.mcp.enable_sse:
app.mount(f"/{name}/compatible", mcp.sse_app())
if settings.mcp.enable_streamable_http:
app.mount(f"/{name}", mcp.streamable_http_app())