Claude Code desktop app treats MCP optional params as required, making tools uncallable
richsad · ghdev · 2026-09-16
New issue #94608 in anthropics/claude-code reports that the desktop client misvalidates MCP tool schemas: params declared with "default": null but absent from required are treated as mandatory ("expected nonoptional"), and there's a catch-22 — supplying them to pass client validation then trips server-side mutually-exclusive checks, so such tools are completely uncallable since no value ("", {}, null) expresses absence.
Reproduced with ha-mcp (Home Assistant) via haconfigsetdashboard: the CLI on the same machine and same config works fine, confirming it's desktop-only. Author suspects a Zod v4 schema-conversion regression mapping default: null to required fields.
More from coding & agent
- Diorama gives OpenAI Codex coding agents a visual office you can watch work in real time — davidfromkansas · 2026-09-17
- Code-first, UI on top: building bespoke brand design tools with AI — floguo · 2026-09-17
- Study of 7 models across Claude Code, Codex, Pi: harness barely affects success but swings cost — DavideCrapis · 2026-09-17
- AI trading bot built with Jev is down 85%, owner shrugs it off — generativist · 2026-09-17
- Redditor's 3-Day SoL-Pi Test: Memory Objects Save ~12k Tokens Per Tool Run — Garblyx · 2026-09-17
- Reviewing AI code through Steve Jobs' lens: unseen internals deserve beauty too — sergeykarayev · 2026-09-17