Commit ececf7a
The `_note` on ToolSchema's `parameters` entry asserted that
registerToolFromDefinition registered every bridged tool with NO
inputSchema -- "so this key never reaches an MCP client" -- and cited
that as the asymmetry with `name` / `description` (filed as #13271).
PR #13317 (e29fc21, merged 2026-08-30T04:42:09Z) fixed exactly that:
mcp-server-runtime.ts#toolInputSchema now converts `parameters` through
zod@4's fromJSONSchema and registerToolFromDefinition forwards the
result as the SDK inputSchema, which the SDK converts straight back to
JSON Schema for tools/list -- the key reaches MCP clients too.
The note is corrected to record the fix while keeping the sharper
nuance the original note called out: the pre-fix behaviour was not
"no schema" but the SDK synthesising EMPTY_OBJECT_JSON_SCHEMA
(`{"type":"object","properties":{}}`) for a schema-less registration --
a positive claim that the tool takes no arguments, not silence.
The grade does not move: `parameters` was live before this change and
stays live -- the cloud LLM path (vercel-adapter.ts#buildVercelOptions)
has read it all along, and that is what the verdict has always rested
on. This closes an asymmetry between two consumers, not a change in
liveness status.
Fixes #13345
Claude-Session: https://claude.ai/code/session_01KX8wnyjStaZcuMyAMNsy3N
Co-authored-by: Claude <noreply@anthropic.com>
1 parent e3c61c0 commit ececf7a
2 files changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments