agentpay-mcp: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from up2itnow0822/agentpay-mcp. It costs 625 tokens per session, scanned A, original, MIT.

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

Written for Cursor: installed under .cursor/. Also seen: mentions Cursor.

This is up2itnow0822/agentpay-mcp's own configuration. It tells Cursor how to work on agentpay-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentpay-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to up2itnow0822/agentpay-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/up2itnow0822/agentpay-mcp/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/up2itnow0822/agentpay-mcp

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/up2itnow0822/agentpay-mcp/cursorrules/github.svg)](https://agentmods.dev/rules/up2itnow0822/agentpay-mcp/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/up2itnow0822/agentpay-mcp/cursorrules"><img src="https://agentmods.dev/badge/rules/up2itnow0822/agentpay-mcp/cursorrules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/up2itnow0822/agentpay-mcp/cursorrules"><img src="https://agentmods.dev/badge/rules/up2itnow0822/agentpay-mcp/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 625 This file is loaded in full into every session.
When invoked 625 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00625 $0.00625
Opus 5.5 $0.00250 $0.00250
Sonnet 5.5 $0.00125 $0.00125
Haiku 4.5 $0.00063 $0.00063

Measured 10d ago against content hash c3d237381509, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 10d 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

  • v5.0.0 — agentwallet-sdk 7.0.0, viem 2.57.4, 28 MCP tools (security release; see docs/security-remediation-2026-10.md)
  • 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. 10d ago Changed · +15 tokens per session c3d237381509
  2. 13d ago Changed 3f669aa0db4d
  3. 25d ago Changed · +17 tokens per session a143e7e4b853
  4. 2mo 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 (8 stars, last pushed yesterday), licensed MIT. It adds 625 tokens to every session, about $0.0025 per session on Opus 5.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

cursorrules compared with cursor rules from other repositories

cursorrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorrulesup2itnow0822/agentpay-mcpCursor rule8yesterdayMITA625Cursor
financial-amountsmission69b/t2000Cursor rule231mo agoMITA288Cursor
x402-protocolDexter-DAO/opendexter-ideCursor rule28d agoMITA680Cursor
synapse-agentpaySynapseNetworkAI/Synapse-Network-MCP-ServerCursor rule04mo agoMITA0Cursor
cryptoexchange-netJKorf/CryptoExchange.NetCursor rule5693d agoMITA0Cursor
elizaos_v2_onchain_pluginsAIFlowML/cursor_rulesCursor rule241y agononeA0Cursor
ponytailDietrichGebert/ponytailCursor rule185k8d agoMITA604Cursor