Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SSH_MCP_ALLOW_PKGNo默认不设,拦截装包类命令:apt / apt-get / aptitude / yum / dnf / apk 的 install、remove、purge、upgrade 等,以及 `dpkg -i/-r/-P/--configure`。设为 `1` 才放开。
SSH_MCP_ALLOW_POWERNo默认不设,`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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
execB

在主机上执行命令,效果同 ssh <host> '<cmd>';cmd 不用带最外层的引号。可用主机:

file_writeA

把 content 原样写进远端文件(不用转义),或用 edits 改其中几处。overwrite 和 edits 先把旧文件备份到 ~/ops-backups/-auto/,再原子替换,保留权限和属主;append 追加到文件末尾。

pipeA

把来源的数据直接接到主机上命令的标准输入,效果同 ssh A '<cmd>' | ssh B '<cmd>',数据只经过本机内存、不落盘。如 from {"host":"a","cmd":"tar -C /etc -cf - nginx"}、to {"host":"b","cmd":"tar -C /etc -xf -"}。两端各自可带 sudo、pswd、conn,用法同 exec。返回两端的退出码、传输的字节数和 sha256。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 3 tools

Disambiguation4/5

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.

Naming Consistency3/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues