chore: update deps

This commit is contained in:
Sun-ZhenXing
2025-08-07 19:05:18 +08:00
parent a837441bc4
commit 6a6dbe25d2
9 changed files with 452 additions and 123 deletions

View File

@@ -2,7 +2,7 @@ from operator import add, mul, sub, truediv
from mcp.server.fastmcp import FastMCP
from ..config import settings
from mcp_template_python.config import settings
mcp = FastMCP("math", instructions=settings.instructions)

View File

@@ -40,9 +40,6 @@ class Settings(BaseSettings):
enable_streamable_http: bool = True
"""Enable streamable HTTP for the MCP server."""
enable_websocket: bool = False
"""Enable WebSocket for the MCP server."""
websocket_path: str = "/ws"
"""Path for the WebSocket endpoint."""

View File

@@ -1,7 +1,7 @@
from fastapi import APIRouter
from ..app import MCP_MAP
from ..models.helpers import ArgumentsRequest
from mcp_template_python.app import MCP_MAP
from mcp_template_python.models.helpers import ArgumentsRequest
router = APIRouter(prefix="/v1", tags=["helpers"])

View File

@@ -49,7 +49,3 @@ for name, mcp in MCP_MAP.items():
app.mount(f"/{name}/compatible", mcp.sse_app())
if settings.enable_streamable_http:
app.mount(f"/{name}", mcp.streamable_http_app())
if settings.enable_websocket:
raise NotImplementedError(
"To use WebSocket, you need to switch to the `feat-ws` branch."
)