# sdk

This MCP server gives an agent governed memory, payments, approvals, reputation, and audit evidence. It runs through npx with environment variables.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 8
- Author: mnemopay
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/mnemopay/mnemopay-sdk
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/sdk

## What it does

\`sdk` adds a governance layer for agents that take consequential actions. It can retain agent memory, handle payment flows, enforce budget rules, request human approval, calculate agent reputation, and produce audit evidence. The layer sits between an agent runtime and the payment rail.

The server covers actions such as settling a payment or changing infrastructure. It starts with `npx -y @mnemopay/sdk`, while persistent storage can be configured with `MNEMOPAY_PERSIST_DIR`. `MNEMOPAY_API_KEY` is required for the server to start.

The SDK includes rails for Stripe, Paystack, Lightning, x402, and Google AP2. It also provides a hash-linked audit chain and audit bundles for EU AI Act Article 12. The available behavior depends on the environment variables passed to the MCP server.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `MNEMOPAY_API_KEY`, `MNEMOPAY_PERSIST_DIR` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env MNEMOPAY_API_KEY=<MNEMOPAY_API_KEY> --env MNEMOPAY_PERSIST_DIR=<MNEMOPAY_PERSIST_DIR> --transport stdio sdk -- npx -y @mnemopay/sdk
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add sdk --env MNEMOPAY_API_KEY=<MNEMOPAY_API_KEY> --env MNEMOPAY_PERSIST_DIR=<MNEMOPAY_PERSIST_DIR> -- npx -y @mnemopay/sdk
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "sdk": {
            "command": "npx",
            "args": [
                "-y",
                "@mnemopay/sdk"
            ],
            "env": {
                "MNEMOPAY_API_KEY": "<MNEMOPAY_API_KEY>",
                "MNEMOPAY_PERSIST_DIR": "<MNEMOPAY_PERSIST_DIR>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "sdk": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@mnemopay/sdk"
            ],
            "env": {
                "MNEMOPAY_API_KEY": "<MNEMOPAY_API_KEY>",
                "MNEMOPAY_PERSIST_DIR": "<MNEMOPAY_PERSIST_DIR>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e MNEMOPAY_API_KEY=<MNEMOPAY_API_KEY> -e MNEMOPAY_PERSIST_DIR=<MNEMOPAY_PERSIST_DIR> sdk npx -y @mnemopay/sdk
```
Replace <…> with your own values

## When to use it
- retain user preferences for later agent actions
- apply budget limits before a payment is settled
- route consequential actions through human approval
- record agent actions in an auditable chain
- score the reputation of a software agent

## Example prompts
- Remember that the user prefers monthly billing and use it in the next action.
- Check the budget, request approval, and charge for the API access.
- Record the completed action in the audit chain and show its evidence.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119231
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47577
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43902

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
