Skip to main content
Glama
guozhiwei01

ai-ssh-mcp

by guozhiwei01

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

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": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_serversA

列出所有配置的服务器及其基本信息(名称、IP、标签、项目)。

read_logsA
读取指定服务器上某个项目的日志文件。

参数:
- server: 服务器中文名,如"生产-API主服务器"
- project: 项目名,如"shop"。服务器只有一个项目时可省略
- log_type: "app"(默认,Laravel log)或 "nginx"(nginx error log)
- lines: 读取最后 N 行,默认 100
- keyword: 关键词过滤,只返回包含该词的行,如"ERROR"
service_statusA
检查服务器上关键服务的运行状态和系统资源。

参数:
- server: 服务器中文名
- services: 指定要检查的服务列表(可选),默认检查 nginx/php-fpm/mysql/redis 及系统资源
exec_commandB
在指定服务器上执行任意 Shell 命令。

参数:
- server: 服务器中文名
- command: 要执行的 Shell 命令
- confirmed: 写操作时需用户确认后传 True,默认 False
transfer_fileA
在本地和服务器之间传输文件(SFTP)。

参数:
- server: 服务器中文名
- direction: "upload"(上传)或 "download"(下载)
- local_path: 本地文件路径
- remote_path: 服务器上的文件路径
- confirmed: 上传属于写操作,需确认后传 True
batch_execA
在多台服务器上同时执行同一命令。

参数:
- command: 要执行的 Shell 命令
- tag: 按标签筛选服务器,如"prod"、"api"
- servers: 指定服务器名列表,如["生产-API主服务器", "测试环境"]
- confirmed: 写操作时需确认后传 True
tag 和 servers 至少填一个。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 6 tools

Disambiguation5/5

每个工具都有明确且互不重叠的用途:列出服务器、单机执行命令、批量执行命令、读取日志、检查服务状态、传输文件。描述清晰,代理可以轻松区分。

Naming Consistency4/5

大多数工具遵循 verb_noun 模式(如 exec_command, list_servers, read_logs, transfer_file),但 batch_exec 是 adj_verb 形式,service_status 是 noun_noun,存在小偏差,整体仍可接受。

Tool Count5/5

6个工具覆盖了远程服务器管理的基本需求:执行命令、批量操作、日志、状态、文件传输和服务器列表。数量合理,没有冗余或不足。

Completeness3/5

覆盖了核心运维任务(命令执行、日志、文件传输、状态),但缺少服务启停、配置编辑、用户管理等常见操作,存在明显缺口。