sdk
Verified Safeby Cronos402
Overview
Facilitate payments for Model Context Protocol (MCP) servers and AI agents on the Cronos blockchain using USDC.e and CRO.
Installation
npx cronos402 connect -u "https://api.example.com/mcp" -k 0x1234... -n cronos-testnetEnvironment Variables
- SERVER_URLS
- CRONOS_PRIVATE_KEY
- API_KEY
- X402_MAX_ATOMIC
- CRONOS_NETWORK
- X402_WALLET_JSON
- X402_VERSION
Security Notes
The proxy (`withProxy`) component is critical, handling request forwarding, decompression, and header management. While it includes measures like header sanitization and retry limits, any parsing or forwarding vulnerability could be exploited. The `X402MonetizationHook` relies heavily on an external Cronos facilitator (`https://facilitator.cronoslabs.org`) for payment verification and settlement. Trusting this third-party service is a significant security consideration, as its compromise could lead to unauthorized transactions. Private keys are handled directly via CLI arguments or environment variables, necessitating secure management by the user. The `AuthHeadersHook` can inject custom headers, which could be risky if the `resolveAuthHeaders` function is compromised or misconfigured, though the SDK itself doesn't introduce this vulnerability directly.
Similar Servers
solx402-mcp-server
The SOLx402 MCP Server enables AI assistants to interact with the x402 payment protocol on Solana, providing tools for service discovery, consumption, USDC payments, and access to Solana development resources.
mcp
Provides a Node.js/TypeScript client for AI agents to securely integrate with Visa's Model Context Protocol (MCP) server, enabling token-managed authentication and execution of agent-driven commerce transactions.
P-Link-MCP
The P-Link MCP Server connects AI clients (like ChatGPT, Claude) to a Solana-based payment system, enabling conversational management of cryptocurrency payments, wallet information, and creation of payment links.
x402-mcp-server
Enables AI agents to pay for x402-protected database queries and API calls using USDC on the Base blockchain.