Skip to content

Commit f5c7a5e

Browse files
Kludexfelixweinberger
authored andcommitted
Add missing paramters
1 parent fca6281 commit f5c7a5e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/mcp/client/streamable_http.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,8 @@ async def streamablehttp_client(
522522
timeout: float | timedelta = 30,
523523
sse_read_timeout: float | timedelta = 60 * 5,
524524
terminate_on_close: bool = True,
525+
httpx_client_factory: McpHttpClientFactory = create_mcp_http_client,
526+
auth: httpx.Auth | None = None,
525527
) -> AsyncGenerator[
526528
tuple[
527529
MemoryObjectReceiveStream[SessionMessage | Exception],
@@ -530,5 +532,7 @@ async def streamablehttp_client(
530532
],
531533
None,
532534
]:
533-
async with streamable_http_client(url, headers, timeout, sse_read_timeout, terminate_on_close) as streams:
535+
async with streamable_http_client(
536+
url, headers, timeout, sse_read_timeout, terminate_on_close, httpx_client_factory, auth
537+
) as streams:
534538
yield streams

0 commit comments

Comments
 (0)