set_secret
Register a credential a project's Functions read at runtime, as req.secrets['KEY'].
NO VALUE IS ACCEPTED HERE. This returns instructions for a human to enter the value in the AALY app, along with the exact key name to use — a live credential must not pass through an agent's context, this MCP's transport, or a conversation transcript. Call this to declare which secrets a Function needs, then hand the operator that list.
A secret may hold a single string (an API key) or a whole structured token set — an OAuth access token, refresh token and expiry together, so they rotate atomically in one write rather than tearing across separate records. The web app decides which when the value is entered.
This sets the project DEFAULT; a tenant overrides its own via the project's REST API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Name as the Function sees it. Cannot begin AWS_ or AALY_. | |
| project_id | No | Project this credential applies to. Optional if whoami returned a default_project_id. | |
| description | No | What this credential is for. Shown to whoever has to set it. |