Store an app secret
set_app_secretStore a sensitive value (an API key, a token, a password, a connection string) for one app. Use this instead of set_app_variable whenever the value would be damaging if someone else read it. The value is encrypted at rest, is injected into the app's environment under the name you give, and the app restarts to pick it up. Storing a secret takes effect on the next boot, so call this before telling the user the app is ready. This tool never reads a value back: there is no way to retrieve a stored secret through this connection, only through the dashboard while signed in. Two things to tell the user before you call it. First, this token can write secrets to every app on their account, not only this one. Second, any value they give you has passed through your context, so prefer a value you read from a local file such as .env over one you asked them to type into the chat, and suggest they rotate anything that was pasted. If the vault key name is already used by a different app, this call is refused rather than overwriting it, and the message tells you what to pass as vault_key_name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The environment variable name the app code reads, for example STRIPE_SECRET_KEY | |
| value | Yes | The secret value. It is encrypted at rest and is never returned by any tool. | |
| app_id | Yes | The app id returned by list_apps | |
| vault_key_name | No | Optional name for the stored value in the account vault. Defaults to name. Pass an explicit one when the default is already used by another app. |