{
  "version": "1.0",
  "name": "hibropay-web-checkout",
  "description": "Crypto payment checkout — AI agents can select chain, token, and pay via WebMCP tools.",
  "homepage": "/",
  "instructions": "Call tools in order: get_chains → select_chain → select_token (list) → select_token (select) → checkout → get_order_status. See /llms.txt for full guide.",
  "tools": [
    {
      "name": "get_chains",
      "description": "Get all available blockchain networks for payment.",
      "action": "read",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "select_chain",
      "description": "Select a blockchain network by chain ID.",
      "action": "update",
      "inputSchema": {
        "type": "object",
        "properties": {
          "chainId": {
            "type": "number",
            "description": "Chain ID from get_chains result"
          }
        },
        "required": [
          "chainId"
        ]
      }
    },
    {
      "name": "select_token",
      "description": "List available tokens (no args) or select a token by currency ID.",
      "action": "update",
      "inputSchema": {
        "type": "object",
        "properties": {
          "currencyId": {
            "type": "string",
            "description": "Currency ID from token list; omit to list all tokens"
          }
        }
      }
    },
    {
      "name": "checkout",
      "description": "Create payment order for the selected chain and token. Returns pay_address.",
      "action": "submit",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "get_order_status",
      "description": "Query current payment order status (TO-BE-PAID, PAID, TIME-OUT).",
      "action": "read",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "search_tokens",
      "description": "Search supported tokens by name or symbol across all blockchain networks.",
      "action": "read",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "Token name or symbol fragment, case-insensitive"
          }
        }
      }
    }
  ],
  "prompts": [
    {
      "name": "checkout_guide",
      "description": "Step-by-step guide for the checkout workflow"
    }
  ],
  "resources": [
    {
      "uri": "webmcp://payment/context",
      "name": "payment_context",
      "description": "Current checkout context snapshot (chains, selected chain/token, order)",
      "mimeType": "application/json"
    },
    {
      "uri": "order://current/info",
      "name": "current_order_info",
      "description": "Real-time details of the current payment order (amount, currency, chain, pay_address, expiry).",
      "mimeType": "application/json"
    }
  ]
}
