Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By piyushsattiv2026.10.28MITIn 1 marketplace
Named, read-only operations on remote hosts (docker logs, ps and state, systemd status and logs, host health), enforced on each host by an ssh forced command and offered to the model as MCP tools
Connected while the plugin is enabled; Claude calls their tools.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
remote-tools lets an agent look at a remote machine without being able to change it, and without getting a shell there. It can read a container's logs, list containers, check a systemd unit, or see disk and memory use. It can't do anything else, even if it's been talked into trying.
The lock is on the remote machine, not in the agent's harness. A dedicated ssh key may run only one program there:
the gate. The gate accepts only the operations in ops.json and refuses everything else. The plugin's MCP server is a
convenience on top: it shows the model each operation as a typed tool.
Everything is one Python 3 script with no dependencies, bin/remote-tools. It has two jobs: remote-tools gate on
the remote, and remote-tools mcp on your machine.
| Operation | MCP tool | Runs on the host |
|---|---|---|
docker-ps | docker_ps | docker ps --all --format '{"ID":{{json .ID}},"Names":{{json .Names}},"Image":{{json .Image}},"State":{{json .State}},"Status":{{json .Status}}}'. Only these five fields; commands and labels can hold secrets. |
docker-inspect | docker_inspect(container) | docker inspect --format '{{json .State}}' -- <container>. Only the state, because a full inspect prints the container's environment, which often holds secrets. |
docker-logs | docker_logs(container, lines=200, since?) | docker logs --tail <lines> [--since <since>] -- <container> |
service-status | service_status(unit) | systemctl status --no-pager --lines=0 -- <unit> |
service-logs | service_logs(unit, lines=200) | journalctl --no-pager --lines <lines> --unit <unit> |
host-health | host_health | uptime, df -h, free -h, and ps sorted by CPU |
Every MCP tool also takes host, a name from list_hosts.
Parameters are typed:
^[A-Za-z0-9][A-Za-z0-9_.-]{0,127}$, and a unit may also contain @. Neither can start with -.lines is an integer from 1 to 5000.since is a number and a unit, such as 30m or 2h.Each operation has one timeout for all its commands (30 seconds by default) and a 1 MiB cap on each output stream.
The model calls docker_logs(host="example-host", container="web", lines=50).
The MCP server checks the arguments against ops.json and looks up example-host in the local allowlist. Then it
runs ssh -T -n -o BatchMode=yes … -- example-host-ops 'docker-logs container=web lines=50'.
On the remote, sshd sees the remote-tools key. Its authorized_keys line forces the command
/usr/local/bin/remote-tools gate and sets restrict, so there is no PTY and no port, agent or X11 forwarding.
The gate reads what was asked for from $SSH_ORIGINAL_COMMAND.
The gate checks the request again against its own copy of the operations, /etc/remote-tools/ops.json, which
root owns. The request is the operation's name followed by key=value pairs. Only letters, digits, spaces and
=._@:/- are allowed, so quotes, ;, $(), backticks and newlines are refused outright. Then the gate runs the
operation's fixed argv:
PATH;It logs the call to syslog under the tag remote-tools.
The output comes back with the exit status. The MCP server wraps stdout and stderr in UNTRUSTED REMOTE markers,
each with a random token, and logs the call to ~/.local/state/remote-tools/audit.jsonl.
If the gate refuses, it exits 126 and gives its reason on stderr. A timeout exits 124.
| Harness | Claimed | Works | Reduced | Missing |
|---|---|---|---|---|
| Claude Code | yes | The MCP tools. They're annotated read-only, so they're safe to allow without a prompt. | — | — |
| Codex | yes | The MCP tools. The annotations matter here: Codex refuses an unannotated tool under codex exec. | — | — |
| Cursor | yes | The MCP tools. | — | Unverified: whether $HOME expands in Cursor's MCP command. |
There are no hooks, so nothing has to be trusted in /hooks.
You don't need the plugin at all to use a host's gate. Plain ssh example-host-ops 'docker-ps' works from any shell.
Make a dedicated key on your own machine, and use it only for this:
ssh-keygen -t ed25519 -f ~/.ssh/remote-tools_ed25519 -C remote-tools
Copy this repo and the public key to the host, then run:
sudo ./remote/install.sh ~/remote-tools_ed25519.pub
It does five things:
agent-ops user with a locked password;agent-ops to docker and systemd-journal when those groups exist;/usr/local/bin/remote-tools, with #!/usr/bin/python3 -I;/etc/remote-tools/ops.json;~agent-ops/.ssh/authorized_keys with the one line below.The gate, the operations and authorized_keys are all owned by root.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub piyushsatti/pi-plugins --plugin remote-toolsPlugins from other owners that cover similar ground