Secret programs: revoke, rotate, store
The Secret Verbs revoke, rotate, store as MCP do programs, with inputs, result, refusals and an example.
Reference for Secret, one group of Secret programs.
Secret.revoke
Revoke ends a Secret so no call fills it again; the record and its history stay. Verb page.
do: return await $.Secret.revoke(input)Emits Secret.revoked.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
secret | Secret | required | The Secret to revoke. |
reason | text | Why, such as a leaked value. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
secret | Secret | required | The revoked Secret. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
{
"name": "do",
"arguments": {
"code": "return await $.Secret.revoke({ secret: 'secret_UaNXUkKsJB' })"
}
}Secret.rotate
Rotate replaces a Secret’s value, and calls already running finish on the old one. Verb page.
do: return await $.Secret.rotate(input)Emits Secret.rotated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
secret | Secret | required | The Secret to rotate. |
value | string | The new value; omitted when the upstream issues one. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
secret | Secret | required | The Secret, with its new rotatedAt. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
{
"name": "do",
"arguments": {
"code": "return await $.Secret.rotate({ secret: 'secret_UaNXUkKsJB' })"
}
}Secret.store
Store writes a Secret’s value for one environment; the value is never returned by any Interface. Verb page.
do: return await $.Secret.store(input)Emits Secret.stored.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
name | string | required | The name Functions declare. |
value | string | required | The credential; write-only. |
environment | string | required | Where it holds. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
secret | Secret | required | The Secret, without its value. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
{
"name": "do",
"arguments": {
"code": "return await $.Secret.store({ name: 'MAPS_KEY', value: 'Example value', environment: 'test' })"
}
}