OpsPilot
Provides read-only access to Docker containers and logs on remote hosts, allowing listing containers and fetching their logs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OpsPilot show the latest log on user-test"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OpsPilot
Local AI ops broker: SSH secrets stay on your machine, agents call intent-level MCP tools (no keys in chat), and dangerous writes wait for approval in a loopback Web UI.
What it is
Day-to-day Linux ops via AI assistants often either:
Puts SSH private keys/passwords into model context or tool arguments, or
Exposes raw remote shell with weak “approve in chat” gates
OpsPilot is a single-user, loopback control plane on your machine:
Secrets stay in the local broker process /
~/.opspilot/— never in MCP args or model-visible outputMCP exposes structured intent tools (
host_alias+ typed params), not arbitraryssh/bashRead-only work can run automatically; writes/restarts wait for the local Web UI approval queue
A project Agent Skill teaches assistants the same boundaries and hard-stops if the MCP broker is missing (no fallback to raw SSH)
Listens on 127.0.0.1 only (default port 4317).
Related MCP server: SSH Vault MCP
Features
Area | Notes |
Host catalog | Alias, SSH address, services, log roots, credentials |
Read-only ops | Inspect, list log dirs, truncated logs, allowlisted files, Docker read-only |
Approval-gated writes | Service restart, file write/upload |
Per-host auto-approve reads | Optional; writes still require approval |
Approvals + audit | UI queue + local |
EN / 中文 UI | Top-bar language toggle |
Out of v1 scope: arbitrary remote shell/PTY, Docker writes, local Docker socket, Kubernetes, cloud APIs, bastion multi-hop, multi-host orchestration.
Requirements
Node.js ≥ 20
Network reachability to target Linux hosts
Cursor (or another MCP + Skills client) optional for agents
Install
git clone <your-repo-url> OpsPilot
cd OpsPilot
npm installStart the local UI / broker
npm startCreate a host under Hosts (alias, address, user, port)
Paste an SSH password or private key and save (the field clears after save on purpose; status shows attached)
Prefer registering log directories (e.g.
/opt/prod-log/); agents list files first, then fetch a concrete fileFor test hosts, optionally enable Auto-approve read-only ops
Use Test connection
Approve/reject gated ops under Approvals
Data directory default: ~/.opspilot/ (catalog.json, secrets.json, audit.jsonl).
Env var | Default | Meaning |
|
| Web UI / HTTP MCP bridge port |
|
| Data directory |
|
| Approval timeout |
Recommended: start npm start first, then connect Cursor MCP. If the MCP child finds the port in use, it proxies tool calls to the primary broker so the Approvals UI stays in sync.
Configure Cursor MCP
Add OpsPilot to user or project mcp.json (use your absolute path):
Project .cursor/mcp.json:
{
"mcpServers": {
"opspilot": {
"command": "npx",
"args": ["tsx", "/ABSOLUTE/PATH/TO/OpsPilot/src/index.ts"],
"env": {
"OPSPILOT_PORT": "4317"
}
}
}
}Or via npm:
{
"mcpServers": {
"opspilot": {
"command": "npm",
"args": ["start", "--prefix", "/ABSOLUTE/PATH/TO/OpsPilot"],
"env": {
"OPSPILOT_PORT": "4317"
}
}
}
}Then:
Restart MCP / Reload Window in Cursor
Confirm tools such as
opspilot_list_hostsandopspilot_fetch_logsappearKeep one primary
npm startUI; let MCP proxy rather than running conflicting brokers
Example prompt: “Use OpsPilot to show the latest log on user-test.”
Configure the Agent Skill
Shipped in two places (same content):
.cursor/skills/opspilot/ # Cursor project skill (used when this repo is the workspace)
skills/opspilot/ # Standalone copy for reuse / distribution
SKILL.md
BOUNDARIES.mdOpen this repo as the Cursor workspace so the opspilot skill under .cursor/skills/ can be selected. To install elsewhere, copy skills/opspilot/ (or .cursor/skills/opspilot/) into that project’s .cursor/skills/opspilot/.
Rules of thumb:
Require a connected OpsPilot MCP; if absent, stop — do not fall back to generic SSH MCP or handwritten
sshLogs:
opspilot_list_log_filesfirst, thenopspilot_fetch_logson a file pathChat “approve” is not approval — use the local Approvals UI and
request_id
MCP tools (illustrative)
Tool | Purpose |
| Catalog discovery |
| Read-only inspect |
| List a catalog log directory |
| Fetch a concrete log file (truncated) |
| Restart (needs approval) |
| Allowlisted paths |
| Remote Docker read-only |
| Request / approval status |
Always trust the live tools/list schemas; never invent tool names.
Dev commands
npm test
npm run typecheck
npm startSecurity notes
Loopback only — do not expose port
4317publiclyNever paste private keys/passwords into chat; save them only in the local UI
Approval timeout defaults to 10 minutes with no auto-retry
License
Private / unlicensed unless you add a license file.
Available Tools
14 toolsopspilot_describe_hostB
Describe registered services, log path roots (directories), and whether a stored connection is attached.
Inputs: host_alias (required).
opspilot_docker_logsC
Fetch truncated remote Docker container logs.
Inputs: container (required), host_alias (required), max_bytes.
opspilot_docker_psA
List remote Docker containers for one registered host.
Inputs: host_alias (required).
opspilot_fetch_logsA
Fetch a concrete log file under a catalog log root with safe truncation. Do not pass a directory; list files first.
Inputs: host_alias (required), path, service, max_bytes.
opspilot_get_requestA
Get the status of a broker request by request ID.
Inputs: request_id (required).
opspilot_inspect_hostB
Inspect one registered host with redacted read-only facts.
Inputs: host_alias (required).
opspilot_list_hostsA
List registered host aliases and optional environment labels.
Inputs: no named parameters.
opspilot_list_log_filesB
List files under a catalog log root directory. Catalog log_paths are directories; list before fetching.
Inputs: host_alias (required), path.
opspilot_probe_remoteA
Verify the broker is ready for a remote connection without exposing stored values.
Inputs: no named parameters.
opspilot_read_fileA
Read a catalog-allowlisted remote file.
Inputs: path (required), host_alias (required).
opspilot_restart_serviceB
Request a single registered service restart for local approval.
Inputs: service (required), host_alias (required).
opspilot_statusA
Return local broker status and listen address.
Inputs: no named parameters.
opspilot_upload_fileB
Request an approved upload to a catalog-allowlisted remote file.
Inputs: path (required), content (required), host_alias (required).
opspilot_write_fileC
Request an approved write to a catalog-allowlisted remote file.
Inputs: path (required), content (required), host_alias (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools have clear, distinct purposes (status vs probe, list vs fetch, etc.). However, describe_host and inspect_host overlap somewhat in that both inspect a registered host, though they emphasize different aspects (services/log paths vs redacted facts).
All tools follow the opspilot_ prefix with a consistent verb_noun pattern (e.g., list_hosts, restart_service, fetch_logs). Minor exception is opspilot_status which is a noun phrase, but it's clearly a status check and doesn't disrupt the overall pattern.
14 tools is well within the ideal range for a focused ops server. Each tool covers a meaningful operation (broker status, host management, logs, file ops, docker) without being excessive or sparse.
The tool set covers core operational workflows: broker health, host discovery, service restart, log retrieval, file operations, and docker inspection. Missing operations like remote command execution or file deletion, but these are likely out of scope for a safety-focused pilot tool.
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Related MCP Servers
- AlicenseBqualityDmaintenanceProduction-grade MCP server that gives AI agents safe access to your local dev environment: filesystem, databases, processes, and OpenAPI specs.1555 npm4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to securely access encrypted secrets (SSH keys, API tokens, passwords) with real-time user approval via Passkey, and supports SSH remote execution through the MCP protocol.MIT
- AlicenseAqualityAmaintenanceInfrastructure access broker for AI agents — SSH & Kubernetes. Per-operation ephemeral credentials minted by a separate signer; the model never touches one. MCP stdio / HTTP+OIDC.713GPL 3.0
- AlicenseBqualityDmaintenanceAgent-native SSH control plane with a local Web Terminal, human-in-the-loop secret input, keychain-backed profiles, and user-confirmed uploads for Codex, Claude Code, and MCP-compatible coding agents.181Apache 2.0