Claude Code 2.1.327 adds stdin input for MCP servers and a billing group setting
Claude Code 2.1.327 lets users pass MCP server JSON through stdin and adds a setting to name a session's billing group, alongside many fixes.
Anthropic's changelog for Claude Code version 2.1.327, dated November 17, 2026, adds a way to pass a Model Context Protocol server's configuration to the tool through standard input. The command claude mcp add-json <name> - reads the server's JSON from stdin. The changelog says this lets tokens stay off the command line. The option is not available inside a Claude Code session.
The dash in place of a JSON argument is what switches the command to reading input from stdin. The changelog doesn't say how the server definition is stored once it is read, so the release notes alone don't show whether the token ends up somewhere else in the configuration. The stated purpose of the change is to keep the token from being typed into the command itself.
The release also adds an attributionProject setting that names a session's billing group. It is aimed at Claude apps gateways that set admin.billing_group_tag. The changelog doesn't describe how the name appears in billing records or what a gateway needs to do to read it.
Other additions include a confirmation before /install-github-app changes a repository. The /status view gains a list of broken agent, skill, command and output style files, keybinding errors, an unavailable sandbox, ignored permission settings and hook matchers that never match. A note in /config flags when other settings override a row. In the VS Code extension, a new 'Claude Code: Add to Chat' entry in the Explorer's right-click menu @-mentions the selected files and folders in the chat.
The changelog lists 100 bug fixes, and several touch configuration files directly. claude mcp add and claude mcp remove with project scope had been deleting other top-level keys from .mcp.json, such as $schema or another tool's servers. That is fixed. A related change makes claude mcp add --scope project stop, rather than overwrite the file, when .mcp.json lists its servers at the top level with no mcpServers key. /export now asks before overwriting an existing file. WebFetch now refuses a URL over 2,000 characters before a permission prompt appears. That change was made alongside a fix for stalls on some very long WebFetch URLs.
Many of the other entries change how permissions behave, and they are listed as changes rather than fixes. Examples include the PowerShell tool asking before one more command, Bash commands with very long variable expansions being denied, and auto mode ignoring more allow rules that run any package.
What changed
Claude Code 2.1.327 lets claude mcp add-json read an MCP server's JSON from stdin when given a dash in place of the JSON argument, and adds an attributionProject setting that names a session's billing group.
Type: New capability · Applies to: Claude Code 2.1.327, claude mcp add-json, attributionProject, Claude apps gateways, admin.billing_group_tag
Why it matters
Teams that script MCP server setup or manage billing through gateways get safer secret handling and clearer cost attribution. The .mcp.json fix removes a risk of silent configuration loss.
What you can do
If you script MCP server setup, switch token passing to the stdin form and verify any billing group tags you rely on for cost reporting.
Original source
Where we saw it
Claude Code changelog
AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it. How it works