# Codespar Ap2 MCP server

Source: https://glimind.com/server/mcp-registry%2Fio.github.codespar%2Fmcp-ap2
Registry id: `mcp-registry/io.github.codespar/mcp-ap2`
Status: unknown

## Install

```json
{
  "mcpServers": {
    "codespar-ap2-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-ap2"
      ]
    }
  }
}
```

Claude Code:

```sh
claude mcp add codespar-ap2-mcp-server -- npx -y @codespar/mcp-ap2
```

## Tools (22)

- `authorize_payment`: Request payment authorization with scoped limits.
- `create_cart_mandate`: Create an AP2 cart mandate — a signed, locked-cart commitment from a merchant binding line items, totals, a..
- `create_intent_mandate`: Create an AP2 intent mandate — a Verifiable Credential expressing the user's intent to delegate a transacti..
- `create_payment_mandate`: Create an AP2 payment mandate — the final Verifiable Credential authorizing settlement against a cart mandate.
- `create_presentation`: Create a Verifiable Presentation bundling one or more credentials (e.g.
- `create_receipt`: Create a signed receipt for a settled payment — a tamper-evident record linking transaction, mandates, and..
- `execute_payment`: Execute an authorized payment.
- `get_agent`: Get agent registration details, trust status, and current spend usage
- `get_audit_trail`: Get the complete audit trail for a transaction — every authorization, approval, execution, and settlement e..
- `get_authorization`: Get authorization details including status, limits, and expiry
- `get_transaction`: Get full transaction details including authorization, execution, and settlement status
- `list_agents`: List registered agents with optional filters
- `list_audit_events`: List audit events across all transactions with filters
- `list_authorizations`: List payment authorizations with optional filters
- `list_payment_methods`: List payment methods offered by the AP2 partner network
- `list_transactions`: List transactions with optional filters
- `register_agent`: Register an AI agent as a trusted payer in the AP2 network.
- `resolve_did`: Resolve a Decentralized Identifier (DID) to its DID document via the AP2 universal resolver.
- `revoke_agent`: Revoke an agent's payment authorization.
- `verify_credential`: Verify a Verifiable Credential (intent, cart, or payment mandate).
- `verify_presentation`: Verify a Verifiable Presentation and all embedded credentials, including holder binding and challenge nonce.
- `verify_receipt`: Verify a receipt's signature, issuer, and chain back to the originating mandates.

Measured by Glimind (https://glimind.com): MCP handshake + tool list only, no tool is ever called. CC BY 4.0.
