connector_status
Connector Status
Use this when ChatGPT or Claude needs to understand the remote connector profile, authentication mode, and credential broker readiness without exposing secrets.
无需输入参数。

io.github.oaslananka由 GitHub 账号 oaslananka 发布v1.4.0更新于 Nov 7, 2026
Secure MCP SSH automation server with policy controls, resources, prompts, stdio, and HTTP.
受策略控制的 SSH 自动化服务器,让助手打开 SSH 会话、检查主机、执行受管控的命令、管理文件与服务,并规划变更。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
参照 仓库 中的启动说明。
Policy-controlled SSH automation for MCP clients
[npm version] [npm downloads] [license] [CI] [API Docs]
[GitGem] · Explore source on DeepWiki
ssh-mcp-pro is a secure Model Context Protocol (MCP) server for SSH automation. It lets MCP-capable clients open SSH sessions, inspect hosts, run guarded commands, manage files, transfer artifacts, create tunnels, and perform idempotent package or service work through policy-controlled tools.
>=22.22.2 or >=24.15.0 or >=26.3.0>=11.0.9For Windows/Linux outbound agent connection status, rotating diagnostics and a live PowerShell log view, see Agent Activity Monitor.
Install globally with pnpm:
Run without a global install:
For pnpm-only environments, use:
Container images are published to GitHub Container Registry for release tags:
Images are published for linux/amd64 and linux/arm64 with exact semver and
Git tag aliases. Production deployments should prefer the digest-pinned
reference recorded by the release workflow. See Docker Usage
for the tag policy, digest-pinned examples, and registry verification steps.
Generic stdio MCP config:
VS Code workspace .vscode/mcp.json configuration:
Claude Desktop style:
After registration, start with discovery and a strict host-key policy:
Use ssh-mcp-pro from an MCP client over stdio, or run the HTTP transport for remote-safe connector profiles. Start with read-only discovery tools, inspect the active policy, and create explicit sessions before running remote commands:
See examples/README.md for additional workflows and INSTALL.md for client-specific setup.
All SSH_MCP_* environment variables parsed by src/config.ts are listed below. Comma-separated settings also accept newline-separated values.
The parser also accepts non-SSH_MCP_* compatibility aliases PORT, KNOWN_HOSTS_PATH, and STRICT_HOST_KEY_CHECKING.
full exposes every registered tool, resource, and prompt. Every other profile uses an explicit per-profile allowset. chatgpt and claude currently expose the same baseline connector tools as remote-safe, with empty client-specific extension sets reserved for future additions.
SSH_MCP_CHATGPT_EXTRA_TOOLS and SSH_MCP_CLAUDE_EXTRA_TOOLS can extend their profiles for loopback-only development. Non-loopback HTTP startup validates the fully resolved tool set against the canonical remote-safe allowlist and refuses unknown, session, transfer, filesystem mutation, process, sudo, service mutation, or tunnel tools. The startup error lists only the rejected tool names. Adding an extension locally does not make that tool approved for public connector exposure.
ssh-mcp-pro starts with strict SSH host-key verification, denies root login, denies raw sudo, blocks destructive commands and filesystem operations unless policy allows them, and refuses non-loopback HTTP startup unless authentication, origins, public HTTPS URL, strict host-key verification, a remote-safe tool profile, and host allowlists are configured. See SECURITY.md for vulnerability reporting and SECURITY_DECISIONS.md for the design rationale behind these defaults.
See CONTRIBUTING.md for setup, quality gates, commit rules, and pull request expectations. Participation is governed by the Code of Conduct.
ssh-mcp-pro is available under the MIT License.
This repository owns the product-level agent plugin, MCP runtime configuration, and product-specific skills for ssh-mcp-pro. The central agent-tools repository should catalog this plugin, but the manifest and workflow instructions live here so they stay synchronized with the actual MCP server package.
Validate plugin packaging locally:
来源:README.md,提交 99ae1c3
Connector Status
Use this when ChatGPT or Claude needs to understand the remote connector profile, authentication mode, and credential broker readiness without exposing secrets.
无需输入参数。
List Safe SSH Host Aliases
Use this when ChatGPT or Claude needs a safe list of SSH host aliases that may be inspected through the remote connector. Sensitive login material is omitted.
无需输入参数。
Explain SSH Policy
Use this when ChatGPT or Claude needs to explain whether a requested SSH inspection or mutation would be allowed. This is explain-only and does not execute commands or open tunnels.
pathactioncommandhostAliasInspect SSH Host
Use this when ChatGPT or Claude needs read-only host inspection through the server-side credential broker. The user supplies only a configured host alias and selected checks; no secret material or login details are accepted.
checkshostAlias必填Plan SSH Mutation
Use this when ChatGPT or Claude needs a non-executing plan for a remote SSH change. It never runs commands, writes files, uploads data, starts tunnels, or escalates privileges.
goal必填categoryhostAlias必填Open SSH Session
Opens a new SSH session with authentication
authhost必填portttlMspassworduseAgentusername必填passphrasepolicyModeprivateKeyhostKeyPolicyknownHostsPath另有 4 个Close SSH Session
Closes an SSH session
sessionId必填List SSH Sessions
Lists all active SSH sessions with their details
无需输入参数。
Ping SSH Session
Checks if an SSH session is still alive and responsive
sessionId必填List Configured Hosts
Lists all hosts configured in ~/.ssh/config
无需输入参数。
Resolve SSH Host
Resolves a host alias from ~/.ssh/config to connection parameters
hostAlias必填Execute Remote Command
Executes a non-interactive command on the remote system after policy and safety checks
cwdenvcommand必填sessionId必填timeoutMsExecute Sudo Command
Executes a command with sudo privileges only when allowRawSudo policy permits it
cwdcommand必填sessionId必填timeoutMsList Processes
Lists running processes on the remote system sorted by CPU usage
sessionId必填Signal Process
Sends a signal to a running process by PID
pid必填signalsessionId必填Execute Streaming Command
Executes a command and returns streaming output chunks
cwdenvcommand必填sessionId必填timeoutMsRead Remote File
Reads a file from the remote system
path必填encodingmaxBytessessionId必填Write Remote File
Writes data to a file on the remote system
data必填modepath必填sessionId必填Stat Remote Path
Gets file or directory statistics
path必填sessionId必填List Remote Directory
Lists directory contents
pagepath必填limitsessionId必填Create Remote Directories
Creates directories recursively
path必填sessionId必填Remove Remote Path Recursively
Removes files or directories recursively
path必填sessionId必填Rename Remote Path
Renames or moves a file/directory
to必填from必填sessionId必填Ensure Package State
Ensures a package is installed or removed
name必填statesessionId必填Ensure Service State
Ensures a service is in the desired state
name必填state必填sessionId必填Ensure Lines In File
Ensures specific lines are present or absent in a file
path必填lines必填statesessionId必填createIfMissingApply Patch
Applies a patch to a file
diff必填path必填sessionId必填Detect Remote OS
Detects operating system and environment information
sessionId必填Get Runtime Metrics
Returns server metrics including session counts, command statistics, and uptime
formatList Services
Lists all systemd services and their current state
sessionId必填Service Status
Gets the status of a systemd service
name必填sessionId必填Service Logs
Reads recent journal logs for a systemd service
name必填linessessionId必填Restart Service
Restarts a systemd service
name必填sessionId必填Stop Service
Stops a systemd service
name必填sessionId必填Disk Usage
Reports disk usage for filesystems on the remote system
pathsessionId必填Memory Info
Reports memory usage on the remote system
sessionId必填CPU Usage
Reports CPU load average and uptime on the remote system
sessionId必填Network Interfaces
Lists network interfaces and their IP addresses on the remote system
sessionId必填Port Check
Checks which processes are listening on a specific port
hostport必填sessionId必填Tail Log
Tails the end of a log file or reads recent journal entries for a service
pathlinesservicesessionId必填Upload File
Uploads a local file to the remote host over SFTP
localPath必填sessionId必填remotePath必填Download File
Downloads a remote file to the local machine over SFTP
localPath必填sessionId必填remotePath必填Create Local SSH Tunnel
Creates a local SSH port forward
localPort必填sessionId必填remoteHost必填remotePort必填Create Remote SSH Tunnel
Creates a remote SSH port forward
localHost必填localPort必填sessionId必填remotePort必填Close SSH Tunnel
Closes an active tunnel
tunnelId必填List SSH Tunnels
Lists active tunnels, optionally filtered by session
sessionId已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
pnpm add --global ssh-mcp-prossh-mcp-pro --versionnpx ssh-mcp-propnpm dlx ssh-mcp-prodocker run --rm ghcr.io/oaslananka/ssh-mcp-pro:1.0.0 --version{ "name": "ssh-mcp-pro", "command": "ssh-mcp-pro", "type": "stdio"}{ "servers": { "ssh-mcp-pro": { "type": "stdio", "command": "ssh-mcp-pro", "args": [] } }}{ "mcpServers": { "ssh-mcp-pro": { "command": "ssh-mcp-pro", "args": [] } }}List configured SSH hosts, open a session to bastion.example.com as deploy with hostKeyPolicy=strict, then run os_detect.List configured SSH hosts, explain the active SSH policy, connect to the selected host, then report its operating system and disk usage.claude plugin validate .