> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zap.wzrd.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Use Zap from your agent

> One command connects any coding agent to Zap over MCP. Pick your agent, paste the snippet, done.

Zap ships an MCP server in the CLI. Any MCP-capable agent gets the full tool surface — `recipes`, `compose`, `runtime`, `agents`, `fs`, `harness`, `pay`, `memory`, `media`, `doctor` — from one command:

```bash theme={null}
npx -y @wzrdtech/zap@5.0.1 mcp
```

No MCP support? Paste these URLs into your agent chat instead:

```text theme={null}
https://zap.wzrd.tech/llms.txt
https://docs.zap.wzrd.tech
```

## Connect your agent

<Tabs>
  <Tab title="Claude Code">
    <img src="https://mintcdn.com/gratitude5dee-zap-56/Y4G9H4edehsua_Ul/images/logos/claude.svg?fit=max&auto=format&n=Y4G9H4edehsua_Ul&q=85&s=1643174268d8316b489ad99a702a5477" alt="Claude" style={{ height: "28px", width: "auto" }} noZoom width="256" height="257" data-path="images/logos/claude.svg" />

    ```bash theme={null}
    claude mcp add zap -- npx -y @wzrdtech/zap@5.0.1 mcp
    ```

    Or add to `.mcp.json` in your project root:

    ```json .mcp.json theme={null}
    {
      "mcpServers": {
        "zap": {
          "command": "npx",
          "args": ["-y", "@wzrdtech/zap@5.0.1", "mcp"]
        }
      }
    }
    ```
  </Tab>

  <Tab title="Cursor">
    <img className="block dark:hidden" src="https://mintcdn.com/gratitude5dee-zap-56/Y4G9H4edehsua_Ul/images/logos/cursor-light.svg?fit=max&auto=format&n=Y4G9H4edehsua_Ul&q=85&s=4678903df7668be74bfcc4724fa25275" alt="Cursor" style={{ height: "28px", width: "auto" }} noZoom width="467" height="532" data-path="images/logos/cursor-light.svg" />

    <img className="hidden dark:block" src="https://mintcdn.com/gratitude5dee-zap-56/Y4G9H4edehsua_Ul/images/logos/cursor-dark.svg?fit=max&auto=format&n=Y4G9H4edehsua_Ul&q=85&s=47d35bda07bd794c4bcb474cc8ae6a93" alt="Cursor" style={{ height: "28px", width: "auto" }} noZoom width="467" height="532" data-path="images/logos/cursor-dark.svg" />

    Add to `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (global):

    ```json .cursor/mcp.json theme={null}
    {
      "mcpServers": {
        "zap": {
          "command": "npx",
          "args": ["-y", "@wzrdtech/zap@5.0.1", "mcp"]
        }
      }
    }
    ```
  </Tab>

  <Tab title="Codex">
    <img className="block dark:hidden" src="https://mintcdn.com/gratitude5dee-zap-56/Y4G9H4edehsua_Ul/images/logos/codex-light.svg?fit=max&auto=format&n=Y4G9H4edehsua_Ul&q=85&s=5740d50a68b1289a965d8b9d258144e4" alt="Codex" style={{ height: "28px", width: "auto" }} noZoom width="16" height="16" data-path="images/logos/codex-light.svg" />

    <img className="hidden dark:block" src="https://mintcdn.com/gratitude5dee-zap-56/Y4G9H4edehsua_Ul/images/logos/codex-dark.svg?fit=max&auto=format&n=Y4G9H4edehsua_Ul&q=85&s=ea1f054a29cc684579a9fdc012c3f1a0" alt="Codex" style={{ height: "28px", width: "auto" }} noZoom width="16" height="16" data-path="images/logos/codex-dark.svg" />

    ```bash theme={null}
    codex mcp add zap -- npx -y @wzrdtech/zap@5.0.1 mcp
    ```

    Or add to `~/.codex/config.toml`:

    ```toml ~/.codex/config.toml theme={null}
    [mcp_servers.zap]
    command = "npx"
    args = ["-y", "@wzrdtech/zap@5.0.1", "mcp"]
    ```
  </Tab>

  <Tab title="Devin">
    <img className="block dark:hidden" src="https://mintcdn.com/gratitude5dee-zap-56/Y4G9H4edehsua_Ul/images/logos/devin-light.svg?fit=max&auto=format&n=Y4G9H4edehsua_Ul&q=85&s=4817069020d672e0dd75c7b860edee19" alt="Devin" style={{ height: "28px", width: "auto" }} noZoom width="24" height="24" data-path="images/logos/devin-light.svg" />

    <img className="hidden dark:block" src="https://mintcdn.com/gratitude5dee-zap-56/Y4G9H4edehsua_Ul/images/logos/devin-dark.svg?fit=max&auto=format&n=Y4G9H4edehsua_Ul&q=85&s=be0dcb32aaae506f9f6b4a995ebbfaff" alt="Devin" style={{ height: "28px", width: "auto" }} noZoom width="24" height="24" data-path="images/logos/devin-dark.svg" />

    Add a custom MCP server in **Settings → MCP Marketplace → Add custom server** with:

    ```bash theme={null}
    npx -y @wzrdtech/zap@5.0.1 mcp
    ```

    Or paste `https://zap.wzrd.tech/llms.txt` into the session chat — Devin reads it directly.
  </Tab>

  <Tab title="Hermes">
    Hermes is a Zap harness — compose it and the Zap MCP server is pre-registered:

    ```bash theme={null}
    npx @wzrdtech/zap@5.0.1 compose --weight heavy --harness hermes --json
    ```

    See [zap-heavy-hermes](/harnesses/hermes) for ports, templates, and overlays.
  </Tab>

  <Tab title="OpenClaw">
    <img className="block dark:hidden" src="https://mintcdn.com/gratitude5dee-zap-56/Y4G9H4edehsua_Ul/images/logos/openclaw-light.svg?fit=max&auto=format&n=Y4G9H4edehsua_Ul&q=85&s=4c6112a2bb60468617b608612267b91a" alt="OpenClaw" style={{ height: "28px", width: "auto" }} noZoom width="24" height="24" data-path="images/logos/openclaw-light.svg" />

    <img className="hidden dark:block" src="https://mintcdn.com/gratitude5dee-zap-56/Y4G9H4edehsua_Ul/images/logos/openclaw-dark.svg?fit=max&auto=format&n=Y4G9H4edehsua_Ul&q=85&s=63f81e10f91ff75c1feb14d2ed4a1bc0" alt="OpenClaw" style={{ height: "28px", width: "auto" }} noZoom width="24" height="24" data-path="images/logos/openclaw-dark.svg" />

    OpenClaw is a Zap harness — compose it and the Zap MCP server is pre-registered:

    ```bash theme={null}
    npx @wzrdtech/zap@5.0.1 compose --weight heavy --harness openclaw --json
    ```

    See [zap-heavy-openclaw](/harnesses/openclaw) for ports, templates, and overlays.
  </Tab>

  <Tab title="Pi">
    Add to Pi's MCP config (`~/.pi/mcp.json`):

    ```json ~/.pi/mcp.json theme={null}
    {
      "mcpServers": {
        "zap": {
          "command": "npx",
          "args": ["-y", "@wzrdtech/zap@5.0.1", "mcp"]
        }
      }
    }
    ```

    Or paste `https://zap.wzrd.tech/llms.txt` into the chat.
  </Tab>
</Tabs>

## HTTP transport

For remote agents, run Streamable HTTP instead of stdio:

```bash theme={null}
zap mcp --http --host 127.0.0.1 --port 3910
```

Non-loopback binds require `ZAP_MCP_TOKEN`. See [MCP](/mcp) for tool domains and transport details.

## What your agent can do

<CardGroup cols={2}>
  <Card title="Compose runtimes" icon="layer-group" href="/concepts/runtime-profiles">
    Resolve `Runtime.md` into a deterministic plugin tree with a lock hash.
  </Card>

  <Card title="Run agents" icon="robot" href="/agents/quickstart">
    Render, deploy, and drive durable sessions — plan-only by default.
  </Card>

  <Card title="Drive sandboxes" icon="box" href="/concepts/sandboxes">
    Exec CPU work on Box VMs and every other provider behind one contract.
  </Card>

  <Card title="Stay machine-readable" icon="brackets-curly" href="/reference/json-output">
    Every tool returns structured JSON with stable error codes.
  </Card>
</CardGroup>
