Local SDK experiment

MCP 1.30 and 2.0 clients handling a tool error

Both clients resolved a successful lookup and a tool-reported error against the same SDK 1.30.0 server. All four requests returned HTTP 200. The two missing-key results carried isError: true.

JSON ↗Markdown ↗

Observations

Does moving from the 1.30.0 SDK client to the 2.0.0 client change how a missing lookup is reported?

@modelcontextprotocol/sdk 1.30.0 · known / missing isError
false / true
@modelcontextprotocol/client 2.0.0 · known / missing isError
false / true
MCP protocol header on tool requests
2025-11-25
View raw run evidence

Interpreting the result

In this migration scenario a caller can inspect isError after awaiting callTool in either package. Checking the HTTP status or handling only thrown exceptions misses the tool failure.

Reproduce this run

Run the commands in an empty directory. Download the script first to inspect the requests and assertions.

mkdir -p niubiagent-client-comparison && cd niubiagent-client-comparison
npm install --prefix . --ignore-scripts --no-audit --no-fund @modelcontextprotocol/sdk@1.30.0 @modelcontextprotocol/client@2.0.0 zod@4.5.4
curl -fsSLo compare-clients.mjs https://www.niubiagent.com/lab/compare-clients.mjs
node compare-clients.mjs
Download reproduction script ↓

References

Test your combination

Request a review of this scenario for your client and SDK version.

Request a test