runtz

MCP server

Run runtz scans and read the docs from any AI agent with the offline runtz MCP server.

MCP server

runtz-mcp is an offline Model Context Protocol server for runtz. Connect it to an MCP-capable AI client — Claude, Codex, Gemini, and others — and the assistant gains the runtz scanners and an embedded copy of this documentation as first-class tools.

It is written in Go (the same stack as the runtz backend and CLI) with no third-party dependencies, and it speaks JSON-RPC 2.0 over stdio.

  • Offline first. The docs are embedded in the binary; no network is needed to answer documentation questions.
  • Secrets stay in config. The workspace token is read from the environment the client injects, so it never appears in prompts, logs, or tool arguments.

Tools

Scans

Toolruntz commandPurpose
runtz_scaruntz scaVulnerable dependencies in a package.json
runtz_sastruntz sastSecrets, weak crypto, disabled TLS in source
runtz_hostruntz hostPackage CVEs on Debian, RPM, Alpine and Arch family hosts
runtz_containerruntz containerPackage CVEs inside a container image
runtz_k8sruntz k8sKubernetes cluster / manifest posture

Documentation (always available, fully offline)

ToolPurpose
runtz_docs_listList the documentation pages with summaries
runtz_docs_readRead a full page by slug
runtz_docs_searchSearch the docs and return snippets

Each documentation page is also exposed as an MCP resource (runtz-docs://<slug>).

Install

# Build the server
git clone https://github.com/runtz-dev/runtz-mcp
cd runtz-mcp
make install        # installs `runtz-mcp` into your GOBIN

# Install the runtz CLI the scan tools shell out to
go install github.com/rawdevops/runtz/cli/cmd/runtz@latest

Configuration

All configuration is environment-based and set in your MCP client's env block.

VariableDefaultDescription
RUNTZ_ENDPOINThosted SaaS engineRuntz backend endpoint
RUNTZ_TOKENWorkspace token generated in the platform
RUNTZ_MCP_BINruntzruntz CLI binary or launcher
RUNTZ_MCP_WORKDIRprocess cwdWorking directory scans run from
RUNTZ_MCP_ALLOW_SCANStrueSet false for a docs-only server

The hosted engine endpoint is https://engine.runtz.dev. Generate a workspace token in the runtz platform.

Client setup

Claude Code / Desktop

Save as .mcp.json in your project (or merge into ~/.claude.json / claude_desktop_config.json):

{
  "mcpServers": {
    "runtz": {
      "command": "/usr/local/bin/runtz-mcp",
      "env": {
        "RUNTZ_ENDPOINT": "https://engine.runtz.dev",
        "RUNTZ_TOKEN": "rtz_live_..."
      }
    }
  }
}

Codex

Merge into ~/.codex/config.toml:

[mcp_servers.runtz]
command = "/usr/local/bin/runtz-mcp"

[mcp_servers.runtz.env]
RUNTZ_ENDPOINT = "https://engine.runtz.dev"
RUNTZ_TOKEN = "rtz_live_..."

Gemini CLI

Merge into ~/.gemini/settings.json:

{
  "mcpServers": {
    "runtz": {
      "command": "/usr/local/bin/runtz-mcp",
      "env": {
        "RUNTZ_ENDPOINT": "https://engine.runtz.dev",
        "RUNTZ_TOKEN": "rtz_live_..."
      }
    }
  }
}

Pair the MCP server with the matching skill so your assistant knows when and how to use these tools.

On this page