We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 355c882 commit 86da08dCopy full SHA for 86da08d
src/mcp/server/fastmcp/server.py
@@ -782,10 +782,11 @@ def streamable_http_app(self) -> Starlette:
782
)
783
784
# Create the ASGI handler
785
- async def handle_streamable_http(
786
- scope: Scope, receive: Receive, send: Send
787
- ) -> None:
788
- await self.session_manager.handle_request(scope, receive, send)
+ async def handle_streamable_http(request: Request) -> Response:
+ await self.session_manager.handle_request(
+ request.scope, request.receive, request._send
+ )
789
+ return Response()
790
791
# Create routes
792
routes: list[Route] = []
0 commit comments