{"name":"--env","slug":"env","family":"cli","title":"CLI flags","noun":"CLI flag","description":"`-e, --env <env...>` is an option of `claude mcp add`. Each value must be `KEY=value` (anything else is an error) and the pairs become the `env` of a stdio server; for HTTP and SSE transports the values are not used. Claude Code also passes `--env KEY=value` itself to its Windows sandbox runner for each variable of a sandboxed command, and the Bash permission parser treats `--env` as taking a value when it unwraps `strace` and GNU `parallel` commands.","description_source":"code","described_by":{"bundle":"2.1.286","author":"claude-opus-5-5"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":149,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[],"entries_total":0,"docs":[{"source":"api","path":"cli-sdks-libraries\/cli\/scripting","title":"scripting","documented":false},{"source":"api","path":"cli-sdks-libraries\/cli\/using","title":"using","documented":false},{"source":"api","path":"managed-agents\/budgets","title":"budgets","documented":false},{"source":"api","path":"managed-agents\/define-outcomes","title":"DCF Model Rubric","documented":false},{"source":"api","path":"managed-agents\/environments","title":"environments","documented":false},{"source":"api","path":"managed-agents\/files","title":"files","documented":false},{"source":"api","path":"managed-agents\/github","title":"github","documented":false},{"source":"api","path":"managed-agents\/mcp-connector","title":"mcp-connector","documented":false},{"source":"api","path":"managed-agents\/multiagent-orchestration","title":"multiagent-orchestration","documented":false},{"source":"api","path":"managed-agents\/onboarding","title":"onboarding","documented":false}],"docs_total":12,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/cli\/env","family_url":"https:\/\/changelogs.core-directive.com\/reference\/cli.json"}