Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SSH_REMOTE_KEYNo私钥路径,默认 ~/.ssh/id_ed25519(key 模式必填)
SSH_REMOTE_AUTHYes认证方式,必填三选一:password、key 或 none
SSH_REMOTE_BASEYes远端工作目录,必须是绝对路径
SSH_REMOTE_HOMENo~ 展开的基准,默认 /home/$SSH_REMOTE_USER
SSH_REMOTE_HOSTYes目标主机地址
SSH_REMOTE_PORTNoSSH 端口,默认 22
SSH_REMOTE_USERYes登录用户名
SSH_REMOTE_PASSWORDNo密码(password 模式必填其一:设本变量,或配 password.xlsx 密码表)
SSH_REMOTE_PASSWORD_FILENo密码表路径,缺省为程序目录下的 password.xlsx(password 模式且未设 SSH_REMOTE_PASSWORD 时使用)

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
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
remote_execB

在远端服务器执行命令。默认工作目录是 SSH_REMOTE_BASE 指定的目录。把多条命令用 && 串成一次调用更省时间——成本在调用次数,不在命令条数。

remote_readB

读取远端文件。支持按行区间读取,返回带行号以便后续精确修改。

remote_writeB

整文件写入远端。改大文件前建议先 remote_read 确认内容。

remote_replaceB

在远端文件里做精确字符串替换,无需传整个文件。old_string 必须唯一匹配,否则报错——这是为了防止改错地方。

remote_listB

列出远端目录内容,返回类型、大小、修改时间。

remote_searchA

在远端按内容搜索(优先 ripgrep,远端没装时回退 grep)。适合跨文件找符号、找引用。

remote_findA

在远端按文件名查找(走 fd-find,缺失时回退 find)。比 remote_list 递归快得多。

remote_statB

查看远端文件或目录是否存在及其属性(类型、大小、修改时间、权限)。

remote_healthA

查看 SSH 长连接状态;断线时会自动重连一次。

remote_exec_bgA

后台起一个远端任务,立即返回不等待。适合编译、全量测试、构建镜像这类几分钟的活——返回 jobId,之后用 remote_job_check 查结果。任务状态存在远端文件系统上,本工具重启、甚至 WorkBuddy 重启后照样能接着查。

remote_job_checkA

查一个后台任务的状态与输出。返回 running / done / failed,终态时带退出码和日志末尾若干行。

remote_job_listB

列出当前所有后台任务,含在跑的和已结束的(按开始时间倒序)。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 12 tools

Disambiguation5/5

Each tool targets a distinct action: read/write/replace for content, list/find/stat for path discovery, and search for content grep. The potentially confusable pairs (remote_search vs remote_find, remote_list vs remote_find, remote_stat vs remote_list) are explicitly separated in the descriptions by content-vs-name and single-path-vs-directory semantics. Foreground exec vs background exec_bg vs job_check/job_list are also cleanly separated.

Naming Consistency4/5

All tools share a uniform `remote_` prefix in snake_case, which makes the family immediately recognizable. Minor deviation: the background-job lifecycle splits across two stems (`remote_exec_bg` to start vs `remote_job_check`/`remote_job_list` to inspect), and `remote_health` is a noun rather than a verb, so the pattern is not perfectly uniform.

Tool Count5/5

Twelve tools is well within the healthy range and every tool maps to a real operation in the remote file/exec domain. The split between foreground and background execution is justified by the stated use case of long-running builds and test suites, not padding.

Completeness4/5

Core lifecycle is well covered: read/write/replace for editing, list/find/stat for inspection, search for content lookup, and exec plus a full background-job start/check/list flow. Gaps are minor: no way to cancel or kill a background job, no delete/move/mkdir/rename primitives, and no tail-follow for running job output — though all of these can be worked around via `remote_exec`.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues