diff --git a/src/mcp/client/sse.py b/src/mcp/client/sse.py index 4f6241a7..2cec70aa 100644 --- a/src/mcp/client/sse.py +++ b/src/mcp/client/sse.py @@ -119,6 +119,7 @@ async def post_writer(endpoint_url: str): by_alias=True, mode="json", exclude_none=True, + timeout=httpx.Timeout(timeout, read=sse_read_timeout), ), ) response.raise_for_status()