appcrane_set_secret
Set or update an encrypted environment variable for an app. Encrypted at rest; only the running app process can read the plaintext.
Instructions
Set or update a secret (an encrypted environment variable injected into the app). Encrypted at rest; only the running app process can read the plaintext. Defaults to sandbox; require explicit stage="production" only when the user asks. App-admin or AppCrane admin only. Respects the caller's mcp_app_scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Env var name. Letters, digits, underscores; must not start with a digit. | |
| slug | Yes | ||
| stage | No | Target stage (legacy alias: env). | sandbox |
| value | Yes | The value to store (will be encrypted server-side). |