MCP 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.
- Other top-level keys in
.mcp.jsonare now kept when you add or remove a server. - Adding is refused if the file has no
mcpServerskey 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."
Editing 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.
* Fixed `claude mcp add-json` answering most mistakes with "Invalid configuration: : Invalid input"; it now says what to changesee the edit
| MCP servers you added with `claude mcp add` at the default local scope or the user scope | No | At those scopes, the command writes to `~/.claude.json` on your machine. Run `claude mcp add --scope project` from the repository root to wri…see the edit
`claude mcp add` fails with the enterprise-policy error above. Servers users had previously configured stop loading by each user's next session. Servers you provide through `managedMcpServers`, and anything else you allow alongside the man…see the edit
tips: [<>Use environment variable references for secrets: <C>{'${NOTION_TOKEN}'}</C></>, <>Lives at the project root, not inside <C>.claude/</C></>, <>For servers only you need, run <C>claude mcp add --scope user</C>. This writes to <C>~/.…see the edit
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.
> A cloud thread in a [project](https://code.claude.com/docs/en/claude-projects.md) loads less of the repository configuration in this table. It starts without `.mcp.json` servers or `.claude/settings.json` hooks and permission rules, and …cloud-environments see the edit
* Fixed `claude mcp remove` giving no way forward for a claude.ai connector: it now says to turn it off in /mcp or remove it on claude.aichangelog see the edit
> * To pipe the JSON in, pass `-` in its place: `cat server.json | claude mcp add-json <name> -`. Run the command outside a Claude Code session. Requires Claude Code v2.1.327 or later.mcp see the edit
| `Can't add to .mcp.json: it lists servers at the top level` | Move the servers under an `mcpServers` key, as in the [project-scope format](https://code.claude.com/docs/en/mcp.md#project-scope). |errors see the edit
claude mcp add on Claude Code changelog
Fixed claude mcp add and claude mcp remove with project scope deleting other top-level keys from .mcp.json, such as $schema or another…