Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.219 ·

MCP allow/deny rules compare expanded env-var values

Your MCP allow and deny rules now match servers whose commands or URLs use environment variables.

You'll notice Improvements
JSON All of v2.1.219
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
MCPArea: what it touches
ImprovementsKind: in v2.1.219,
ImprovementsSection of the release
What

Matching a server against allowedMcpServers and deniedMcpServers now expands environment-variable references in the configured command and URL before comparing, so rules match what actually runs rather than the literal template.

Details
  • The deny path uses a fallback env when expansion needs one.
  • An allow-rule URL whose expansion is flagged unsafeExpansion is skipped rather than treated as a match.
  • A separate new validator flags untrimmed whitespace in MCP config command, url, args, and env/header names and values.
Evidence

unsafeExpansion

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Read from

See this entry in the whole of v2.1.219 →

Feedback