{
  "schema_version": "v1",
  "name": "xenarch",
  "displayName": "Xenarch",
  "description": "Non-custodial x402 MCP server for AI agent payments. Gasless USDC micropayments on Base L2. Direct agent-to-publisher settlement, 0% fee.",
  "homepage": "https://xenarch.com",
  "documentation": "https://docs.xenarch.com",
  "source": "https://github.com/xenarch-ai/xenarch-mcp",
  "issues": "https://github.com/xenarch-ai/xenarch-mcp/issues",
  "icon": "https://xenarch.com/og.png",
  "version": "0.2.0",
  "license": "MIT",
  "publisher": {
    "name": "Xenarch",
    "url": "https://xenarch.com",
    "contact": "hello@xenarch.com"
  },
  "install": {
    "command": "npx @xenarch/agent-mcp",
    "npm": "@xenarch/agent-mcp",
    "pypi": "xenarch"
  },
  "transport": {
    "type": "stdio",
    "binary": "xenarch-mcp"
  },
  "configuration": [
    { "name": "XENARCH_PRIVATE_KEY", "description": "Wallet private key (hex, 0x-prefixed). Auto-generates on first run if omitted.", "secret": true, "required": false },
    { "name": "XENARCH_RPC_URL",     "description": "Base RPC endpoint URL.",                                                       "secret": false, "required": false },
    { "name": "XENARCH_NETWORK",     "description": "Network for payments (base or base-sepolia).",                                  "secret": false, "required": false },
    { "name": "XENARCH_AUTO_APPROVE_MAX", "description": "Optional client-side budget cap. Max USD the agent auto-approves without prompting. Xenarch itself does not impose a per-call ceiling.", "secret": false, "required": false }
  ],
  "tools": [
    {
      "name": "xenarch_check_gate",
      "description": "Check if a URL or domain has an x402 payment gate. Returns gate status, price, seller wallet, network, asset, protocol."
    },
    {
      "name": "xenarch_pay",
      "description": "Pay for gated content or APIs with USDC on Base. Checks balance, signs payment, facilitator submits on-chain (gasless). Returns tx hash, amount, Bearer access token. Optional client-side per-call cap via max_usd parameter or XENARCH_MAX_PAYMENT_USD env var."
    },
    {
      "name": "xenarch_get_history",
      "description": "List past payments by this wallet. Returns tx hashes, URLs, domains, amounts, timestamps, total spend. Filter by domain."
    }
  ],
  "tags": ["payments", "x402", "usdc", "base-l2", "non-custodial", "micropayments", "agent-payments"]
}
