leehom0123

ssh-ops

Community leehom0123
Updated

SSH server alias manager via MCP — YAML config with extends inheritance, auto-generates AI tools. For Claude Code, Codex CLI, Cursor.

ssh-ops

中文

SSH operations through a CLI or MCP server, using YAML server configurations and reusable command aliases.

What it provides

  • Commands, scripts, SFTP transfers, and remote text editing through the same Python core.
  • A CLI for terminal use and agents; an MCP server with stdio and HTTP transports.
  • YAML aliases exposed as callable MCP tools.
  • Remote background jobs for long operations, and byte-paged reads for logs.
  • Host-key checks, command filters, path allow-lists, and sudo support with explicit limitations documented in the reference.

The shell setting selects helper-command templates for bash, cmd, or powershell. It does not translate arbitrary commands between shells. Connections are reused within a process, not shared between separate CLI and MCP processes.

Quick start

git clone https://github.com/leehom0123/ssh-ops.git
cd ssh-ops
python -m pip install -r requirements.txt
python cli.py list-servers

Add a server using the configuration reference, then run:

python cli.py my-server run "uptime"

For an agent, follow the installation guide to load the CLI skill or register MCP. No server is contacted by list-servers.

Typical uses

  • Investigate an incident: list servers and aliases, collect service logs and system metrics, then inspect the evidence. The tool runs commands; it does not diagnose a cause automatically.
  • Update a configuration: read the current text, write the reviewed change, and run the application's own validation command before restarting it.
  • Run a long build or migration: start a background job and poll its status instead of holding one MCP request open.
  • Deploy a release: use the scripted deployment workflow, with a project-specific restart command and health check.

Documentation

Document Purpose
CLI skill Agent workflow and command quick reference
SKILL.mcp.md MCP registration, 22 static tools, and dynamic alias tools
CLI reference Exact CLI syntax, options, defaults, and output
Runtime reference YAML fields, security, transfer/job semantics, and HTTP protocol
Installation Agent installation and verification
Deployment Workflow, template contract, mirrors, and troubleshooting

Implementation: CLI, MCP server, and the domain modules under ssh_client/. Python imports retain the historical ssh_client name.

MCP Server · Populars

MCP Server · New

    cognicore-dev

    CogniCore

    Persistent memory, reflection & safety for AI agents. No vector DB, no embedding server — BM25 + multi-hop retrieval runs in-process. MCP server with 10 tools. Apache 2.0.

    Community cognicore-dev
    avivgerz-hue

    🛡️ vibe-shield

    60-rule static security scanner, MCP server & skill poisoning auditor for AI-generated codebases (Claude Code, Codex, Cursor).

    Community avivgerz-hue
    frankShan001

    CutVoke

    Open-source, local-first video editor your AI agent can drive over MCP (Claude Code, Codex, Cursor). Windows · macOS · Linux. The AI makes the cut; you finish it on the same timeline.

    Community frankShan001
    HiveForensics-AI

    @knolo/mcp

    The open framework AI agents use to share knowledge with one another. Pack knowledge into a portable, verifiable Knowledge Image, pin it by digest, mount it locally over MCP, and prove what was used. Local-first, deterministic, no vector DB required.

    Community HiveForensics-AI
    shannonbay

    Quarterdeck

    Persistent goals for Claude Code, like "keep my inbox under control". Fresh agent runs on a schedule, webhook or failing health check, with instructions, memory and your decisions kept outside the agent. Actions wait for your approval until you trust them, enforced by a hook. MCP server + web app.

    Community shannonbay