{
  "markdown": "# Nerve Agent — AI Payment Framework & MCP\n\n[Nerve](https://nerve.network) **Agent payment framework** and **Nerve RPC MCP** for developers and AI Agents: receive, pay, swap, and query balances. Decentralized protocol, locally generated and managed accounts, no gas fees, fast confirmation.\n\nAlso includes **PayBox** integration: accept payments from Ethereum, BSC, Polygon, TRON, NULS, NERVE — receive USDT on your Nerve address automatically.\n\n- **GitHub**: [NerveNetwork](https://github.com/NerveNetwork)\n- **Website**: [nerve.network](https://nerve.network)\n\n---\n\n## Repository Structure\n\n| Path | Description |\n|------|-------------|\n| [agent-payment-framework/](agent-payment-framework/) | Payment framework docs: receiver / payer / PayBox / local accounts |\n| [nerve rpc mcp/](nerve%20rpc%20mcp/) | Nerve RPC MCP server: exposes Nerve JSON-RPC / REST as MCP tools |\n| [nerveswap sdk/](nerveswap%20sdk/) | NerveSwap JS SDK and Nerve public API reference |\n| [.cursor/skills/nerve-agent-payment/](.cursor/skills/nerve-agent-payment/) | AI Skill: Nerve receive, pay, balance, address, NerveSwap |\n| [.cursor/skills/paybox-payment/](.cursor/skills/paybox-payment/) | AI Skill: PayBox multi-chain collection via Nerve address |\n\n---\n\n## Quick Start\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/NerveNetwork/nerve-agent.git\ncd nerve-agent\n```\n\n### 2. Build and configure Nerve RPC MCP\n\n```bash\ncd \"nerve rpc mcp\"\nnpm install\nnpm run build\n```\n\nAdd to your MCP client config (Cursor, Claude Desktop, etc.) — replace `<PATH_TO_NERVE_AGENT>`:\n\n```json\n{\n  \"mcpServers\": {\n    \"nerve-rpc\": {\n      \"command\": \"node\",\n      \"args\": [\"<PATH_TO_NERVE_AGENT>/nerve rpc mcp/dist/index.js\"],\n      \"env\": {\n        \"NERVE_API_BASE_URL\": \"https://api.nerve.network\"\n      }\n    }\n  }\n}\n```\n\n### 3. Install AI Skills\n\nSkills are stored in `.opencode/skills/` (OpenCode-native) and `.cursor/skills/` (Cursor-compatible).\n\n**Project level** (auto-loaded when you open this repo in OpenCode or Cursor):\n\n```bash\ngit clone https://github.com/NerveNetwork/nerve-agent.git\n# Skills are detected automatically in .opencode/skills/ and .cursor/skills/\n```\n\n**User-wide** (available in all your projects):\n\n#### OpenCode / OpenClaw (native path)\n\n```bash\nmkdir -p ~/.config/opencode/skills/nerve-agent-payment\ncurl -o ~/.config/opencode/skills/nerve-agent-payment/SKILL.md \\\n  https://raw.githubusercontent.com/NerveNetwork/nerve-agent/main/.opencode/skills/nerve-agent-payment/SKILL.md\n\nmkdir -p ~/.config/opencode/skills/paybox-payment\ncurl -o ~/.config/opencode/skills/paybox-payment/SKILL.md \\\n  https://raw.githubusercontent.com/NerveNetwork/nerve-agent/main/.opencode/skills/paybox-payment/SKILL.md\n```\n\n#### Cursor\n\n```bash\nmkdir -p ~/.cursor/skills/nerve-agent-payment\ncurl -o ~/.cursor/skills/nerve-agent-payment/SKILL.md \\\n  https://raw.githubusercontent.com/NerveNetwork/nerve-agent/main/.cursor/skills/nerve-agent-payment/SKILL.md\n\nmkdir -p ~/.cursor/skills/paybox-payment\ncurl -o ~/.cursor/skills/paybox-payment/SKILL.md \\\n  https://raw.githubusercontent.com/NerveNetwork/nerve-agent/main/.cursor/skills/paybox-payment/SKILL.md\n```\n\n> After installing, restart your AI client. Skills auto-load when relevant tasks are detected.\n\nAlso add a `npx` MCP config (after publishing to npm):\n\n```json\n{\n  \"mcpServers\": {\n    \"nerve-rpc\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"nerve-rpc-mcp\"]\n    }\n  }\n}\n```\n\n---\n\n## Skills Overview\n\n### `nerve-agent-payment`\n\nAI skill for Nerve blockchain payment integration.\n\n**Triggers automatically when**: creating Nerve address, checking NVT balance, receiving crypto, paying on-chain, using NerveSwap, building Agent wallets.\n\n**Covers**:\n- Create / validate Nerve address (nerve-sdk-js, non-custodial)\n- Query received amounts by asset (Nerve RPC MCP)\n- Pay directly with address assets (NerveSwap SDK)\n- Swap then pay (NerveSwap SDK)\n- Local signing for Agent/server use\n- MCP tools quick reference and setup\n\n### `paybox-payment`\n\nAI skill for PayBox multi-chain payment collection.\n\n**Triggers automatically when**: accepting payments from multiple chains, integrating PayBox, handling cross-chain collection, verifying PayBox webhook callbacks, querying PayBox orders.\n\n**Covers**:\n- Prerequisites: Nabox ID registration, collection address, callback URL\n- Payment page invocation (testnet + mainnet URLs)\n- Webhook signature verification (ECDSA, Java + TypeScript examples)\n- Query APIs: chains, assets, price, order status\n- Integration checklist\n- TypeScript API client example\n\n---\n\n## Capabilities Overview\n\n- **Receiver (Nerve)**: Create address locally → share → query received currency and amount via MCP.\n- **Payer (Nerve)**: Query assets via MCP → pay directly or swap via NerveSwap then pay.\n- **PayBox Merchant**: Register Nabox ID → accept payments from 6+ chains → receive USDT on Nerve.\n- **Protocol**: Decentralized; accounts generated and managed locally, keys never custodial.\n- **Nerve**: Fast confirmation (~2s), no gas fees — suited for AI and high-frequency payments.\n\n---\n\n## Links\n\n- [Nerve website](https://nerve.network)\n- [NerveNetwork GitHub](https://github.com/NerveNetwork)\n- [Agent payment framework](agent-payment-framework/README.md)\n- [PayBox flow](agent-payment-framework/paybox-flow.md)\n- [PayBox API docs](https://nabox.gitbook.io/nabox/paybox-open-api)\n- [Nerve RPC MCP](nerve%20rpc%20mcp/README.md)\n- [NerveSwap JS SDK](nerveswap%20sdk/NerveSwap%20JS%20SDK.md)\n\n---\n\n## Pushing to GitHub\n\n```bash\ngit remote add origin https://github.com/NerveNetwork/nerve-agent.git\ngit branch -M main\ngit push -u origin main\n```\n\nAdd **Topics**: `nerve`, `mcp`, `blockchain`, `agent`, `payment`, `nerveswap`, `paybox`, `cross-chain`.\n\n---\n\n## License\n\nMIT\n",
  "bytes": 5744,
  "sha": "d552acbb8880720ee1a721f8a9608efea2f243aea0505ecd9bf2e50cc36a7be2",
  "repo_slug": "nervenetwork/nerve-agent",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_reagost_nerve_rpc_7076649a/readme"
}