{"version":"2.1.330","anchor":"mcp-allowlist-env-defaults-on-for-local-agent-entrypoint","canonical_anchor":"mcp-allowlist-env-defaults-on-for-local-agent-entrypoint","heading":"Local-agent sessions now start MCP servers with a trimmed environment by default","tier":"notice","area":"MCP","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/mcp-allowlist-env-defaults-on-for-local-agent-entrypoint","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Local-agent sessions now start MCP servers with a trimmed environment by default\n\nWhen Claude Code runs as a local agent, `CLAUDE_CODE_MCP_ALLOWLIST_ENV` is treated as on unless you set it yourself\n\n**What**\n\n`CLAUDE_CODE_MCP_ALLOWLIST_ENV` makes Claude Code start local MCP servers (outside programs that add abilities) with only a safe baseline of environment settings plus the server's own, instead of your full shell environment. If you set it, your value is used. If you don't, it now counts as on when `CLAUDE_CODE_ENTRYPOINT` is `local-agent`.\n\n**Why**\n\nIn local-agent sessions, MCP servers may no longer see your shell's variables unless they are configured for that server.\n\n- Area: MCP\n- Names: `CLAUDE_CODE_MCP_ALLOWLIST_ENV`, `CLAUDE_CODE_ENTRYPOINT`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: yes"}