原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Agentic SSH

作者:sandbanks版本 0.6.1i★ –i在你的电脑上运行
注册名称io.github.sandbanks/agentic_ssh

安装

概览

作者提供的说明(英文原文)

High-performance (Rust), token-efficient, and asynchronous SSH orchestrations for AI agents.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

作者没有在注册中心列出安装信息。请查看下方作者的 README。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 sandbanks 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32505 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32505 个服务器的 96% 更新
  • 基础检查结果等于或优于此分类中其他 32505 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Agentic SSH 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.6.1)于昨天进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Rust。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, topo^alpin

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211昨天更新
安装

topo^alpin

作者:topoalpin.app

Avalanche bulletins and mountain weather forecasts for any place in the Alps.

在云端运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

agentic_ssh 🛰️🛡️

Stop your AI agent from nosing around your SSH connections without permission.

A secure-by-default SSH connection pool & MCP server for AI coding assistants (Claude Code, Cursor, Gemini, Antigravity, Copilot, Cline).

agentic_ssh gives your AI assistant fast, token-efficient, and asynchronous SSH access to your homelab, dev servers, and clusters—with strict zero-trust host guardrails so it can never touch unauthorized infrastructure.

📊 Token & Quota Impact: Raw SSH vs. agentic_ssh
Metric / ScenarioRaw SSH in Agent PromptWith agentic_ssh MCPThe Difference
Security & Blast RadiusFull access to every host in ~/.ssh/configStrict Whitelist Guardrail (allow_hosts)Unauthorized hosts blocked 🛡️
Context Window Consumption15,000+ tokens (raw stdout dump)185 tokens (structured JSON telemetry)98.8% token savings 📉
API Cost per Query~$0.05 – $0.15~$0.0004Fraction of a cent 💰
Connection Latency800ms – 1.5s reconnect handshake0ms (pooled Keepalive socket)Instant response ⚡️
Long-Running BuildsBlocks agent reasoning / silent dropoutDetached async (background: true)Parallel workflows 🚀

💡 Why I Built This

I built agentic_ssh after watching my AI coding agent do remote server triage across my own fleet of machines.

I asked it to investigate an anomaly. I sat there watching as it opened the same SSH connection time after time to talk to the same remote server, checking one small thing at a time. When querying multiple nodes, it would ask the exact same question of each server individually, running fresh TCP/SSH handshakes for every single command.

Worse, every single docker logs or system check dumped hundreds—sometimes thousands—of tokens of raw terminal noise and ANSI escape codes straight into the context window, chewing through my API budget in minutes. And whenever an idle SSH connection dropped mid-query, the agent would lose its place and spin in retry loops.

I realised that could be dramatically streamlined with a dedicated, connection-pooled, security-first MCP server.


🛑 Why Giving AI Agents Raw SSH Is a Bad Idea

If you've ever let an autonomous agent run raw terminal ssh, you're exposing your machines to huge risks:

  • 🚨 Unrestricted Fleet Access ("Nosing Around"): Standard agent bash tools have full, unchecked access to your ~/.ssh/config. If you ask an agent to inspect a local dev box, nothing stops it from querying your production database, jumping through client bastions, or running rogue commands where it shouldn't.
  • 💥 The Context Avalanche: The agent runs apt upgrade or cargo build, and 15,000 lines of compiler noise dump straight into your context window—wiping out memory, blowing up rate limits, and wasting money.
  • 👻 Silent Death by Dropout: Cloud NATs and Tailscale love to silently drop idle SSH sockets during a 10-minute compile. The agent hangs forever waiting for output that will never arrive.
  • 😵💫 Nested Escaping Hell: Asking an LLM to quote bash inside an SSH string inside an MCP JSON payload (ssh host "bash -c \"echo 'hello'\"") invariably leads to broken quotes and syntax errors.

🪄 How agentic_ssh Fixes This

The Dangeragentic_ssh Zero-Trust Solution
Unchecked Server AccessStrict Host Whitelist (`allow_hosts`): If allow_hosts is not configured, all hosts are blocked by default. Your agent can only touch machines you have explicitly approved.
Bloated Context WindowsAutomatically summarizes verbose outputs and redirects large streams to isolated local session logs (~/.agentic_ssh/sessions/).
Dropped Sockets & LagRust-native connection pooling (russh) with automatic 30s keepalives and zero-latency session reuse.
Broken QuotingArguments are structured and escaped natively behind the scenes—zero escaping headaches for the model.
Blocking Long TasksSupports background: true—fires long builds or migrations into detached threads so the agent can keep working.

⚡️ Quick Start (30 Seconds)

1. Install
# macOS & Linux (Homebrew)

brew install sandbanks/tap/agentic_ssh

Or with cargo-binstall (pre-compiled binary)

cargo binstall agentic_ssh

Or run instantly with Nix (zero compile)

nix run github:sandbanks/agentic_ssh -- doctor

2. Auto-Register with Your AI Agents

One command detects your installed AI tools and registers the MCP server automatically:

agentic_ssh install

*(Supports Claude Code / Desktop, Cursor, Gemini, Antigravity, Copilot, Zed, Cline, and Roo-Code).*

3. Verify Health
agentic_ssh doctor

🤖 Prompt Recipes: What Your AI Agent Can Do

Once installed, just talk to your agent naturally. Here are real-world prompts you can copy & paste:

🔍 1. Cluster Health & Resource Audit

*"Check the CPU load, RAM usage, and available disk space across stan, cartman, and aruba. Report any bottlenecks."*

⚡️ *Agent calls get_system_stats concurrently across all 3 nodes and gives you a structured comparison table in 2 seconds.*

🛡️ 2. Security & Port Exposure Check

*"Inspect all active listening TCP and UDP ports on our staging server. Flag anything open on 0.0.0.0 that shouldn't be."*

⚡️ *Agent calls list_ports with process attribution (PID + binary name) for instant auditing.*

🐳 3. Container Status & Error Log Tailing

*"Check if any Docker containers crashed on cartman, and tail the last 50 lines of the auth-service logs."*

⚡️ *Agent calls check_docker_status and tail_container_logs without flooding your context window.*

⏳ 4. Detached Background Jobs

*"Deploy the latest git commit on stan in the background and notify me when it finishes."*

⚡️ *Agent runs run_command with background: true, frees up your chat immediately, and tracks the output in a local session log.*


🖥️ CLI Superpowers for Humans (Built-in Terminal Tools)

agentic_ssh isn't just an MCP server for AI—it includes powerful CLI tools for human developers too:

💡 Tip: Add alias ash="agentic_ssh" to your ~/.zshrc or ~/.bashrc to save keystrokes!

agentic_ssh watch: Multi-Host Live Streaming TUI

Watch commands run concurrently across multiple servers with live streaming panes and post-run log inspection:

# Watch a command on multiple hosts concurrently

agentic_ssh watch stan,cartman,aruba "pnpm --version"

Watch an entire host group defined in your config

agentic_ssh watch web-fleet "docker compose ps"

agentic_ssh json: Instant Multi-Host Scripting

Call any built-in MCP diagnostic tool directly from your terminal and get clean, parseable JSON:

# Get structured system stats across hosts

agentic_ssh json get_system_stats stan,cartman

Query listening ports

agentic_ssh json list_ports '{"hosts": ["stan", "aruba"]}'

agentic_ssh tui: Live Connection Pool Dashboard

Inspect active SSH sockets, heartbeat metrics, connection lifetimes, and live running commands (with remote PID/PGID and timeout countdowns) inline under each host:

agentic_ssh tui

🧰 Built-in Tool Catalog

MCP ToolDescription
list_hostsDiscovers and returns all authorized SSH host aliases from ~/.ssh/config.
list_groupsReturns defined multi-host server groups (e.g., web-fleet, db-cluster).
run_commandExecutes commands concurrently across hosts (supports sync or detached async background mode).
get_system_statsFetches CPU load, RAM utilization, and disk partition stats.
list_portsScans active listening TCP/UDP sockets with process & PID attribution.
search_processesEvaluates and filters running processes with regex matching.
tail_logSafely tails standard system log files without loading multi-gigabyte files.
tail_container_logsFetches real-time log frames from Docker containers.
check_docker_statusReturns Docker daemon health, running containers, and image counts.
check_service_statusQueries systemd / systemctl service states.
list_upgradableLists pending OS package updates across remote machines.
git_pullSafely fetches and updates a remote Git repository.
find_large_filesScans for disk-hogging files exceeding a size threshold.
grep_syslogSearches remote syslog / journalctl streams for specific error patterns.
list_cron_jobsInspects system and user crontabs.
list_network_connectionsLists active network connections and remote endpoints.

⚙️ Configuration (~/.config/agentic_ssh/config.toml)

You can define host groups and security boundaries in an optional configuration file:

# Security boundaries: Only allow safe hosts

allow_hosts = ["stan", "cartman", "kyle", "*.local"] ignore_hosts = ["prod-db-primary", "secure-vault"]

Multi-host groups for easy targeting

[groups] fleet = ["stan", "cartman", "aruba", "kyle"] pis = ["stan", "cartman", "kyle"] web = ["aruba", "stan"]

Custom parameterized agent tools

[tools.deploy_stack] description = "Pulls latest compose repo and updates stack containers." command = ["docker", "compose", "-f", "/opt/app/docker-compose.yml", "up", "-d"] allow_hosts = ["stan", "cartman"]

Remote Shell Requirements & Timeout Process Cleanup

agentic_ssh tracks every active remote command in an in-memory registry and automatically kills timed-out commands (and their spawned child processes) using their remote Process Group ID (PGID).

  • POSIX Shell Requirement: Remote targets are assumed to provide a POSIX-compliant sh or bash (and optionally setsid for isolated process groups).
  • Graceful Fallback: If a target uses a non-POSIX login shell where the PID sentinel cannot be detected, agentic_ssh logs a warning and falls back to best-effort channel closure without failing the command.

🤝 Acknowledgments

  • Standing on the shoulders of giants:
  • Russh: High-performance pure Rust SSH client.
  • Ratatui: Gorgeous terminal user interfaces.
  • Enzo: MCP installer inspiration from tokensave.

💖 Sponsoring Sandbanks

agentic_ssh is built and maintained as independent, sovereign open-source software.

If agentic_ssh saves your token budget, secures your infrastructure, or makes your AI pair-programming workflow faster:

👉 [Sponsor @sandbanks on GitHub Sponsors](https://github.com/sponsors/sandbanks)

  • Sponsoring unlocks the GitHub Sponsor badge, access to the private `sandbanks/vip` discussions and early RFCs, and priori

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx