{"version":"2.1.327","anchor":"claude-mcp-add-json-can-read-json-from-stdin","canonical_anchor":"claude-mcp-add-json-can-read-json-from-stdin","heading":"claude mcp add-json can read the server's JSON from standard input","tier":"use","area":"MCP","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/claude-mcp-add-json-can-read-json-from-stdin","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### `claude mcp add-json` can read the server's JSON from standard input\n\nPass `-` to `claude mcp add-json` to read the server JSON from standard input, up to 1 MiB, outside a Claude Code session\n\n**What**\n\n`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.\n\nThis 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.\n\n**Why**\n\nThe server description can hold secrets such as tokens. Piping it in keeps those secrets out of the command line and your shell history.\n\n- Area: MCP\n- Names: `claude mcp add-json`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}