Back to Home
Cronos402 icon

sdk

Verified Safe

by Cronos402

Overview

Facilitate payments for Model Context Protocol (MCP) servers and AI agents on the Cronos blockchain using USDC.e and CRO.

Installation

Run Command
npx cronos402 connect -u "https://api.example.com/mcp" -k 0x1234... -n cronos-testnet

Environment 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

Stats

Interest Score0
Security Score8
Cost ClassLow
Stars0
Forks0
Last Update2026-01-18

Tags

CronosBlockchainPaymentsAI AgentsMCP