Skip to content

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.

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).

  1. Turn on MCP in Runside: Click the MCP pill in the Desktop titlebar (or set mcp_enabled = true in ~/.config/runside/config.toml). For headless/stdio use without Desktop open, use the standalone runside-mcp binary from Releases.
  2. Connect your coding agent:

Claude Code (Embedded Loopback HTTP):

Terminal window
claude mcp add --transport http runside http://127.0.0.1:47621/mcp

Grok Build / Codex (.mcp.json / config):

{
"mcpServers": {
"runside": {
"url": "http://127.0.0.1:47621/mcp"
}
}
}

Standalone Stdio (runside-mcp):

{
"mcpServers": {
"runside": {
"command": "runside-mcp"
}
}
}
  1. Verify: Click Test Health in Runside’s MCP dialog to confirm http://127.0.0.1:47621/mcp is responding.
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-mcp has no mutating tools (kill, clean, restore, arbitrary SQL, or arbitrary shell execution do not exist). HTTP binds strictly to 127.0.0.1 and rejects non-loopback Host / Origin headers.

Once connected, ask Claude Code, Codex, Grok Build, or Antigravity:

  • “Check Runside for which port acme-app is running on and inspect recent 500 errors.”
  • “Inspect the acme_dev database health and check if any migrations are blocked by locks.”
  • “Compare .env.local against .env.example keys for feat/billing-v2 without 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.txt or /llms-full.txt.