Skip to content

Commit 9137b98

Browse files
committed
Add missing paramters
1 parent 839f9d1 commit 9137b98

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
@@ -518,6 +518,8 @@ async def streamablehttp_client(
518518
timeout: float | timedelta = 30,
519519
sse_read_timeout: float | timedelta = 60 * 5,
520520
terminate_on_close: bool = True,
521+
httpx_client_factory: McpHttpClientFactory = create_mcp_http_client,
522+
auth: httpx.Auth | None = None,
521523
) -> AsyncGenerator[
522524
tuple[
523525
MemoryObjectReceiveStream[SessionMessage | Exception],
@@ -526,5 +528,7 @@ async def streamablehttp_client(
526528
],
527529
None,
528530
]:
529-
async with streamable_http_client(url, headers, timeout, sse_read_timeout, terminate_on_close) as streams:
531+
async with streamable_http_client(
532+
url, headers, timeout, sse_read_timeout, terminate_on_close, httpx_client_factory, auth
533+
) as streams:
530534
yield streams

0 commit comments

Comments
 (0)