News · Anthropic · 2 min read
Event date: · Published:
Claude Code 2.1.327 hardens the Bash sandbox and adds stdin MCP config
Anthropic's November 17, 2026 release tightens default Bash sandbox file access, quarantines unexpected .git changes, and adds a stdin-based way to register MCP servers without exposing tokens.
Anthropic released Claude Code 2.1.327 on November 17, 2026, tightening the Bash sandbox's default file-system access and adding a way to register MCP servers without exposing tokens, according to the Claude Code changelog.
What changed in 2.1.327
- On macOS, Linux and WSL, the Bash sandbox no longer writes to some sensitive home-folder paths by default, though exceptions can be allow-listed through
sandbox.filesystem.allowWrite. - The sandbox now quarantines unexpected
.gitfolder entries created after a command runs. - The
permissions.blockReadsOutsideWorkingDirectoriessetting now blocks or asks about more Bash commands. - A new
mcp add-jsoncommand reads server configuration from standard input, keeping tokens out of shell history. - A new
/statusview lists broken agent, skill, command and output-style files, keybinding errors, unavailable sandbox state, ignored permission settings and non-matching hook matchers. - Subagent progress summaries on Bedrock, Vertex AI and Microsoft Foundry are now built from short notes instead of full conversation history, reducing token use.
What it means for people who build with AI
Claude Code is one of the most widely used AI coding agents, so these changes close real gaps for anyone who runs it with broad file-system access. Unrestricted writes to home-folder paths and unnoticed changes to a .git folder are exactly the kind of risk that matters once an agent can run shell commands on its own, and the sandbox tightening plus quarantine behavior address both directly. The stdin-based MCP registration command also keeps server tokens out of shell history, where they could otherwise linger.
Also in this release
- Claude Code now asks for confirmation before
/install-github-appmodifies a repository. - A new
attributionProjectsetting names a session's billing group, alongside a newx-claude-code-managed-settings-checksumgateway header. - The release includes more than 100 bug fixes across Remote Control, permissions, MCP, artifacts and sessions.
Sources
- Claude Code changelog (Anthropic, November 17, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.