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

Capabilities

Features and capabilities supported by this server

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/guozhiwei01/ai-ssh-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server