From 66487a2dd4e2079f00ede3c85bf0eafa001d77c8 Mon Sep 17 00:00:00 2001 From: Max Isbey <224885523+maxisbey@users.noreply.github.com> Date: Fri, 8 May 2026 13:42:35 +0000 Subject: [PATCH] refactor: import SSEError from httpx_sse public API `SSEError` is re-exported at the `httpx_sse` package top level and listed in `__all__` in every release >=0.4.0; the `_exceptions` submodule is private. Importing via the public path avoids breakage if httpx-sse reorganises its internals. No behaviour change (same class object). --- src/mcp/client/sse.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mcp/client/sse.py b/src/mcp/client/sse.py index 193204a15..74e5ba806 100644 --- a/src/mcp/client/sse.py +++ b/src/mcp/client/sse.py @@ -7,8 +7,7 @@ import anyio import httpx from anyio.abc import TaskStatus -from httpx_sse import aconnect_sse -from httpx_sse._exceptions import SSEError +from httpx_sse import SSEError, aconnect_sse from mcp import types from mcp.shared._context_streams import create_context_streams