set_environment
Set the active logical environment for a workspace session to resolve {CURRENT_ENV}_* secrets from .env.mcp.local before generic variables.
Instructions
Set the active logical environment for this workspace session (session CURRENT_ENV, e.g. STAGING). Interpolation resolves {CURRENT_ENV}VAR from .env.mcp.local before generic VAR (prefix-first). Put all env secrets there (DEVELOP, STAGING_); YAML stays generic.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"environment": "<environment>"
},
"name": "set_environment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| environment | Yes | ||
| workspaceRoot | No | Optional when MCP_WORKSPACE_ROOT is set. |