Claude Code 2.1.327 adds stdin input for MCP server JSON and runs shell start-up files ahead of the first Bash approval
Claude Code 2.1.327 lets claude mcp add-json read a server's JSON from stdin, lists broken config files in /status, starts shell start-up files before the first Bash command is approved, and tightens several permission, worktree and artifact checks.
What does this mean for me?
Engineering leadership
Cost, risk, timeline, team impact Worth knowingA routine Claude Code release. If your security policy treats shell start-up files as sensitive, note that 2.1.327 can run them before a first Bash command is approved; have managed settings set CLAUDE_CODE_DISABLE_SHELL_HEAD_START=1 if that is unacceptable.
Engineer
What to change, what breaks, what to test Worth knowingUse `claude mcp add-json <name> -` to pipe server JSON with tokens via stdin. Set `CLAUDE_CODE_DISABLE_SHELL_HEAD_START=1` to stop shell start-up files running before the first Bash approval, and expect more permission prompts for paths near working-directory boundaries and symlinks.
General consumer
Using the Claude apps, not the API No impactNothing to do. This is a Claude Code developer release and does not change the Claude apps.
Claude Code 2.1.327 is a large release, mostly fixes. The changes a user would notice:
New. claude mcp add-json <name> - reads the server’s JSON from stdin, so tokens can stay off the command line (not available inside a Claude Code session). /status now lists broken agent, skill, command and output-style files, keybinding errors, an unavailable sandbox, ignored permission settings and hook matchers that never match, and /config notes when another settings source overrides a row. An attributionProject setting names a session’s billing group for Claude apps gateways that set admin.billing_group_tag. /tui classic is the new name for the non-fullscreen renderer; /tui default still works. In VS Code, “Claude Code: Add to Chat” appears on the Explorer’s right-click menu.
Shell start-up before approval. To speed up a session’s first Bash command, shell start-up files may now run before that command is approved, even if it is then refused. Setting CLAUDE_CODE_DISABLE_SHELL_HEAD_START=1 turns this off.
Stricter checks. ExitWorktree asks before removing a worktree that may hold unsaved work. What counts as inside a working directory changed, so some paths now ask for permission, and path checks refuse some symbolic links. permissions.blockReadsOutsideWorkingDirectories asks about, or denies, more Bash commands in bypass and auto modes. Auto mode ignores more allow rules that run any package (such as Bash(pnpm dlx *)), and its notice about falling back to billed classifier requests now says an upcoming release removes that fallback. claude mcp add --scope project stops instead of overwriting .mcp.json when the file lists servers at the top level without an mcpServers key, and a project-scope claude mcp add or remove no longer deletes other top-level keys. Bash commands whose variables expand to very long text are denied. Claude in Chrome refuses to upload some credential files.
Fixes worth knowing. /export no longer overwrites an existing file without asking. Remote Control in worktree mode no longer deletes a running session’s git-ignored files, such as .env, when the server stops. claude -p no longer hangs when fetching a model’s settings stalls at a proxy; it continues after 10 seconds.
The changelog carries no dates. 2.1.327 appeared between the 2026-11-17 and 2026-11-18 21:00 UTC fetches, and its GitHub release page could not be read from this environment, so the date is approximate (2026-11-17 or 2026-11-18).
API surface
| Parameter | Change | Breaking | Models |
|---|---|---|---|
claude mcp add-json <name> - | added | no | |
attributionProject | added | no | |
CLAUDE_CODE_DISABLE_SHELL_HEAD_START | added | no | |
permissions.blockReadsOutsideWorkingDirectories | changed | no |
Topics: Agents and tool use, Coding tools