Create Secret
create_secretCreate a self-destructing, end-to-end encrypted link to share passwords, API keys, or credentials securely. Pass env, file, or dotenv references to keep secret values out of the conversation.
Instructions
Create a self-destructing, end-to-end encrypted link for sharing a secret such as a password, API key, or credential. Encryption happens locally; the Vaulted server only receives ciphertext. To keep the value out of the conversation transcript, pass a reference instead of the value: env:VAR_NAME, file:path (restricted to the working directory and --allowed-dirs), or dotenv:path:KEY. The MCP server reads it locally and encrypts it. Note: the returned link contains the decryption key, so you receive it and could open it. References keep the value out of the transcript, not out of your reach. Optionally provide a label to identify the secret in your history.
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": {
"content": "<content>"
},
"name": "create_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional label to identify this secret in your history (e.g. 'stripe-key', 'db-password'). | |
| expiry | No | How long before the secret expires. Defaults to 24h. | |
| content | Yes | The secret to share, or a reference to it (env:VAR_NAME, file:path, dotenv:path:KEY) so the value stays out of the transcript. Max 1000 characters after resolving the reference. | |
| max_views | No | Maximum number of times the secret can be viewed before self-destructing. Defaults to 1. | |
| passphrase | No | Optional passphrase for additional protection. The recipient will need this passphrase to view the secret. |