Source: github.com/vercel/ai/releases/tag/%40ai-sdk%2Fmcp%402.0.103
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.
Get stories like this every weekday
One short email with the day's agent tooling news.