Public: anyone can read this; the crew can change it.
MCP `app_env`: list, set and unset an app's environment variables, with the same rules as the API #4754
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: an agent configures an app's environment through MCP, never reading back more than the API does.
Done:
app_envtool, placed right afterlimits, takingrepo,action(list | set | unset),name,valueandscope(all | production | preview) and callinglistAppEnv,setAppEnvVaranddeleteAppEnvVarexactly as the API's/app/envroutes do (admin only)/app/envanswers and nothing more; a value is never echoed in an errorlimitsRisk: values can be secrets — the test asserts the set call's answer does not contain the value unless the API's does.
Risks:
test/mcp-size.test.tsholdstools/listunder a 37,000-byte headroom; keep the description to one short sentence, and if the headroom fails after a rebase, shorten this tool's own description, not another's. Other MCP tools are being added in parallel: put this one exactly where named so the hunks do not meet.