# Claude Code v2.1.327 adds MCP stdin input and safer config handling

published: 2026-11-18T00:05:39.968Z
topic: frameworks
source: https://github.com/anthropics/claude-code/releases/tag/v2.1.327
url: https://aiagentnews.io/stories/claude-code-v2-1-327-adds-mcp-stdin-input-and-safer-config-handling

Anthropic's Claude Code v2.1.327 adds a confirmation before /install-github-app changes a repository and a stdin option for MCP server JSON. It also fixes several cases where project MCP config files and exported files could be overwritten or lost.

The release, published on GitHub under the claude-code-publisher account on 17 Nov, adds a claude mcp add-json option that reads a server's JSON from stdin, which keeps tokens off the command line. That option is not available inside a Claude Code session. A new attributionProject setting lets gateways that set admin.billing_group_tag name a session's billing group.

Several fixes target lost data. Running claude mcp add or claude mcp remove with project scope no longer deletes other top-level keys in .mcp.json, such as $schema. The /export command now asks before overwriting an existing file. Remote MCP servers that drop during an outage such as a VPN disconnect are retried in the background for about a day.

Other changes affect behavior at runtime. WebFetch now refuses any URL longer than 2,000 characters before showing a permission prompt. Auto mode's notice about falling back to billed classifier requests says an upcoming release will remove that fallback, and actions it would have checked will be asked about or denied instead. The /tui classic name selects the non-fullscreen renderer.

## Why it matters if you build agents

Scripts that register MCP servers can now pass server JSON through stdin and keep credentials out of shell history. Project-scoped MCP setup no longer wipes unrelated keys from a shared .mcp.json, so teams can edit that file more safely.

Agents that rely on auto mode should review their allow rules now, since the classifier fallback is being removed and affected actions will prompt or be denied.
