remote-ssh-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SSH_MCP_ALLOW_PKG | No | 默认不设,拦截装包类命令:apt / apt-get / aptitude / yum / dnf / apk 的 install、remove、purge、upgrade 等,以及 `dpkg -i/-r/-P/--configure`。设为 `1` 才放开。 | |
| SSH_MCP_ALLOW_POWER | No | 默认不设,`exec` / `docker_exec` 拦截电源类命令:reboot、shutdown、poweroff、halt、`init 0/6`、`systemctl reboot/poweroff/halt` 等。设为 `1` 才放开。 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded 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 |
|---|---|
| execB | 在主机上执行命令,效果同 |
| file_writeA | 把 content 原样写进远端文件(不用转义),或用 edits 改其中几处。overwrite 和 edits 先把旧文件备份到 ~/ops-backups/-auto/,再原子替换,保留权限和属主;append 追加到文件末尾。 |
| pipeA | 把来源的数据直接接到主机上命令的标准输入,效果同 |
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
The three tools cover distinguishable primitives: command execution, remote file writing, and host-to-host piping. file_write partially overlaps with what exec could do via shell redirection, but its atomic write/backup/edit features make the intended use clear.
Names mix styles: exec is a bare verb abbreviation, file_write is a noun_verb compound, and pipe is a noun. All are lowercase and readable, but there is no predictable verb_noun convention across the set.
Three broad, composable primitives are well-scoped for a remote SSH server; each tool earns its place and exposes many parameter combinations. The set stays focused rather than fragmenting operations into many narrow tools.
Core operations are covered: command execution, file writing/editing with backups, and streaming between hosts. Dedicated file-read, file-delete, and local-to-remote transfer tools are absent, but exec can serve as a workaround for most of these gaps.