# agentic-coding-harness MCP server

> Monitor, meter, and budget the token usage and costs of multiple coding agents like Claude Code and GitHub Copilot CLI from a single interface.

- Repository: https://github.com/sblattj/agentic-coding-harness
- Page: https://hostedmcp.org/servers/sblattj/agentic-coding-harness
- Transport: stdio
- Stars: 2
- License: MIT

## Install

### Claude Code

```sh
claude mcp add agentic-coding-harness -- npx -y agentic-coding-harness
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "agentic-coding-harness": {
      "command": "npx",
      "args": [
        "-y",
        "agentic-coding-harness"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "agentic-coding-harness": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "agentic-coding-harness"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"agentic-coding-harness","type":"stdio","command":"npx","args":["-y","agentic-coding-harness"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "agentic-coding-harness": {
      "command": "npx",
      "args": [
        "-y",
        "agentic-coding-harness"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add agentic-coding-harness -- npx -y agentic-coding-harness
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.agentic-coding-harness]
command = "npx"
args = ["-y", "agentic-coding-harness"]
```

### Gemini CLI

```sh
gemini mcp add -s user agentic-coding-harness npx -- -y agentic-coding-harness
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "agentic-coding-harness": {
      "command": "npx",
      "args": [
        "-y",
        "agentic-coding-harness"
      ]
    }
  }
}
```

## FAQ

### How does it handle cost accounting?

It uses cache-aware accounting that is verified against each agent's own ground truth records, such as session JSONL files or provider-reported costs.

### Can I view my agent runs in a web browser?

Yes, you can use the 'ach web' command to open a live dashboard with a terminal grid for every run.
