{"version":"2.1.326","anchor":"mcp-add-clearer-config-validation-errors","canonical_anchor":"mcp-add-clearer-config-validation-errors","heading":"Adding an MCP server now explains what is wrong with a bad config","tier":"notice","area":"MCP","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/mcp-add-clearer-config-validation-errors","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Adding an MCP server now explains what is wrong with a bad config\n\nWhen an MCP server config is invalid, Claude Code now names the problem, such as a missing \"type\" or command, and how to fix it\n\n**What**\n\nMCP 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:\n\n- the config is not a JSON object\n\n- it has a \"url\" but no \"type\", with a hint to add `\"type\": \"http\"` (or \"sse\" or \"ws\")\n\n- it is wrapped in a `mcpServers` block\n\n- it has no command\n\n- its type is not one Claude Code knows\n\n**Why**\n\nYou can fix a broken MCP server config straight from the error message.\n\n- Area: MCP\n- Names: `claude mcp add-json`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}