What
MCP servers are outside services that give Claude extra tools. When you add one, for example with claude mcp add-json, and its configuration is invalid, the error now says what is wrong. Before, it showed a list of raw validation messages. The cases it explains are:
- the config is not a JSON object
- it has a "url" but no "type", with a hint to add
"type": "http"(or "sse" or "ws") - it is wrapped in a
mcpServersblock - it has no command
- its type is not one Claude Code knows
Why
You can fix a broken MCP server config straight from the error message.
Names in the bundleclaude mcp add-json
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up claude mcp add-json, on Claude Code changelog.
* Added `claude mcp add-json <name> -` to read the server's JSON from stdin, so tokens can stay off the command line; not available inside a Claude Code sessionchangelog see the edit
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up claude mcp add-json, on Claude Code changelog.
Anthropic's release notes agree
Fixed claude mcp add-json answering most mistakes with "Invalid configuration: : Invalid input"; it now says what to change