You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`sse_read_timeout` determines how long (in seconds) the client will wait for a new event before disconnecting. All other HTTP operations are controlled by `timeout`.
31
+
`sse_read_timeout` determines how long (in seconds) the client will wait for a new
32
+
event before disconnecting. All other HTTP operations are controlled by `timeout`.
Copy file name to clipboardexpand all lines: mcp_python/server/sse.py
+13-6
Original file line number
Diff line number
Diff line change
@@ -19,18 +19,23 @@
19
19
20
20
classSseServerTransport:
21
21
"""
22
-
SSE server transport for MCP. This class provides _two_ ASGI applications, suitable to be used with a framework like Starlette and a server like Hypercorn:
23
-
24
-
1. connect_sse() is an ASGI application which receives incoming GET requests, and sets up a new SSE stream to send server messages to the client.
25
-
2. handle_post_message() is an ASGI application which receives incoming POST requests, which should contain client messages that link to a previously-established SSE session.
22
+
SSE server transport for MCP. This class provides _two_ ASGI applications,
23
+
suitable to be used with a framework like Starlette and a server like Hypercorn:
24
+
25
+
1. connect_sse() is an ASGI application which receives incoming GET requests,
26
+
and sets up a new SSE stream to send server messages to the client.
27
+
2. handle_post_message() is an ASGI application which receives incoming POST
28
+
requests, which should contain client messages that link to a
0 commit comments