π The fast, Pythonic way to build MCP servers and clients.
Add response return
Jeremiah Lowin427ef7f1c48f
diff --git a/src/fastmcp/server/http.py b/src/fastmcp/server/http.pyindex 42a59e72c..09aad33df 100644--- a/src/fastmcp/server/http.py+++ b/src/fastmcp/server/http.py@@ -150,9 +150,9 @@ def create_sse_app(else:# Auth is disabled, no need for RequireAuthMiddleware# Since handle_sse is an ASGI app, we need to create a compatible endpoint- async def sse_endpoint(request: Request) -> None:+ async def sse_endpoint(request: Request) -> Response:# Convert the Starlette request to ASGI parameters- await handle_sse(request.scope, request.receive, request._send) # type: ignore[reportPrivateUsage]+ return await handle_sse(request.scope, request.receive, request._send) # type: ignore[reportPrivateUsage]routes.append(Route(