Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.327 ·

Adding or removing project MCP servers no longer wipes other parts of .mcp.json

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

You'll notice Bug Fixes
JSON All of v2.1.327
You'll noticeTier: how much it should matter to you
4Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
MCPArea: what it touches
Bug FixesKind: in v2.1.327,
What probably matters to youSection of the release
What

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.json are now kept when you add or remove a server.
  • 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."
Why

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.

Read from
Names in the bundleclaude mcp addclaude mcp remove.mcp.json
What the documentation says
claude mcp add Claude Code changelog modified, high confidence * Fixed `claude mcp add-json` answering most mistakes with "Invalid configuration: : Invalid input"; it now says what to change see the edit
claude mcp add Configure cloud environments modified, medium confidence | 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 Control MCP server access for your organization modified, medium confidence `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
claude mcp add Explore the .claude directory modified, low confidence 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
Since it was published

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.

Added since A small documentation edit on Configure cloud environments touched a line naming .mcp.json after this was published. > 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
Confirmed since Anthropic's documentation has since written up claude mcp remove, on Claude Code changelog. * 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.ai changelog see the edit
Confirmed since Anthropic's documentation has since written up claude mcp add, on Connect Claude Code to tools via MCP. > * 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
Confirmed since Anthropic's documentation has since written up .mcp.json, on Error reference. | `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
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesclaude mcp add on Claude Code changelog
Anthropic's release notes agreeFixed claude mcp add and claude mcp remove with project scope deleting other top-level keys from .mcp.json, such as $schema or another…

See this entry in the whole of v2.1.327 →

Feedback