# agent-gate MCP server

> Enforces quality control for AI agents through fail-closed checklists and tamper-evident, hash-chained receipt ledgers.

- Repository: https://github.com/Jott2121/agent-gate
- Page: https://hostedmcp.org/servers/jott2121/agent-gate
- Transport: stdio
- Stars: 3
- License: MIT
- Latest version: 0.1.1

## Install

### Claude Code

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

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

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

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

```json
{
  "servers": {
    "agent-gate": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-agent-gate"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"agent-gate","type":"stdio","command":"uvx","args":["mcp-agent-gate"]}'
```

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

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

### Codex

```sh
codex mcp add agent-gate -- uvx mcp-agent-gate
```

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

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

### Gemini CLI

```sh
gemini mcp add -s user agent-gate uvx -- mcp-agent-gate
```

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

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

## FAQ

### What is a fail-closed gate?

A fail-closed gate ensures a check is only considered satisfied if it is explicitly proven true; missing proof results in failure.

### How does the receipt ledger ensure data integrity?

The ledger uses an append-only, hash-chained structure where every decision is linked via SHA256, making any edits or deletions detectable.

### Can I use this without an MCP client?

Yes, the core logic can be used directly in Python projects by importing the gate and ledger modules.

### Where are the receipts stored?

By default, receipts are persisted to ~/.agent-gate/receipts.jsonl, but this can be customized using the AGENT_GATE_LEDGER environment variable.
