Repository navigation
Conversation
…naming it Under MCP 2025-06-18 an invalid tool argument becomes a JSON-RPC -32602 error, which claude.ai shows only as "the tool failed (unavailable)". Tool calls now return it as an isError result naming the bad argument on every protocol. Continuation calls keep the protocol error, and spans and analytics still record the original failure.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The automated pipeline stopped on this pull request and will not merge it: the fix is written and reviewed, but proving it needs something no worker has:
It stays open for a person to finish or close. |
Problem
Under MCP 2025-06-18, which the server still offers first, an invalid tool argument (an unknown name, a value below its minimum, a malformed target) becomes a JSON-RPC -32602 error. claude.ai shows that only as "the tool failed (unavailable)", so the model never learns which argument was wrong.
Change
Toolkit tool calls now return an
InvalidParamsfailure as anisErrortool result carrying its message, on every protocol. Continuation calls (withrequestStateorinputResponses) keep the protocol error. The wrapper sits outside the span and analytics wrappers, so both still record the original failure.Scope
A small fix for an obvious bug: claude.ai users see a dead-end "unavailable" instead of the validation message.
Verification
Updated
McpHttpServer.test.tsandtoolkits/core.test.tsto expect anisErrorresult naming the bad argument (includingt3_thread_readwith an unknownposition). The 6 affected tests fail without the change and pass with it. src/mcp passes, and typecheck is clean. Not covered by a test: continuation calls, since the harness can't setrequestState.Model: Claude Opus 5.5 (
claude-opus-5-5). Harness: Claude Code, run from T3 Code.