Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
MCP gateway for controlled SSH access with per-client auth, command policies, and audit logging.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
CONFIG_DIR, LOG_DIR, CONFIG_API_ENABLED, CONFIG_API_TOKEN标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"ssh": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"CONFIG_DIR",
"-e",
"LOG_DIR",
"-e",
"CONFIG_API_ENABLED",
"-e",
"CONFIG_API_TOKEN",
"ghcr.io/gelse/ssh-mcp:0.3.0"
],
"env": {
"CONFIG_DIR": "your-value",
"LOG_DIR": "your-value",
"CONFIG_API_ENABLED": "your-value",
"CONFIG_API_TOKEN": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add ssh --env CONFIG_DIR=your-value --env LOG_DIR=your-value --env CONFIG_API_ENABLED=your-value --env CONFIG_API_TOKEN=your-value -- docker run -i --rm -e CONFIG_DIR -e LOG_DIR -e CONFIG_API_ENABLED -e CONFIG_API_TOKEN ghcr.io/gelse/ssh-mcp:0.3.0运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"ssh": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"CONFIG_DIR",
"-e",
"LOG_DIR",
"-e",
"CONFIG_API_ENABLED",
"-e",
"CONFIG_API_TOKEN",
"ghcr.io/gelse/ssh-mcp:0.3.0"
],
"env": {
"CONFIG_DIR": "your-value",
"LOG_DIR": "your-value",
"CONFIG_API_ENABLED": "your-value",
"CONFIG_API_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"ssh": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"CONFIG_DIR",
"-e",
"LOG_DIR",
"-e",
"CONFIG_API_ENABLED",
"-e",
"CONFIG_API_TOKEN",
"ghcr.io/gelse/ssh-mcp:0.3.0"
],
"env": {
"CONFIG_DIR": "your-value",
"LOG_DIR": "your-value",
"CONFIG_API_ENABLED": "your-value",
"CONFIG_API_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
CONFIG_DIR envLOG_DIR envCONFIG_API_ENABLED env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 gelse 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:CONFIG_API_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.3.0)于2个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。
同一分类中有:Spec Driven Development, Remote Desktop Commander, dotnet-mcp
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
MCP server for .NET symbols, XAML, source generators, and restricted workspace edit
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A centralized MCP gateway that gives AI agents controlled SSH access over Streamable HTTP.
Most MCP SSH servers run as local stdio processes — one per client, with no shared state, no centralized authorization, and no audit trail. When multiple AI agents need SSH access, each manages its own SSH keys and runs its own process. This creates:
ssh-mcp solves this by deploying a single HTTP gateway. All clients connect to it; it connects to your SSH targets. Authorization, rate limiting, connection pooling, and audit logging happen in one place.
docker compose pull
docker compose up -d
The image is published at ghcr.io/gelse/ssh-mcp:latest. The compose file maps host port 9080 to container port 8080.
Verify the server is running:
curl http://localhost:9080/health
Create a minimal config in config/ssh-mcp-config.json:
{
"version": 1, "ssh_targets": { "my-server": { "host": "10.0.1.10", "username": "deploy" } }, "allowed_commands": { "default": [ { "targets": ["*"], "commands": ["hostname", "uptime", "free", "df"] } ] } }
Generate an API key hash and add it to your config or secrets.json (see Configuration).
Build locally instead
make build
docker compose up -d --build
</details>
Six MCP tools are available over Streamable HTTP:
| Tool | Description |
|---|---|
ssh_list_servers | List configured SSH targets |
ssh_list_allowed_commands | Show allowed commands for a target |
ssh_execute_command | Execute a command on a remote server |
ssh_check_connection | Test SSH connectivity to a target |
ssh_download_file | Download a file via SFTP |
ssh_upload_file | Upload a file via SFTP |
All tools follow the pattern ssh_ _ :
ssh_list_servers — list resourcesssh_list_allowed_commands — list permissionsssh_execute_command — perform an actionssh_check_connection — verify connectivityssh_download_file / ssh_upload_file — file transferSee examples/README.md for usage examples including curl commands and Python client code.
ssh-mcp is configured via JSON files with hot-reload (15 s poll, 2 s debounce). Key areas:
| Area | Details |
|---|---|
| SSH targets | Host, port, username, key, password |
| Command policies | Block patterns, per-key/network allowlists |
| Connection pool | Max connections, idle timeout, concurrency |
| Rate limiting | Per-IP sliding window (default 60 req/min) |
| Logging | JSONL with rotation, gzip, multiple targets |
| SFTP | Sandbox root, path length limits |
Full reference: docs/CONFIGURATION.md
| File | Purpose |
|---|---|
ssh-mcp-config.json | Main config |
config.schema.json | JSON Schema for validation |
secrets.json | Passwords and API key hashes |
MCP_SSH_* env vars | Overrides for any setting |
ssh-mcp adds a layered authorization chain (9 ordered layers) between every client request and every SSH command. Per-API-key and per-network rules let different agents get different permissions on different servers — without touching the underlying SSH accounts.
Additional protections:
Architecture: ARCHITECTURE.md Security model: docs/SECURITY.md
Fixable with contribution:
Architectural:
GET /health — returns {"status": "ok"}GET /metrics — Prometheus exposition formatFull reference: docs/OBSERVABILITY.md
An optional web dashboard for managing configuration without editing JSON files. Enable with CONFIG_API_ENABLED=true.
Full reference: docs/CONFIG-API.md
The session cookie defaults to Secure (HTTPS only). For local HTTP testing, set:
environment:
Then restart the container.
Connect to http://host:9080/mcp using the Streamable HTTP transport. Pass your API key via X-API-Key or Authorization: Bearer header.
docker compose exec mcp-ssh python -c \
"from lib.crypto import hash_api_key; print(hash_api_key('your-key'))"
Or use the hash utility in the Config API dashboard.
The config file is polled every 15 seconds with a 2-second debounce. Changes to targets, commands, and settings take effect without restart. Rate limiter and log target settings require a restart.
Commands are evaluated through a 9-layer authorization chain. The matched_via field in logs shows which layer denied. See Security Model for the full chain.
Per-IP sliding window, default 60 requests per 60 seconds. Exceeding the limit returns HTTP 503. Configure via settings.rate_limit in the config file.
Logs are written to the /logs volume (mapped from ./logs). The active log file is ssh-mcp.log in JSONL format with optional gzip rotation.
# Check server health
curl http://localhost:9080/health
make config-test
docker compose logs mcp-ssh
| Document | Description |
|---|---|
ARCHITECTURE.md | System design and data flow |
docs/SECURITY.md | Security model and threat analysis |
docs/CONFIGURATION.md | Full config reference |
docs/CONFIG-API.md | Config API & dashboard |
docs/OBSERVABILITY.md | Health, metrics, logging |
CONTRIBUTING.md | Development and contribution guide |
CHANGELOG.md | Release history |
examples/ | Config examples and client code |
# Unit tests
make test
make integrationtest
See CONTRIBUTING.md for the full development guide, coding conventions, and PR workflow.
No public roadmap. See Not yet / known gaps for current limitations and opportunities.
MIT