Cursor Integration

Connect Cursor to Clash of Coins checkout with MCP, OpenAPI, and agent-readable docs.

MCP Setup

Use command "npm --prefix apps/gateway run mcp" with GATEWAY_MCP_BASE_URL=https://x402.clashofcoins.com. Repository config hint: .cursor/mcp.json.

Remote Discovery

Read https://x402.clashofcoins.com/.well-known/mcp, https://x402.clashofcoins.com/.well-known/mcp/server-card.json, https://x402.clashofcoins.com/agents.md, and https://x402.clashofcoins.com/llms.txt before choosing a tool.

Execution Rule

List or quote before buy. If a paid route returns 402, preserve the request body and retry with the protocol payment header. Poll status before duplicate payment attempts.

References