MCP Server
AI coding agents waste turns guessing which port a dev server uses, whether a tunnel is open, or why a database migration hung on a lock. Runside gives agents accurate live context in two ways without exposing secrets.
1. Copy AI (c) & Preview AI Context
Section titled “1. Copy AI (c) & Preview AI Context”Press c on any selected item in Runside to copy a clean Markdown runtime brief straight to your clipboard (with a toast confirmation), or pick Preview AI Context from ··· or ⌘K:
- Machine, environment (
local,devbox,staging,production), OS/arch - Process name,
:port, PID, manager, and spawning origin - Git repository, branch, worktree, and
cwd - Active SSH tunnel (
127.0.0.1:<local> -> <host>:<remote>) and public webhook URLs (cloudflared,ngrok,tailscale) - Linked multiplexer session and database metrics (version, connections, blocked locks)
- Env key drift warnings, recent session lifecycle activity, grouped Recent HTTP Failures (4xx/5xx), and secret-redacted logs
Passwords, Bearer tokens, cookies, API keys, AWS/GitHub/OpenAI/Stripe tokens, PEM blocks, and sensitive query parameters (
?token=,?api_key=) are masked automatically before reaching the UI or clipboard.
2. Read-Only Local MCP Server (runside-mcp)
Section titled “2. Read-Only Local MCP Server (runside-mcp)”Runside’s MCP server (runside-mcp) lets coding agents inspect live runtime state over JSON-RPC 2.0 (protocolVersion: 2025-03-26).
Setup in 3 Steps
Section titled “Setup in 3 Steps”- Turn on MCP in Runside: Click the
MCPpill in the Desktop titlebar (or setmcp_enabled = truein~/.config/runside/config.toml). For headless/stdio use without Desktop open, use the standalonerunside-mcpbinary from Releases. - Connect your coding agent:
Claude Code (Embedded Loopback HTTP):
claude mcp add --transport http runside http://127.0.0.1:47621/mcpGrok Build / Codex (.mcp.json / config):
{ "mcpServers": { "runside": { "url": "http://127.0.0.1:47621/mcp" } }}Standalone Stdio (runside-mcp):
{ "mcpServers": { "runside": { "command": "runside-mcp" } }}- Verify: Click
Test Healthin Runside’s MCP dialog to confirmhttp://127.0.0.1:47621/mcpis responding.
Available Read-Only Tools (12)
Section titled “Available Read-Only Tools (12)”| Tool | Key Arguments | Purpose |
|---|---|---|
list_machines |
refresh (optional boolean) |
Local & SSH machines, status, latency, CPU/RAM, port/zombie counts |
list_ports |
host_id, kind (all|app|database), only_zombies, query |
Listening TCP ports with repo, branch, owner, ingress URLs, and session links |
inspect_database |
host_id, port, engine |
Read-only Postgres/PgBouncer/Redis/MySQL health, locks, and redacted URL |
run_db_preset_query |
host_id, port, preset_id*, engine |
Run a built-in read-only Quick Query (connections, locks, sizes, clients, slowlog, keyspace) |
get_process_logs |
host_id*, port, pid, tail_lines (1–100) |
Secret-redacted recent logs (Docker, journald, or tailed open .log file) |
get_agent_context |
host_id*, port, pid |
Full secret-redacted Markdown brief for a process |
list_tunnels |
— | Currently active local-to-remote SSH port forwards |
list_reclaimable_caches |
host_id (default "local") |
Scan reclaimable dev & Docker caches with In Use flags |
diff_env_keys |
host_id*, cwd, port, compare_host_id, compare_cwd |
Compare .env* variable key names (values hidden) against .env.example or another branch |
get_recent_http_errors |
host_id*, port, pid, tail_lines (20–200) |
Extract & group 4xx/5xx failures and stack traces from redacted logs |
get_machine_health |
host_id, refresh |
Per-host RAM/Swap/CPU vitals, OOM kills, Playwright/Cargo pools, booted simulators, zombies |
get_session_timeline |
host_id*, session_key, project, branch, limit (1–60) |
Recent redacted session lifecycle transitions (plus opt-in token telemetry when enabled locally or on runsided) |
* Required parameter. All tools omit production machines automatically when mcp_hide_production = true.
Strictly Read-Only Guarantee:
runside-mcphas no mutating tools (kill,clean,restore, arbitrary SQL, or arbitrary shell execution do not exist). HTTP binds strictly to127.0.0.1and rejects non-loopbackHost/Originheaders.
Example Prompts
Section titled “Example Prompts”Once connected, ask Claude Code, Codex, Grok Build, or Antigravity:
- “Check Runside for which port
acme-appis running on and inspect recent 500 errors.” - “Inspect the
acme_devdatabase health and check if any migrations are blocked by locks.” - “Compare
.env.localagainst.env.examplekeys forfeat/billing-v2without exposing values.” - “Check Machine Health across all my hosts. Are Playwright processes or OOM kills eating RAM?”
Agent Documentation Index: Automated agents can fetch complete documentation in plain Markdown from
/llms.txtor/llms-full.txt.