Skip to content

An editorial team and a community building with AI

← All articles

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 .git folder entries created after a command runs.
  • The permissions.blockReadsOutsideWorkingDirectories setting now blocks or asks about more Bash commands.
  • A new mcp add-json command reads server configuration from standard input, keeping tokens out of shell history.
  • A new /status view 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-app modifies a repository.
  • A new attributionProject setting names a session's billing group, alongside a new x-claude-code-managed-settings-checksum gateway header.
  • The release includes more than 100 bug fixes across Remote Control, permissions, MCP, artifacts and sessions.

Sources

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

Claude Code 2.1.327 hardens the Bash sandbox and adds stdin MCP config | vibecoding.inc