Patch Changes
-
#11804
0552450Thanks @byhow! - Keep the SDK error ascauseafter an HTTP→SSE fallback. When a Streamable HTTP connection falls back to SSE and the SSE attempt fails, the thrownMCPClientErrornow has the SSE attempt's SDK error (anUnauthorizedError, or the SSE 401) as itscause, one level down as for a direct HTTP or SSE connection, instead of a secondMCPClientError. Code that checksUnauthorizedError.isInstance(error.cause), such as an OAuth login handler, now works for SSE-only servers too. -
#11845
1b5ac16Thanks @hntrl! - Use a single underscore between MCP server names and tool names (server_toolinstead ofserver__tool). The separator foradditionalToolNamePrefixremains unchanged (mcp__server_tool).