Skip to content llms.txt

env_var_expansion

Whether MCP server configuration supports environment variable expansion. Reduces the need for hardcoded secrets in config files.

Type: bool Content type: mcp

ProviderSupportedMechanism
claude-codemcp_env_var_expansion: ${VAR} and ${VAR:-default} syntax in command, args, env, url, and headers fields of .mcp.json
crushenv_variable_expansion: Crush MCP configuration supports environment variable references in server env blocks
cursorServer env blocks reference environment variables so secrets can be read from the shell environment rather than hardcoded.
gemini-clienv_variable_expansion: Gemini CLI MCP configuration supports environment variable expansion for secrets and paths
opencodeenv_variable_expansion: environment variables configured in server env blocks
roo-codeenv_variable_expansion: server env blocks accept environment variables so secrets can be referenced from the shell environment
windsurfconfig_interpolation: Windsurf MCP configuration supports ${VAR} interpolation for environment variables
ampAmp MCP configuration does not document environment variable expansion
clineCline MCP configuration does not document environment variable expansion syntax
codexCodex MCP configuration does not document environment variable expansion
copilot-cliCopilot CLI MCP configuration does not document environment variable expansion
factory-droidFactory Droid MCP configuration does not document environment variable expansion
kiroKiro MCP configuration does not document environment variable expansion
zedno automatic environment variable expansion documented in Zed MCP env blocks