# Vercel's @ai-sdk/mcp 2.0.103 keeps HTTP details on MCPClientError

published: 2026-11-23T01:05:27.851Z
topic: mcp
source: https://github.com/vercel/ai/releases/tag/%40ai-sdk%2Fmcp%402.0.103
url: https://aiagentnews.io/stories/vercel-s-ai-sdk-mcp-2-0-103-keeps-http-details-on-mcpclienterror

Vercel has released @ai-sdk/mcp 2.0.103, a patch version of the MCP client package in its AI SDK repository. The release's one listed change makes MCPClientError keep the HTTP status, URL and response body when a failed HTTP response carries a JSON-RPC error.

The release is tagged @ai-sdk/mcp@2.0.103 in the vercel/ai repository on GitHub. It contains a single patch change, which is a fix to the mcp module.

The fix covers failed HTTP responses whose body contains a JSON-RPC error. In those cases, MCPClientError now keeps the HTTP status, the URL and the response body instead of dropping them.

No other changes are listed for this version, so the update is limited to error handling in the MCP client.

## Why it matters if you build agents

If your agent calls HTTP MCP servers and catches MCPClientError, you can now read the status, URL and response body directly from the error. This makes logging and retry decisions easier to base on the actual server response.

Code that tries to recover those details from the error message is no longer needed for this case. Check that your error handling works with the new fields after upgrading.
