shipfeedAI news, curated daily

05:27:56 CET
24 JUN05:27:56shipfeed
pull to refreshlast sync
Just in — 30 new
§ tools · storyline

Exposes statusCode, url, and responseBody on MCPClientError for HTTP

Vercel AI SDK's MCP package adds `statusCode`, `url`, and `responseBody` fields to `MCPClientError` so HTTP transport failures expose structured context for downstream consumers.

May 27 · · primary fetch1 sourceupdated May 27 ·

Patch Changes f7bc0b4: feat(mcp): expose `statusCode`, `url`, and `responseBody` on `MCPClientError` for HTTP transport failures `MCPClientError` now carries structured HTTP context when it originates from the streamable HTTP transport. This lets downstream consumers (e.g. agent frameworks that need to decide whether to fall back from streamable HTTP to legacy SSE transport per the MCP spec) branch on the actual response status without parsing the error message string.

Fields are optional — they remain `undefined` for stdio transport errors and for non-response failures (network errors, aborts).

read full article on github.com
§ sources1 publication · timeline below
  1. github.comVercel AI SDK — mcp v2.0.0-canary.55primary