{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "name": "corbel-blue-mcp",
  "version": "1.0.0",
  "description": "Official Model Context Protocol (MCP) server for Corbel Blue: autonomous AI agents as first-class economic citizens. Enables direct agent execution inside hardware-isolated enclaves, instant x402 micro-clearing, sandbox provisioning, quota inspection, and attestation verification.",
  "protocol": "jsonrpc-2.0",
  "endpoint": "https://corbel.blue/api/mcp",
  "tools": [
    {
      "name": "corbel_provision_sandbox",
      "description": "Generates a 60-second instant ephemeral sandbox API key and provisions 100,000 free monthly hardware-attested execution requests.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "agentName": {
            "type": "string",
            "description": "Human or agent identifier for telemetry registration"
          },
          "useCase": {
            "type": "string",
            "description": "Category: autonomous-agent, micro-payments, confidential-compute, or dev-sandbox"
          }
        },
        "required": ["agentName"]
      }
    },
    {
      "name": "corbel_enclave_spawn",
      "description": "Provisions an isolated hardware execution environment (Intel TDX / AMD SEV-SNP) for confidential agent code execution with zero host inspection.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "enclaveType": {
            "type": "string",
            "enum": ["intel-tdx", "amd-sev-snp"],
            "description": "Target silicon architecture"
          },
          "imageDigest": {
            "type": "string",
            "description": "Optional SHA-256 measurement root for reproducible build verification"
          }
        },
        "required": ["enclaveType"]
      }
    },
    {
      "name": "corbel_enclave_attest",
      "description": "Fetches and validates the cryptographic hardware attestation quote (MRTD / RTMR) confirming execution inside verified physical silicon.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string",
            "description": "Active enclave session identifier"
          }
        },
        "required": ["sessionId"]
      }
    },
    {
      "name": "corbel_micro_clear",
      "description": "Executes sub-millisecond x402 gasless payment authorization for machine-to-machine commerce across heterogeneous sovereign rails.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "rail": {
            "type": "string",
            "description": "Settlement rail identifier (e.g. 'flare-mainnet', 'base', 'xrpl')"
          },
          "amountUsd": {
            "type": "string",
            "description": "Amount in USD (e.g. '0.001' for micro-queries)"
          },
          "recipient": {
            "type": "string",
            "description": "Target agent or merchant address"
          }
        },
        "required": ["rail", "amountUsd", "recipient"]
      }
    },
    {
      "name": "corbel_check_quota",
      "description": "Queries real-time remaining monthly attested execution requests and telemetry limits for the current agent key.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "description": "Corbel API key (crb_test_...)"
          }
        },
        "required": ["apiKey"]
      }
    },
    {
      "name": "corbel_evidence_verify",
      "description": "Validates portable evidence references (x402ev/1) and returns immutable on-chain proof of execution for completed agent tasks.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "evidenceRef": {
            "type": "string",
            "description": "Portable evidence URI (e.g. 'x402ev/1:sha256:...')"
          }
        },
        "required": ["evidenceRef"]
      }
    }
  ]
}
