Set app environment variables
set_envSet or remove environment variables of an app (null removes one); the app restarts with them. For secrets such as a Discord bot token or API keys, do NOT ask the person to paste them into the chat: give them set_url from list_env so they enter it on the press5 page themselves. Use this tool for settings that are not secret.
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": {
"site": "<site>",
"vars": "<vars>"
},
"name": "set_env"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| vars | Yes | e.g. {"LOG_LEVEL": "debug", "OLD_SETTING": null} | |
| token | No | A press5 token (p5_...). Only needed when the MCP connection has no Authorization header, e.g. right after login_check. |