# Receipt Gate

> Receipt Gate is an open-source MCP server for agent testing. MCP server that holds an agent's 'done' claim until an independent check confirms it. 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/adekvatologiy/receipt-gate
- **MCP Registry name:** io.github.adekvatologiy/receipt-gate
- **Categories:** [agent testing](https://ai-powered.com/categories/agent-testing)
- **Listing updated:** 2026-11-27

## About

Receipt Gate is an MCP server for checking whether an agent actually finished what it promised. Instead of accepting a completion message, it keeps the claim open and asks a separate adapter to re-read the real state, such as file contents or a command's exit code, before the work is marked settled.

Each promise names the observable state it expects, a deadline-style scope, a ceiling on what the agent may touch, and the adapter that will verify it. Actions are authorised one call at a time, and any mismatch is recorded as a remainder that spells out the exact gap rather than being silently dropped. Open promises and grants are stored in an append-only, hash-chained ledger so they survive process restarts.

It suits developers building multi-step agent workflows who need verifiable outcomes, and teams who want an audit trail of which promises were kept, handed over or left open. It ships as a Python package with no dependencies, and the included adapters cover manifest hashing, command exit codes and owner acceptance.

## Features

- **Held completion claims:** An agent's statement that it is done does not close a promise until an adapter observes the state.
- **Independent state checks:** Adapters re-read files or run commands from outside the agent's own report.
- **One-call action grants:** Permissions are issued per action and spent on the ledger, so a reused grant is refused.
- **Remainder reporting:** Mismatches are recorded with the exact gap and who may accept, cancel or reassign the work.
- **Persistent hash-chained ledger:** Open promises are read back from an append-only file, so debts persist across restarts.
- **Ledger integrity verification:** A tool reports whether the ledger's hash chain is intact.

## Good for

- Verify that an agent's file or manifest changes match the stated result before accepting them
- Hold an agent's completion claim until a build or command exit code confirms success
- Track open agent commitments across sessions and reassign or cancel them
- Restrict an agent to a defined set of writes and refuse anything outside the ceiling

## Install

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

```sh
claude mcp add receipt-gate -- uvx receipt-gate
```

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": {
    "receipt-gate": {
      "command": "uvx",
      "args": [
        "receipt-gate"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "receipt-gate": {
      "command": "uvx",
      "args": [
        "receipt-gate"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "receipt-gate": {
      "command": "uvx",
      "args": [
        "receipt-gate"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "receipt-gate": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "receipt-gate"
      ]
    }
  }
}
```

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 receipt-gate -- uvx receipt-gate
```

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

```toml
[mcp_servers.receipt-gate]
command = "uvx"
args = ["receipt-gate"]
```

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

```json
{
  "mcpServers": {
    "receipt-gate": {
      "command": "uvx",
      "args": [
        "receipt-gate"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user receipt-gate uvx -- receipt-gate

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

```json
{
  "mcpServers": {
    "receipt-gate": {
      "command": "uvx",
      "args": [
        "receipt-gate"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "receipt-gate": {
      "command": "uvx",
      "args": [
        "receipt-gate"
      ]
    }
  }
}
```

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": {
    "receipt-gate": {
      "command": "uvx",
      "args": [
        "receipt-gate"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "receipt-gate": {
      "command": "uvx",
      "args": [
        "receipt-gate"
      ]
    }
  }
}
```

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": {
    "receipt-gate": {
      "command": "uvx",
      "args": [
        "receipt-gate"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "receipt-gate": {
      "command": "uvx",
      "args": [
        "receipt-gate"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "receipt-gate": {
      "command": "uvx",
      "args": [
        "receipt-gate"
      ]
    }
  }
}
```

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": {
    "receipt-gate": {
      "command": "uvx",
      "args": [
        "receipt-gate"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 10 tools changes data; 9 names don't say. From the server's own tool labels and tool names; not verified by us.

- `open_promise`: Records one observable state, the authority, the ceiling, and the adapter with its own parameters
- `request_capability`: Grants one action for one call, or returns the exact boundary that refused it
- `record_action`: Spends a grant; a second use is refused against the ledger
- `claim_done`: Holds a completion claim every time and names the adapter that can answer
- `settle`: Runs the adapter and returns fulfilled or a remainder
- `cancel_by_owner` (name suggests: changes): Moves a promise to the cancelled_by_owner terminal state
- `impossible_in_scope`: Moves a promise to the impossible_in_scope terminal state
- `hand_over`: Moves a promise to the handed_over terminal state
- `open_debts`: Lists the open promises the deal still holds
- `verify_ledger`: Reports whether the ledger hash chain is intact

## FAQ

### Do I need to install anything beyond the package?

It runs on Python 3.10+ using only the standard library, with no dependencies.

### Where is the ledger stored?

At the path set by RECEIPT_GATE_LEDGER, defaulting to ./ledger.jsonl.

### How are file paths restricted?

Adapter paths must resolve inside RECEIPT_GATE_ROOT; anything outside is refused.

### What license is Receipt Gate under?

The code is released under the MIT licence.

### Is Receipt Gate free?

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

### How do I add Receipt Gate to Claude Code?

Run this command in your terminal: claude mcp add receipt-gate -- uvx receipt-gate

## 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

- [MCP Verify Claim](https://ai-powered.com/mcp/mcp-verify-claim): MCP Verify Claim is an open-source MCP server for agent testing.

---
Source: https://ai-powered.com/mcp/receipt-gate
