cursorrules

An MCP server that lets compatible AI assistants use an agent wallet for blockchain financial actions. MCP is a standard way for AI tools to call outside services.

In plain words
What is it for?
It is for adding wallet-based actions to clients such as Claude Desktop, Cursor, or Windsurf, including token transfers, balance checks, swaps, cross-chain USDC transfers, spending limits, identity checks, reputation checks, and escrow.
Why use it?
It gives an AI assistant a defined way to work with token transfers, balances, swaps, and other wallet operations instead of requiring each client to build its own connection.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/up2itnow0822/agentpay-mcp/cursorrules
Clone the repo
git clone --depth 1 https://github.com/up2itnow0822/agentpay-mcp

Made for: Cursor.

Per session 593 This file is loaded in full into every session.
When invoked 593 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00593 $0.00593
Opus 5 $0.00296 $0.00296
Sonnet 5 $0.00119 $0.00119
Haiku 4.5 $0.00059 $0.00059

Measured 2d ago against content hash c6b0d9932f65, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cursorrules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursorrules · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AgentPay MCP — Cursor Rules (ClawPowers enabled)

Project Context

This is agentpay-mcp — an MCP (Model Context Protocol) server that wraps agentwallet-sdk to give AI agents financial capabilities. Any MCP-compatible client (Claude Desktop, Cursor, Windsurf, etc.) can use it.

Current State

  • v3.1.0 on npm, 11 MCP tools
  • Dependencies: @modelcontextprotocol/sdk, [email protected], viem, zod
  • TypeScript, vitest for tests, stdio transport

Upgrade Task: v4.0.0

Add new MCP tools exposing agentwallet-sdk v6.0.0 features:

New Tools to Build

  1. send_token — Send any ERC-20 token (uses TokenRegistry + agentTransferToken)
  2. get_balances — Multi-token, multi-chain balance query
  3. swap_tokens — Uniswap V3 swap via SwapModule
  4. bridge_usdc — CCTP V2 cross-chain bridge
  5. lookup_token — TokenRegistry lookup by symbol + chain
  6. add_custom_token — Register custom token
  7. set_spend_policy — Configure spending limits
  8. check_budget — Query remaining budget
  9. verify_agent_identity — ERC-8004 identity verification
  10. get_reputation — Agent reputation score
  11. create_escrow — Mutual stake escrow

Code Patterns

Follow existing tool patterns in src/tools/:

  • Each tool file exports: toolDefinition, handleFunction, ZodSchema
  • Zod schemas for input validation
  • All handlers return { content: [{ type: "text", text: JSON.stringify(result) }] }
  • Register in src/index.ts ALL_TOOLS array and CallToolRequest handler

Quality Gates

  • All existing 107 tests must still pass
  • New tools need tests in tests/
  • npm run build (tsc) must pass with 0 errors
  • Follow existing code style (no semicolons, single quotes)

SDK Reference

agentwallet-sdk v6.0.0 exports:

  • TokenRegistry: getGlobalRegistry(), .getToken(symbol, chainId), .listTokens(chainId), .addToken()
  • Transfers: agentTransferToken(), encodeERC20Transfer()
  • Decimals: toRaw(), toHuman(), formatBalance()
  • Swap: SwapModule, attachSwap()
  • Bridge: BridgeClient
  • Identity: IdentityClient, ReputationClient, ValidationClient
  • Escrow: MutualStakeEscrow
  • x402: multi-asset resolution

Read the full file on GitHub · 50 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 50 lines · 593 tokens per session scan A c6b0d9932f65

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository up2itnow0822/agentpay-mcp (5 stars, last pushed 3d ago), licensed MIT. It adds 593 tokens to every session, about $0.0030 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other cursor rules, from other repositories

agoragentic

Route an Agoragentic task to the smallest applicable skill. Use when the request involves Agoragentic execution, governance, transaction assurance, proof/receipts, deployment, selling, or integration and the correct branch is not yet known.

rhein1/agoragentic-integrations · 49 tokens

agoragentic-deploy

Prepare a bounded Agoragentic deployment handoff or preview. Use for Agent OS export, deployment-readiness evidence, runtime probes, and owner-approved transition from local proof to hosted operation.

rhein1/agoragentic-integrations · 38 tokens

agoragentic-prove

Produce or inspect Agoragentic local proof and receipt evidence for an agent run. Use for evidence refs, hashes, run status, policy decisions, approval linkage, and reconciliation.

rhein1/agoragentic-integrations · 36 tokens

spend-lanes

Spend lanes — Cursor for review/specs, Claude Code for all implementation. Stops frontier token burn on multi-file code work in Cursor.

mission69b/t2000 · 601 tokens

design-system

The model in one line: share VALUES by copy-in (design-tokens/tokens.css, pure CSS variables only), own COMPONENTS per-app (shadcn in components/ui/), and never ship a shared UI/token package again — @t2000/ui was removed 2026-07-01 because it bundled a marketing global stylesheet and packaged primitives a consumer's…

mission69b/t2000 · 0 tokens

sui-platform

Sui platform patterns — Address Balances (SIP-58) make one address concurrent, gasless stablecoin transfers remove the SUI-for-gas wall, plus the eligibility gotchas that cause misleading failures. Full detail in .claude/skills/t2000-sui-platform/.

mission69b/t2000 · 0 tokens