# okproof

> okproof is an open-source MCP server for agent verification. Checks agent-written pull requests against issue acceptance criteria using passing tests. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, API
- **Repository:** https://github.com/okproof/okproof
- **MCP Registry name:** io.github.okproof/okproof
- **Categories:** [agent verification](https://ai-powered.com/categories/agent-verification)
- **Listing updated:** 2026-12-01

## About

okproof sits in a merge check and refuses to pass a pull request until every acceptance criterion from its issue is backed by a passing test. Criteria live in a proof file in the repository, and tests claim them through a tag in their titles. The run produces a ledger that marks each criterion as met, failed, unproven or untested.

Beyond the basic gate, it includes a static lint for empty or trivial assertions, a check for tests that claim criteria they do not exercise, differential runs that compare results on the base branch and on the change, and a revert check that tests whether the suite notices when changed files are undone. An optional verifier attacks criteria and only counts bugs that reproduce on a replay without a model.

It is aimed at teams whose coding agents or developers open pull requests and need evidence that the work matches the issue. It works with Playwright and any runner that writes JUnit XML or CTRF output, and it runs as an npm package or a GitHub Action.

## Features

- **Per-criterion verdicts:** Each acceptance criterion gets its own status of met, failed, unproven, flaky or untested rather than a single pass or fail.
- **Weak test detection:** A static lint flags tagged tests that make no real assertion or only trivial ones, so they cannot count as evidence.
- **Differential proof:** Runs the tests on the base branch and on the change to show which criteria only pass because of the change.
- **Revert check:** Reverts changed files one at a time to see whether the tests for each criterion actually fail without the change.
- **Runner-agnostic ingestion:** Reads JUnit XML and CTRF reports from Playwright, Vitest, Jest, pytest, Cypress, Go and others.
- **Merge gate and PR comment:** Fails the required check until criteria are met and posts one updating comment with the ledger on the pull request.

## Good for

- Gate merges of agent-written pull requests on evidence that each issue criterion is tested
- Find tests that claim a requirement but never assert anything meaningful
- Check whether a pull request's tests fail on the base branch and pass only with the change
- Flag pull requests that weaken or remove acceptance criteria during review

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add okproof -- npx -y okproof
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "okproof": {
      "command": "npx",
      "args": [
        "-y",
        "okproof"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "okproof": {
      "command": "npx",
      "args": [
        "-y",
        "okproof"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "okproof": {
      "command": "npx",
      "args": [
        "-y",
        "okproof"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "okproof": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "okproof"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add okproof -- npx -y okproof
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.okproof]
command = "npx"
args = ["-y", "okproof"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "okproof": {
      "command": "npx",
      "args": [
        "-y",
        "okproof"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user okproof npx -- -y okproof

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "okproof": {
      "command": "npx",
      "args": [
        "-y",
        "okproof"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "okproof": {
      "command": "npx",
      "args": [
        "-y",
        "okproof"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "okproof": {
      "command": "npx",
      "args": [
        "-y",
        "okproof"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "okproof": {
      "command": "npx",
      "args": [
        "-y",
        "okproof"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "okproof": {
      "command": "npx",
      "args": [
        "-y",
        "okproof"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "okproof": {
      "command": "npx",
      "args": [
        "-y",
        "okproof"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "okproof": {
      "command": "npx",
      "args": [
        "-y",
        "okproof"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "okproof": {
      "command": "npx",
      "args": [
        "-y",
        "okproof"
      ]
    }
  }
}
```

## FAQ

### Does okproof run my tests?

No. It reads results written by your runner, such as JUnit XML or CTRF, and works with Playwright directly.

### Which test runners are supported?

Playwright, Vitest, Jest, pytest, Cypress, Go and any runner that writes JUnit XML or CTRF JSON, with guides for several other stacks.

### Does okproof need a runtime dependency or an AI model?

It has no runtime dependencies. The core gate and differential checks run without a model; only the optional verifier is model-assisted.

### Is okproof free?

Yes. okproof is open source, so you can use and self-host it for free.

### How do I add okproof to Claude Code?

Run this command in your terminal: claude mcp add okproof -- npx -y okproof

### What are the best alternatives to okproof?

The closest alternatives to okproof are AI Agent Evaluation, Verification and Disputes (Pilot), Ripae, Invar402 MCP, PoS Connect and APRVE.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [AI Agent Evaluation, Verification and Disputes (Pilot)](https://ai-powered.com/mcp/ai-agent-evaluation-verification-and-disputes-pilot): AI Agent Evaluation, Verification and Disputes (Pilot) is an MCP server for ai models and llm tooling.
- [Ripae](https://ai-powered.com/mcp/ripae): Ripae is a free MCP server for agent verification.
- [Invar402 MCP](https://ai-powered.com/mcp/invar402-mcp): Invar402 MCP is an open-source MCP server for agent verification.
- [PoS Connect](https://ai-powered.com/mcp/pos-connect): PoS Connect is an open-source MCP server for agent verification.
- [APRVE](https://ai-powered.com/mcp/aprve): APRVE is a freemium MCP server for agent verification.
- [AEGI Data Integrity Checker](https://ai-powered.com/mcp/aegi-data-integrity-checker): AEGI Data Integrity Checker is an MCP server for data quality.
- [Clawdbase](https://ai-powered.com/mcp/clawdbase): Clawdbase is a freemium MCP server for agent verification.
- [Atomless Labs](https://ai-powered.com/mcp/atomless-labs): Atomless Labs is a freemium MCP server for compliance and regulation.

---
Source: https://ai-powered.com/mcp/okproof
