{
  "mcp_version": "1.0",
  "server": {
    "name": "Zeam MCP Settlement",
    "base_url": "https://api.zeam.money",
    "auth": {
      "preferred": "OAuth2:client_credentials",
      "token_url": "https://auth.zeam.money/oauth/token",
      "alternates": ["mTLS", "APIKey"]
    },
    "tools": [
      {
        "name": "fx.quote",
        "description": "Get firm/indicative quotes for ZARZ, USDZ, EURZ, XAUZ, BTCZ via Stellar path previews.",
        "schema": {
          "type": "object",
          "required": ["base", "quote", "amount", "side"],
          "properties": {
            "base": { "type": "string", "example": "ZARZ@Stellar" },
            "quote": { "type": "string", "example": "USDZ@Stellar" },
            "amount": { "type": "string", "example": "100.00" },
            "side": { "type": "string", "enum": ["buy", "sell"] },
            "customer_segment": { "type": "string", "example": "retail|b2b" }
          }
        },
        "endpoint": "/mcp/fx/quote"
      },
      {
        "name": "payment.pathpay",
        "description": "Execute a path payment using Stellar SDEX routes (locks a quote_id).",
        "schema": {
          "type": "object",
          "required": ["source_wallet", "dest_wallet", "send_asset", "dest_asset", "amount", "quote_id"],
          "properties": {
            "source_wallet": { "type": "string", "example": "G... (Stellar pubkey)" },
            "dest_wallet": { "type": "string", "example": "G... (Stellar pubkey)" },
            "send_asset": { "type": "string", "example": "ZARZ@Stellar" },
            "dest_asset": { "type": "string", "example": "USDZ@Stellar" },
            "amount": { "type": "string", "example": "100.00" },
            "quote_id": { "type": "string" }
          }
        },
        "endpoint": "/mcp/payments/pathpay"
      },
      {
        "name": "receipt.get",
        "description": "Fetch on-chain proof and structured receipt for a transaction.",
        "schema": {
          "type": "object",
          "required": ["tx_id"],
          "properties": { "tx_id": { "type": "string" } }
        },
        "endpoint": "/mcp/receipts/{tx_id}"
      }
    ],
    "resources": [
      { "name": "assets.list", "uri": "/mcp/assets" },
      { "name": "fx.pairs", "uri": "/mcp/fx/pairs" }
    ]
  }
}