Skip to main content
Glama
ellmos-servercommander-mcp

ellmos-servercommander-mcp

Official

ellmos-servercommander-mcp

用于服务器操作的 Alpha MCP 服务器:部署预演、邮件状态、访问日志分析及 HTTP 健康检查。

德文 README: README_de.md

属于 ellmos-ai 家族的一部分。

License: MIT npm version Python Node.js MCP Status: alpha Pytest: 37 passed Ecosystem: ellmos--ai open-bricks LLM--Ready: llms.txt

[!NOTE] 可发现性与 AI 搜索: 已发布至 npm 作为 ellmos-servercommander-mcp,在 server.json、glama.json 和 smithery.yaml 中为 MCP 生态系统编目,并在 llms.txt 中为 AI/LLM 搜索建立索引。

架构可视化

graph TD
    Client[MCP Host: Claude / Cursor] <-->|stdio / JSON-RPC| NodeWrapper[Node.js Entrypoint]
    NodeWrapper <-->|Spawn subprocess| PyServer[Python MCP Server]
    
    subgraph Tools [ServerCommander Tools]
        PyServer -->|sc_health_check| HTTP[HTTP/HTTPS Endpoint Check]
        PyServer -->|sc_logs_analyze| Logs[Apache/Nginx Access Logs]
        PyServer -->|sc_deploy / sc_deploy_status| Deploy[Dry-Run Manifest & SQLite History]
        PyServer -->|sc_mail_*| Mail[IMAP/SMTP Safe Readiness Diagnostics]
    end
    
    subgraph Storage [Local Storage]
        Deploy -->|Optional persist| SQLite[(SQLite Deploy History)]
        Logs -->|Optional persist| JSONReports[(JSON Log Reports)]
    end

Related MCP server: automation-health-mcp

从这里开始

目标

从以下开始

将 ServerCommander 添加到 Claude Desktop、Claude Code、Cursor 或其他 MCP 主机

MCP 客户端配置

在部署前检查公共或内部 HTTP 端点

sc_health_check

检查 Apache/Nginx 访问日志中的错误、机器人、引用来源和可疑路径

sc_logs_analyze

在 SFTP/SSH 执行存在之前构建预演部署清单

sc_deploy 和 sc_deploy_status

稍后计划邮件操作,但今天不意外发送

sc_mail_list、sc_mail_read、sc_mail_send、sc_mail_search

状态

  • 传输:通过 Python MCP SDK 的 stdio

  • 包状态:ellmos-ai 下的公开 alpha 包

  • 当前核心:MCP 工具列表、MCP 工具分发、配置加载、HTTP 健康检查、更丰富的访问日志分析(可选持久化 JSON 报告),以及可选的本机预演部署历史

  • 安全的 alpha 处理程序:sc_deploy 构建本机 SHA256 清单、配置诊断,以及在预演模式下可选的 SQLite 历史记录;sc_mail_* 报告协议特定的 IMAP/SMTP 就绪状态,而不打开邮件连接

  • i18n:支持 en、de、es、zh、ja、ru 的本地化 MCP 工具描述、输入架构字段描述和未知工具错误,英语为回退

安装

npm 包包含一个启动 Python 服务器的 Node 封装器。您仍然需要 Python 3.10+ 和 Python 包 mcp>=1.0.0。

选项 1:从 npm 安装

npm install -g ellmos-servercommander-mcp@alpha
ellmos-servercommander

选项 2:从源码安装

git clone https://github.com/ellmos-ai/ellmos-servercommander-mcp.git
cd ellmos-servercommander-mcp
$env:PYTHONIOENCODING = "utf-8"
python -m pip install -e ".[dev]"
python -m pytest -q

如果您的同步客户端会锁定文件,请避免在云同步文件夹内创建 .venv。如果需要隔离环境,请在该文件夹之外创建。

从源码启动

$env:PYTHONPATH = "src"
python -m servercommander.server

MCP 客户端配置

全局 npm 安装

{
  "mcpServers": {
    "servercommander": {
      "command": "ellmos-servercommander"
    }
  }
}

使用 npx 无需全局安装

{
  "mcpServers": {
    "servercommander": {
      "command": "npx",
      "args": ["-y", "ellmos-servercommander-mcp@alpha"]
    }
  }
}

直接运行 Python

{
  "mcpServers": {
    "servercommander": {
      "command": "python",
      "args": ["-m", "servercommander.server"],
      "env": {
        "PYTHONPATH": "C:/path/to/ellmos-servercommander-mcp/src",
        "SERVERCOMMANDER_CONFIG_PATH": "C:/path/to/config/servercommander.toml"
      }
    }
  }
}

配置

ServerCommander 按以下顺序查找配置:

  1. 环境变量 SERVERCOMMANDER_CONFIG_PATH

  2. ./servercommander.toml

  3. ./config/servercommander.toml

  4. ~/.config/servercommander/servercommander.toml

一个带注释的模板包含在 config/servercommander.example.toml 中。

[server]
name = "servercommander"
log_level = "INFO"
language = "en"

[deploy.profiles.staging]
target = "sftp://staging.example.com/var/www/app"
local_path = "./dist"
protocol = "sftp"
dry_run = true
record_history = true

[mail]
execution_enabled = false
smtp_host = "smtp.example.com"
smtp_port = 587
imap_host = "imap.example.com"
imap_port = 993

密钥应通过环境变量引用,例如 $MAIL_PASSWORD 或 $SFTP_PASSWORD。

工具

  • sc_health_check:检查 HTTP 端点并返回状态码和延迟;格式错误的端点 URL 会作为失败检查返回,因此一个坏输入不会中止整个批次

  • sc_logs_analyze:分析来自内联文本或本地文件的 Apache/Nginx 访问日志,包括状态类别、字节数、引用来源、错误路径、可疑请求标记,以及通过 persist_report 可选持久化 JSON 报告

  • sc_deploy:创建部署计划,包含本机 SHA256 清单和配置文件诊断,但不会上传;在可选的 record_history=true 之前,就绪性检查会验证必填字段、可清单化的本地路径和支持的协议;嵌套符号链接会被报告但排除,因此清单不会静默遍历超出所选发布目录

  • sc_deploy_status:显示已配置的部署配置文件、所选配置文件的诊断信息,以及来自本机 SQLite 历史数据库的最近预演历史

  • sc_mail_list、sc_mail_read、sc_mail_send、sc_mail_search:安全的 alpha 状态响应,带有特定于操作的 IMAP/SMTP 就绪诊断,默认不打开邮件连接。当 [mail].execution_enabled = true 时,sc_mail_list 通过重用规范的 mail-connector 模块执行实时的只读 IMAP 可达性探测(连接 + 列出文件夹)——它不会重新实现 IMAP 客户端;消息级别的读取/搜索仍属于 mail-connector 的领域,SMTP 发送保持不执行

搜索与消歧

ServerCommander 是用于本地优先的服务器管理工作流的 ellmos 操作 MCP 服务器。当搜索以下内容时使用此仓库:

  • MCP 服务器操作工具

  • MCP 部署预演服务器

  • MCP 访问日志分析器

  • MCP HTTP 健康检查工具

  • 本地优先的服务器管理 MCP

  • Claude Code 服务器操作 MCP

  • 安全的 SFTP 部署规划 MCP

它不是 GitHub MCP 服务器,不是通用的 shell 命令 MCP 服务器,不是托管提供商控制面板,也不是生产环境的 SFTP/IMAP 执行器。当前的 alpha 功能故意以诊断和预演优先。

ellmos-ai 生态系统

此 MCP 服务器是 ellmos-ai 生态系统的一部分——AI 基础设施、MCP 服务器和智能工具。

MCP 服务器家族

服务器

工具

聚焦

npm

FileCommander

46

文件系统、进程管理、交互式会话、云锁安全操作

ellmos-filecommander-mcp

CodeCommander

22

代码分析、JSON 修复、导入、差异、正则表达式

ellmos-codecommander-mcp

Clatcher

12

文件修复、格式转换、批量操作

ellmos-clatcher-mcp

n8n Manager

18

通过 AI 助手进行 n8n 工作流管理

n8n-manager-mcp

ControlCenter

20

MCP 堆栈发现、配置文件管理、控制平面

ellmos-controlcenter-mcp

Homebase

45

本地优先的 LLM 记忆、知识、状态、路由、群体编排

ellmos-homebase-mcp(alpha)

ServerCommander

8

服务器操作:健康检查、日志分析、部署预演、邮件诊断

ellmos-servercommander-mcp(alpha)

Blender Use

3

无头 Blender 资源质量保证和 FBX 重新导入验证

ellmos-blender-use-mcp(alpha)

Open Compute

10

模型无关的计算机使用:捕获、安全门控操作、Windows UIA

open-compute-mcp(alpha)

AI 基础设施与开发者工具

项目

描述

BACH

面向LLM代理的本地优先基于文本的操作系统 — 113+处理器,550+工具,SQLite内存

open-compute

模型无关的计算机使用核心,驱动Open Compute MCP

clutch

提供商无关的LLM编排,支持自动路由和预算跟踪

rinnsal

轻量级代理内存、连接器和自动化基础设施

ellmos-stack

自托管AI研究栈(Ollama + n8n + Rinnsal + KnowledgeDigest)

MarbleRun

面向Claude Code的自主代理链框架

gardener

极简数据库驱动的LLM操作系统原型(4个函数,1张表)

ellmos-tests

LLM操作系统测试框架(7个维度)

sqlite-transit-sync

加密SQLite传输同步与增量只读副本引擎

workflowhooker

Git钩子驱动的工作流自动化和执行安全边界

system-explorer

本地优先的系统组合、模块内省和集群验证

companion-for-agy

反重力开发者伴侣与遥测桥接

桌面软件

我们的合作伙伴组织 open-bricks 打包了AI原生桌面应用——一套为AI时代打造的现代开源软件套件。类别包括文件管理(ProFiler)、文档工具(DokuZen、PDFtoPDFocr)、开发者工具(DevCenter、CodeBox)等。

开发

$env:PYTHONIOENCODING = "utf-8"
python -m pytest -q
npm run smoke
npm pack --dry-run

下一步有用的步骤:添加显式配置的执行适配器,用于SFTP和IMAP/SMTP,同时保留干运行/仅状态默认值。

Available Tools

8 tools
sc_deployB

Build a safe deployment plan. Alpha only: execution requires dry_run=true.

Inputs: dry_run, profile, local_path, remote_path, +1 more.

sc_deploy_statusC

Show configured deployment profiles and alpha deployment-history status.

Inputs: limit, profile.

sc_health_checkB

Check HTTP endpoints and return status codes plus latency.

Inputs: timeout, endpoints.

sc_logs_analyzeB

Analyze Apache/Nginx access logs from inline text or a local file path.

Inputs: format, log_path, log_text, top_paths, +2 more.

sc_mail_listC

Alpha mail status endpoint for listing an IMAP folder.

Inputs: limit, folder.

sc_mail_readC

Alpha mail status endpoint for reading a message.

Inputs: message_id.

sc_mail_sendC

Alpha mail status endpoint for sending mail; does not send yet.

Inputs: to (required), body (required), subject (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 8 tools

    Disambiguation4/5

    Each tool targets a fairly distinct area: deploy vs deploy_status differ by planning versus status inspection, and the four mail tools split cleanly along list/read/send/search. The main risk is sc_deploy vs sc_deploy_status, which could be confused at a glance, but descriptions clarify the boundary.

    Naming Consistency4/5

    All tools share an sc_ prefix and snake_case, with mostly predictable noun_verb ordering (sc_mail_list, sc_health_check, sc_logs_analyze). sc_deploy is a bare verb outlier and the mail_* group reads as noun_action rather than verb_noun, but the scheme is readable and consistent overall.

    Tool Count4/5

    Eight tools is well within a sensible range for a server-commander surface spanning deploy, mail, logs, and health. No obvious redundancy or padding, though half the set is devoted to mail operations that are still alpha stubs.

    Completeness3/5

    Mail coverage (list/read/send/search) and deploy (plan + status) are reasonably complete, but several operations are explicitly non-functional alpha status endpoints (send 'does not send yet') and there is no log tailing/filtering beyond one-shot analysis. The server-commander domain lacks service restart, config, or process-management operations, leaving notable gaps.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP server for running infrastructure health checks with TIBET provenance. It enables users to define, execute, and audit process health checks with dependency chaining and drift tracking.
      6
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server for auditing automation health, finding failures, stale logs, and non-functional endpoints that report success while quietly failing.
      7
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server providing read-only operational tools (logs, metrics, traces, service health, config) for troubleshooting an environment, with one exception for toggling chaos scenarios.
      MIT