What probably matters to youSection of the release
What
claude mcp add-json adds an MCP server (a program that gives Claude Code extra tools) from a JSON description. You can now pass - in place of the JSON. The command then reads the description from standard input, meaning text piped in or typed after the command, up to 1 MiB.
This is refused when the command runs inside a Claude Code session, because the session's permission prompt would not show the server being added. Run the command outside the session instead.
Why
The server description can hold secrets such as tokens. Piping it in keeps those secrets out of the command line and your shell history.
Read from
Names in the bundleclaude mcp add-json
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.
Confirmed sinceAnthropic's documentation has since written up claude mcp add-json, 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.mcpsee the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up claude mcp add-json, on Connect Claude Code to tools via MCP.
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…