Skip to main content
Glama
wundervault

wundervault

Official

vault_ssh_exec

Run commands or rsync files on a remote host using a vaulted SSH key that never leaves the broker. Audits every signature and enforces admin access gates.

Instructions

Run a command on a remote host, or rsync files to it, using a vaulted SSH key that is never written to disk and never returned to you.

Admin keys: a server can have an everyday key (use it by default: reading code, health, logs) and an admin key (for changes: deploys, settings, containers). The admin key works only while your owner has allowed admin access (5, 15 or 60 minutes); without it you get ADMIN_ACCESS_REQUIRED and your owner is asked. The connection is closed when admin access ends. Call vault_done when you have finished.

The key stays inside the broker, which answers signature requests over a private ssh-agent socket that exists only for the duration of this call. You choose the remote command; you do not get the key.

The destination is checked against the servers approved for the entry, and the ssh command line is constructed here — naming a different host inside remote_argv does not change where it connects. A key the owner saved without servers asks the owner the first time it connects to a new user@host[:port] (write it exactly that way; the call waits for the answer), and that server's identity is remembered: a different machine at the same address is refused.

Every signature is audited with the key fingerprint and the authorised host.

ADMIN (sudo) work on a computer: use the owner's admin key (an SSH key made on that computer with its admin-key script) with destination root@localhost and run the command directly — no sudo, no password. You never get the sudo password; it is not in the vault for you.

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": {
      "entry_id": "<entry_id>",
      "destination": "<destination>",
      "purpose": "<purpose>"
    },
    "name": "vault_ssh_exec"
  }
}

Input Schema

NameRequiredDescriptionDefault
purposeYesWhy this is needed (audit log).
entry_idYesVault entry holding the SSH private key (ed25519, unencrypted).
rsync_argsNorsync arguments instead of a remote command. Every [user@]host:path argument is checked against the same allowlist.
destinationYesRemote destination, [user@]host. The host part must be in the entry's ssh_hosts.
remote_argvNoCommand and arguments to run on the remote host. An array, run without a shell. Omit when using rsync_args.
working_dirNoLocal working directory for rsync source paths.
timeout_secondsNoDefault 120.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.2

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does so: the key is brokered over a per-call ssh-agent socket, the connection closes when admin access ends, the destination is allowlist-checked and the ssh command line is built broker-side so remote_argv cannot redirect it, unknown hosts trigger an owner prompt with TOFU pinning, and every signature is audited. Side effects, failure modes, and security constraints are all disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and the security model, then organized into admin-key, key-isolation, destination-validation, audit, and sudo sections. It runs long and repeats the key-never-returned idea three times ('never returned to you', 'you do not get the key', 'You never get the sudo password'), which costs some tightness but each block carries distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter remote-execution tool with no annotations and no output schema, the description covers behavior, security, error paths, and lifecycle well. The notable gap is the return payload: it never says what a successful call yields (stdout, exit status, truncation, rsync summary), which is the one thing an agent cannot get from structured fields.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% so the baseline is 3; the description goes beyond it by explaining that remote_argv cannot change the connection target and that rsync_args paths are subject to the same allowlist. It does not add much on destination syntax beyond the schema's '[user@]host must be in ssh_hosts', but the cross-parameter security notes are genuine added meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific verb and resource ('Run a command on a remote host, or rsync files to it') and the mechanism ('using a vaulted SSH key'). It is clearly distinguishable from siblings like vault_sign or vault_git, and the scope limits (key never exposed, destination forced by entry allowlist) are stated up front.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly splits everyday key vs admin key usage with concrete examples ('reading code, health, logs' vs 'deploys, settings, containers'), states the admin-access window and the ADMIN_ACCESS_REQUIRED fallback, and instructs calling vault_done when finished. It also gives a specific recipe for sudo/admin work on a computer (admin key, root@localhost, no sudo).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.