# Kamanu lint

> Kamanu lint is an open-source MCP server for agent payments. Checks whether an AI agent's card spending limit holds, without a model checker. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Linux, macOS, Windows
- **Repository:** https://github.com/nkamoah17/kamanu
- **MCP Registry name:** io.github.nkamoah17/kamanu-lint
- **Categories:** [agent payments](https://ai-powered.com/categories/agent-payments)
- **Listing updated:** 2026-11-27

## About

Kamanu tests a spending limit on an AI agent's payment card before it goes live. Given a single-threshold policy, it reports the most that could actually be spent under the limit and the most budget that could be stranded when a valid payment is refused, along with a shortest trace that produces each figure.

The lint server answers that check in milliseconds and needs no model checker to be installed. Its verdicts carry a confidence level, so a result can be read for how far it can be trusted rather than as a bare pass or fail.

It suits developers and teams who give agents payment authority and want a quick, repeatable check of their limits before deployment. Results describe a model of the limit and are not a guarantee about any particular live system.

## Features

- **Spend ceiling check:** Reports the most that can really be spent under a given spending limit.
- **Stranded budget report:** Shows how much headroom is lost when a payment that fits is refused.
- **Shortest failing trace:** Returns the shortest sequence of events that breaks a policy so it can be replayed.
- **Confidence levels:** Labels each verdict with how strongly it is established, from proven to unknown.
- **Single-command install:** Runs from PyPI through uvx with no repository clone needed.

## Good for

- Check a spending cap on an agent's card before enabling it in production
- Find cases where a valid agent payment would be refused by a limit
- Get a replayable failing trace to share with an engineer fixing a policy
- Add a pre-release limit check to an agent's tool set

## Install

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

```sh
claude mcp add kamanu-lint -- uvx kamanu
```

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

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "kamanu-lint": {
      "command": "uvx",
      "args": [
        "kamanu"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "kamanu-lint": {
      "command": "uvx",
      "args": [
        "kamanu"
      ]
    }
  }
}
```

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

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

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

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 kamanu-lint -- uvx kamanu
```

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

```toml
[mcp_servers.kamanu-lint]
command = "uvx"
args = ["kamanu"]
```

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

```json
{
  "mcpServers": {
    "kamanu-lint": {
      "command": "uvx",
      "args": [
        "kamanu"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user kamanu-lint uvx -- kamanu

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

```json
{
  "mcpServers": {
    "kamanu-lint": {
      "command": "uvx",
      "args": [
        "kamanu"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "kamanu-lint": {
      "command": "uvx",
      "args": [
        "kamanu"
      ]
    }
  }
}
```

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

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "kamanu-lint": {
      "command": "uvx",
      "args": [
        "kamanu"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "kamanu-lint": {
      "command": "uvx",
      "args": [
        "kamanu"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "kamanu-lint": {
      "command": "uvx",
      "args": [
        "kamanu"
      ]
    }
  }
}
```

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

## FAQ

### How do I install the lint server?

It runs from PyPI with uvx, using the command uvx kamanu mcp lint. Nothing needs to be cloned.

### Does Kamanu lint need a model checker?

No. The lint command decides a one-threshold policy without a model checker to install.

### Does Kamanu lint move or hold money?

No. It reports what a limit allows and does not enforce or move funds.

### Is Kamanu lint free?

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

### How do I add Kamanu lint to Claude Code?

Run this command in your terminal: claude mcp add kamanu-lint -- uvx kamanu

### What are the best alternatives to Kamanu lint?

The closest alternatives to Kamanu lint are Kamanu, Kamanu coach, Agent Spend Policy MCP, Boundra — Payment Approval Gateway for AI Agents and Kavach KYA (Sovereign Agentic Spend Firewall).

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

- [Kamanu](https://ai-powered.com/mcp/kamanu): Kamanu is an open-source MCP server for agent testing.
- [Kamanu coach](https://ai-powered.com/mcp/kamanu-coach): Kamanu coach is an open-source MCP server for agent payments.
- [Agent Spend Policy MCP](https://ai-powered.com/mcp/agent-spend-policy-mcp): Agent Spend Policy MCP is an open-source MCP server for agent payments.
- [Boundra — Payment Approval Gateway for AI Agents](https://ai-powered.com/mcp/boundra-payment-approval-gateway-for-ai-agents-2): Boundra — Payment Approval Gateway for AI Agents is an open-source MCP server for finance and payments.
- [Kavach KYA (Sovereign Agentic Spend Firewall)](https://ai-powered.com/mcp/kavach-kya-sovereign-agentic-spend-firewall): Kavach KYA (Sovereign Agentic Spend Firewall) is an MCP server for agent payments.
- [Agent Reserve Protocol Authorization Firewall](https://ai-powered.com/mcp/agent-reserve-protocol-authorization-firewall): Agent Reserve Protocol Authorization Firewall is an MCP server for agent payments.
- [Onchain Agent Wallets](https://ai-powered.com/mcp/onchain-agent-wallets): Onchain Agent Wallets is an open-source MCP server for agent payments.
- [stipend.sh](https://ai-powered.com/mcp/stipend-sh): stipend.sh is a freemium MCP server for agent payments.

---
Source: https://ai-powered.com/mcp/kamanu-lint
