{"version":"2.1.328","anchor":"claude-code-shell-mcp-servers-env-var-is-new","canonical_anchor":"claude-code-shell-mcp-servers-env-var-is-new","heading":"Claude Code passes an MCP server list to shells as CLAUDE_CODE_SHELL_MCP_SERVERS","tier":"internal","area":"Shell","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/claude-code-shell-mcp-servers-env-var-is-new","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Claude Code passes an MCP server list to shells as `CLAUDE_CODE_SHELL_MCP_SERVERS`\n\nClaude Code now builds a value named CLAUDE_CODE_SHELL_MCP_SERVERS where it used to pass an auto mode value\n\n**Unclear.** It is not clear what reads this variable or when it is set.\n\n**What**\n\nClaude Code now builds a value and passes it on as the environment variable `CLAUDE_CODE_SHELL_MCP_SERVERS`. An environment variable is a named value a program reads when it runs. It takes the place of an auto mode value that was passed at the same point before.\n\n**Why**\n\nThis looks like a way to hand details of MCP servers, add-ons that give Claude Code extra tools, to shell commands.\n\n- Area: Shell\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}