Skip to content

Commit 08b02ff

Browse files
committed
MCP enable over UNIX socket
Signed-off-by: John <[email protected]>
1 parent 506d73c commit 08b02ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/agents/mcp/server.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ class MCPServerSseParams(TypedDict):
244244
sse_read_timeout: NotRequired[float]
245245
"""The timeout for the SSE connection, in seconds. Defaults to 5 minutes."""
246246

247+
transport: NotRequired[httpx.AsyncHTTPTransport]
248+
"""The transport for the SSE connection."""
249+
247250

248251
class MCPServerSse(_MCPServerWithClientSession):
249252
"""MCP server implementation that uses the HTTP with SSE transport. See the [spec]
@@ -293,6 +296,7 @@ def create_streams(
293296
headers=self.params.get("headers", None),
294297
timeout=self.params.get("timeout", 5),
295298
sse_read_timeout=self.params.get("sse_read_timeout", 60 * 5),
299+
transport=self.params.get("transport", None),
296300
)
297301

298302
@property

0 commit comments

Comments
 (0)