credential_manage
Securely manage external service credentials for AI agents, including creation, rotation, OAuth setup, and lifecycle control within FleetQ's MCP server.
Instructions
Manage external service credentials. Actions: list, get (credential_id), create (name, type, secret_data), update (credential_id + fields), delete (credential_id), rotate (credential_id), oauth_initiate (provider, scopes), oauth_finalize (provider, code).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform: list, get, create, update, delete, rotate, oauth_initiate, oauth_finalize | |
| status | No | Filter by status: active, disabled, pending_review | |
| creator_source | No | Filter by creator source: human, agent, system | |
| limit | No | Max results to return (default 10, max 100) | |
| credential_id | Yes | The credential UUID | |
| name | Yes | Credential name | |
| type | Yes | Credential type: api_token, oauth2, basic_auth, ssh_key, custom_kv | |
| secret_data | Yes | Secret data object (e.g. {"token": "..."} or {"username": "...", "password": "..."}) | |
| description | No | Credential description | |
| expires_at | No | Expiration date in ISO 8601 format (e.g. 2025-12-31T23:59:59Z) | |
| agent_id | No | UUID of the agent creating this credential. Sets creator_source=agent and status=pending_review until a human approves it. | |
| service_name | Yes | Human-readable name of the service being authorized (e.g. "GitHub", "Slack") | |
| scopes | No | List of OAuth scopes to request (e.g. ["read:user", "repo"]) | |
| credential_name | No | Name to give the stored credential once OAuth completes | |
| correlation_id | Yes | The correlation_id returned by credential_oauth_initiate |