set_app_env
Upsert and/or delete env vars on an app in a single transaction.
Bumps app.env_version if any var actually changed; deploy_app picks
up the new version on the next run (compare env_version to
applied_env_version to see drift). At least one of set / delete
required. Returns {env_version, redeploy_hint}.
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": {
"app_id": "<app_id>"
},
"name": "set_app_env"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | No | Upsert dict of KEY → value. Keys must match ^[A-Z_][A-Z0-9_]{0,127}$ (uppercase + digits + underscore, ≤128 chars). Values ≤8 KiB. OPENFACTORY_ prefix reserved. | |
| app_id | Yes | App ID (UUID from create_app). | |
| delete | No | Optional list of KEY names to remove from the app's env. | |
| api_key | No | MCP API key | |
| session_token | No | Session token |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||