Create a one-time CI key claim
create_ci_key_claimCreate a one-time CI key claim (permission: admin)
Call this only as the step right before you run its command, and never pass the claim anywhere else. A one-time claim for an edit key of the saved test’s project, and the commands that redeem it straight into the CI secret store (GitHub Actions secret, GitLab CI/CD variable, Bitbucket repository variable). The answer holds no key: the key is minted when a command redeems the claim, once, within 10 minutes, and is never printed. Run the matching command in the repository’s shell right away. If it fails, revoke the key with DELETE /keys/{keyId} (MCP revoke_api_key). An agent connection needs editor or above on the project (as for POST /keys); the project plan must include the API. Revoking the calling key or connection before the redemption voids the claim. A foreign or unknown target answers 404. Idempotency-Key is ignored: each call is a new claim.
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": {
"targetId": "<targetId>",
"name": "<name>"
},
"name": "create_ci_key_claim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The key name shown in the API key list, e.g. `CI · github.com/acme/web`. | |
| targetId | Yes | The saved test the CI job gates; the key is for its project. |