Run a remote command with stored secrets
ssh_execRun shell commands on allowlisted SSH hosts with per-command approval, injecting secret env vars via stdin and returning redacted output.
Instructions
Runs a shell command on an allowlisted SSH host (using the provisioned key). env values may contain ${secret:name}; they are delivered through stdin as exports, never argv. Needs approval per exact command; output redacted.
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": {
"host": "<host>",
"command": "<command>"
},
"name": "ssh_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | remote env vars; values may contain ${secret:name}; delivered via stdin, not argv | |
| host | Yes | ||
| command | Yes | ||
| timeout_ms | No |