seaworld008

Securecrt MCP — AI skill for Claude Code

AI community

让 AI 助手复用 SecureCRT / Xshell 已登录的 SSH 会话,也支持独立 OpenSSH 连接.

How to install Securecrt MCP

This entry records only its repository, not the path inside it, so there is no exact command to give. Open seaworld008/securecrt-mcp and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Securecrt MCP does

让 AI 助手复用 SecureCRT / Xshell 已登录的 SSH 会话,也支持独立 OpenSSH 连接。Local MCP server for existing SSH sessions and optional OpenSSH.

Alternatives in AI

  • Xerj — Local-first search engine and MCP server for AI agents 12.5k ★
  • Peekaboo — Peekaboo is a macOS CLI & optional MCP server that enables AI agents to capture screenshots of applications, o 3.2k ★
  • CLI Manager — A multi-project AI CLI workspace for local terminals, SSH hosts, and mobile-assisted workflows 749 ★

README

securecrt-mcp

[简体中文](README.md) · [English](README.en.md) · [文档地图](docs/README.md)

让 AI 助手通过你已经登录的 SSH Tab 工作。**securecrt-mcp** 是本机 Rust MCP Server,面向通过 **SecureCRT 或 Windows Xshell** 管理远端系统的用户,可接入 Codex、Claude 等 MCP 客户端。

[![CI main](https://github.com/seaworld008/securecrt-mcp/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/seaworld008/securecrt-mcp/actions/workflows/ci.yml?query=branch%3Amain) [![最新发布](https://img.shields.io/github/v/release/seaworld008/securecrt-mcp?display_name=tag)](https://github.com/seaworld008/securecrt-mcp/releases/latest) [![MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE) [![Rust 1.88+](https://img.shields.io/badge/Rust-1.88%2B-orange)](Cargo.toml)

MCP 让 AI 客户端调用你电脑上的本机工具。桌面后端沿用终端已有的登录、VPN、堡垒机与 MFA 上下文,不导出 SSH 凭据、不另建 SSH 连接。可选 **OpenSSH** 后端会另建连接,使用系统 SSH 客户端、SSH Agent、配置和主机密钥。

  • 发现 Tab、显式绑定目标,同一附件可连续执行命令或最多 20 条的批量任务。
  • 跟踪命令状态、真实 POSIX 退出码、分页输出、超时和本地审计记录。
  • OpenSSH 提供 exec / PTY 流,适合日志、分页器和 REPL;桌面后端捕获屏幕,并非原生 PTY。
  • 客户端审批和远端账号权限由操作者掌握;结果未知时先检查,不自动重发命令或确认空闲。

架构

flowchart LR
    A["MCP 客户端"] --> B["Rust Engine"]
    B --> C["SecureCRT / Xshell 后端"]
    C --> D["本机桥接层"]
    D --> E["已认证的终端 Tab"]
    B --> F["OpenSSH 后端(显式启用)"]
    F --> G["持久 ssh / PTY"]
    G --> H["远端主机"]
    E --> H
    I["CLI / JS / PowerShell"] --> J["本机回环 daemon"]
    J --> B

MCP 客户端通过一个长生命周期 Rust Engine 复用已认证的桌面终端;OpenSSH 是显式启用的独立后端。桥接层只负责原生终端调用和缓冲,命令状态、边界、输出保留与审计由 Rust 管理。

开始使用

**[安装与升级](docs/installation.md)** · [Codex](docs/clients/codex.md) · [Claude Code / Desktop](docs/clients/claude.md) · **[Agent 安装提示词](docs/agent-setup.md)**

复制到 Codex、Claude Code 或其他具备本机工具的 Agent:

请为我的 AI 客户端安装 https://github.com/seaworld008/securecrt-mcp。
先读官方当前 docs/agent-setup.md 和 docs/installation.md。
识别 OS、架构和终端,核对所选来源与摘要。
保留已有 MCP、审批、策略、令牌和 SSH 登录。
按对应客户端文档配置,并执行 doctor --offline。
获准后加载桥接;无法操作的原生 UI 步骤给我准确交接。
仅在明确授权的空闲 Tab 做无害验证,不自动判定空闲。
分别报告通过、失败和未测项,不把配置检查当作 SSH 执行证明。

选择平台和来源

以下是 **当前 main** 的路径。已测