Request access
request_accessAsk the user for access this token does not have: another environment (production, for example), an extra scope, keys outside the token's allow-list, or protected items. Nothing is granted by calling this: it returns an approveUrl the user must open to approve (with a second factor) or deny. Ask for the narrowest thing that does the job. A client that speaks MCP tasks (protocol 2025-11-25) may call it as a task and poll tasks/get until the user decides.
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": {
"project": "<project>",
"scopes": "<scopes>",
"reason": "<reason>"
},
"name": "request_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Only these secret keys (default: every key). Prefer naming them | |
| reason | Yes | One sentence the user will read: what you are doing and why you need this | |
| scopes | Yes | Scopes needed, e.g. ["secrets:read"] | |
| project | Yes | Project slug or id | |
| duration | No | once = a single tool call; or a window of 15m, 1h or 8h. The user can change it | once |
| environment | No | Environment slug or id. Leave out only when the whole project is needed (saved logins and project files hang off the project) | |
| include_protected | No | Also open protected items (default false). The user can only open what they are on the unlock list for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | ||
| asked | Yes | ||
| status | Yes | ||
| request | Yes | ||
| answerBy | Yes | ISO 8601 timestamp | |
| approveUrl | Yes | Show this to the user; they decide there |