You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mcp: a tool argument that fails the published JSON Schema is refused with a bare -32602 "Input validation error" (no code, no status) that echoes unknown keys verbatim #37411
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpm:queueReady for the PM dispatch looppriority:p3
Triage: lands in area:ai · domain:server · Bug · priority:p3 · pm:queue · size S; rationale: a refusal convention gap on the MCP doors. The caller gets a refusal it can read, and only its own input back, so it is Impeded × developers only (rare configuration), p3.
Filing gate: ① · Source: fleet (found in the review of PR #37393 by the epic #37000 seat, relayed to triage) · reach: every tool on both MCP doors (HTTP and stdio), measured · evidence: measured.
维护者速读
问题:外接 AI 调用工具时,参数不符合工具公布的格式,返回的是 SDK 自带的「Input validation error」,没有平台约定的错误代码,还会把调用方传错的键原样回显(实测一次回显 300 字符、含换行和空字符、列出九个键)。
Over MCP, when a tools/call argument fails the tool's published JSON Schema, the SDK's own schema check refuses first with MCP error -32602: Input validation error.
The refusal carries no code or status from the platform's coded-refusal convention.
It echoes unknown keys verbatim. Measured: 300 characters with a raw newline and NUL, nine keys listed.
A schema refusal on either door carries the platform's coded-refusal shape (a stable code, and the status where the door has one), like the platform's own argument refusals.
Unknown keys are named in bounded, sanitised form: a capped count, with control characters stripped or escaped.
Done when
One test per door sends an argument that fails the schema (a wrong type and unknown keys) and asserts the coded refusal and the bounded key echo.
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpm:queueReady for the PM dispatch looppriority:p3
Activity