Anthropic Breaking change major

Claude Code allowedMcpServers stops filtering managed stdio servers that use variables only in env

From Claude Code 2.1.305, allowedMcpServers no longer filters managed-mcp.json stdio servers that use ${VAR} only in env. A server the allowlist left out loads on upgrade; admins must add it to deniedMcpServers to keep it off.

What does this mean for me?

Action needed
  • Engineering leadership

    Cost, risk, timeline, team impact Action needed

    If your organization ships a managed-mcp.json and uses allowedMcpServers to keep some MCP servers off, some of those servers can switch on when developers upgrade to Claude Code 2.1.305. Have the owner of that config audit it now.

  • Engineer

    What to change, what breaks, what to test Action needed

    Check managed-mcp.json for stdio servers whose only ${VAR} substitution is in env. If allowedMcpServers was keeping any of them off, add them to deniedMcpServers before rolling out Claude Code 2.1.305.

  • General consumer

    Using the Claude apps, not the API No impact

    Nothing to do. This is an admin setting in Claude Code and does not affect the Claude apps.

Claude Code 2.1.305, released October 20, 2026, changes how allowedMcpServers treats servers defined in managed-mcp.json. A stdio server there that uses ${VAR} substitution only in its env block is no longer filtered by the allowlist. The changelog states the consequence directly: a server of this kind that your allowlist left out now loads on upgrade.

Organizations that ship a managed-mcp.json and relied on allowedMcpServers to keep some of its servers switched off should check for stdio servers whose only variable substitution is in env. To keep such a server off, add it to deniedMcpServers.

This extends the September 2 change that stopped allowedMcpServers filtering managed MCP servers. The rest of 2.1.305 is recorded in the 2.1.304–2.1.305 release entry.

Topics: Agents and tool use, Coding tools

Sources

Confidence
high
Verification
Verified: stated on the vendor's own pages
Date precision
exact
How this entry was made
Drafted by an agent, reviewed by a person