MCPTools Reference
vault.store
Store or update a credential in the vault
Scope: vault:write
Store or update an encrypted credential. All secret data is encrypted with AES-256-GCM.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Credential name (e.g. 'stripe-api') |
type | string | Yes | One of: LOGIN, API_KEY, OAUTH, TOTP, SSH_KEY, DATABASE, SMTP, AWS, CERTIFICATE, CUSTOM |
data | object | Yes | Secret fields to encrypt |
metadata | object | No | Non-secret metadata for display |
expiresAt | string | No | Expiry date (ISO 8601) |
Example
Agent: "Store my Stripe API key"
-> vault.store({
name: "stripe-api",
type: "API_KEY",
data: { key: "sk_live_..." },
metadata: { service: "stripe" }
})Returns
{
"credentialId": "cred-abc",
"type": "API_KEY",
"name": "stripe-api"
}REST Equivalent
PUT /v0/vault/:name