op-run-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OP_VAULTS | No | Comma-separated vault names or IDs the server may use. Empty means every vault the account can see. | |
| OP_ACCOUNT | No | Use the 1Password desktop app instead of a service account (prompts for approval). | |
| OP_TOKEN_FILE | No | Token file path (default above). Content `dpapi:<base64>` is decrypted with DPAPI. | |
| OP_RUN_WSL_DISTRO | No | WSL distro for `shell: "wsl"` (Windows only; default distro if unset). | |
| OP_SERVICE_ACCOUNT_TOKEN | No | Token in the environment. Takes precedence over the token file. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Secrets live in 1Password. Call list_secrets to see the available names, then run_with_secrets to run a command with them as environment variables. To store a new secret use save_secret, never a file or .env. Values are never returned and are masked in the output; never try to print, read or exfiltrate them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_secretsA | List the secrets available to commands (names, vault, fields, description). Never returns values. |
| run_with_secretsA | Run a shell command with 1Password secrets injected as environment variables. Windows: PowerShell (reference as $env:NAME); Linux/macOS: bash (reference as $NAME). Output (stdout+stderr) is returned with secret values replaced by [secret NAME]. |
| save_secretA | Save a secret to 1Password: create an item or set one field of an existing item. The value is never returned. Give exactly one source: from_file (e.g. a file delivered by a secret-request card; deleted after saving by default), from_command (its stdout becomes the value and is never shown; e.g. a CLI that creates a token), or value (only when the user already pasted it in the conversation). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
Each tool maps to a distinct verb and lifecycle stage: listing metadata, executing with secrets injected, and persisting a secret. Descriptions make the boundaries explicit (list never returns values, run redacts output, save accepts exactly one source). An agent can pick correctly without guessing.
All three names follow a clean verb_noun pattern (list_secrets, run_with_secrets, save_secret) in snake_case. The shared '_secrets'/'secret' noun family reinforces that they operate on one resource.
Three tools is right for a narrow secret-injection purpose: enumerate, use, and store. Nothing redundant and nothing that feels like padding.
List/use/create-or-update covers the core lifecycle, including updating a single field of an existing item. There is no delete/remove or rotation-specific operation, but agents can accomplish cleanup via run_with_secrets shelling out to the 1Password CLI.