File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,9 @@ class MCPServerSseParams(TypedDict):
244
244
sse_read_timeout : NotRequired [float ]
245
245
"""The timeout for the SSE connection, in seconds. Defaults to 5 minutes."""
246
246
247
+ transport : NotRequired [httpx .AsyncHTTPTransport ]
248
+ """The transport for the SSE connection."""
249
+
247
250
248
251
class MCPServerSse (_MCPServerWithClientSession ):
249
252
"""MCP server implementation that uses the HTTP with SSE transport. See the [spec]
@@ -293,6 +296,7 @@ def create_streams(
293
296
headers = self .params .get ("headers" , None ),
294
297
timeout = self .params .get ("timeout" , 5 ),
295
298
sse_read_timeout = self .params .get ("sse_read_timeout" , 60 * 5 ),
299
+ transport = self .params .get ("transport" , None ),
296
300
)
297
301
298
302
@property
You can’t perform that action at this time.
0 commit comments