{"version":"2.1.327","anchor":"mcpjson-writes-now-keep-top-level-keys-and-refuse-to-add","canonical_anchor":"mcpjson-writes-now-keep-top-level-keys-and-refuse-to-add","heading":"Adding or removing project MCP servers no longer wipes other parts of .mcp.json","tier":"notice","area":"MCP","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/mcpjson-writes-now-keep-top-level-keys-and-refuse-to-add","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Adding or removing project MCP servers no longer wipes other parts of .mcp.json\n\n`claude mcp add` and `claude mcp remove` now keep the rest of `.mcp.json`, and refuse to add to a file that lists servers at the top level\n\n**What**\n\nMCP servers give Claude extra tools. At project scope they are listed in a `.mcp.json` file in your project, usually under an `mcpServers` key. Before, `claude mcp add` and `claude mcp remove` rewrote that file to hold only `mcpServers`, so any other top-level entries were lost.\n\n- Other top-level keys in `.mcp.json` are now kept when you add or remove a server.\n\n- Adding is refused if the file has no `mcpServers` key but lists servers directly at the top level. The message reads: \"Can't add to .mcp.json: it lists servers at the top level, and adding an \"mcpServers\" key would stop a plugin from loading them.\"\n\n**Why**\n\nEditing project servers from the command line no longer silently deletes other content in `.mcp.json`. It also no longer breaks a file that a plugin reads in the flat, top-level layout.\n\n- Area: MCP\n- Names: `claude mcp add`, `claude mcp remove`, `.mcp.json`\n- Tier: You'll notice\n- Useful: 4\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}