{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "name": "ashlar-blue-mcp",
  "version": "1.2.0",
  "description": "Official Model Context Protocol (MCP) server for Ashlar Blue attested machine trust, DNS discovery, hardware attestation, zero-gas settlement, agent identity verification, and tax audit transparency.",
  "protocol": "jsonrpc-2.0",
  "endpoint": "https://ashlar.blue/api/mcp",
  "tools": [
    {
      "name": "discover_x402_endpoint",
      "description": "Queries IANA _x402 apex TXT record via DNSSEC to discover autonomous agent facilitator payment endpoints according to the x402 DNS Discovery IETF Draft Section 4 ABNF grammar.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "description": "The apex or sub-domain to query (e.g. 'ashlar.blue', 'example.com')"
          }
        },
        "required": ["domain"]
      }
    },
    {
      "name": "verify_tdx_quote",
      "description": "Validates Intel TDX v4 hardware Measurement Root of Trust (MRTD) hashes against immutable blockchain data availability.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "quoteHex": {
            "type": "string",
            "description": "Base64 or hex-encoded Intel TDX hardware attestation quote"
          },
          "daBlock": {
            "type": "string",
            "description": "Optional blockchain data availability block reference or transaction hash"
          }
        },
        "required": ["quoteHex"]
      }
    },
    {
      "name": "canonicalize_jcs_payload",
      "description": "Formats JSON payment authorization and attestation envelopes using RFC 8785 JSON Canonicalization Scheme (JCS) to ensure deterministic, reproducible signing hashes across heterogenous machine environments.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "payload": {
            "type": "object",
            "description": "Arbitrary JSON object to normalize"
          }
        },
        "required": ["payload"]
      }
    },
    {
      "name": "submit_gasless_settlement",
      "description": "Submits signed EIP-3009 (receiveWithAuthorization) or cross-ledger clearing payloads to multi-chain settlement facilitators for $0.00 gas execution.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "network": {
            "type": "string",
            "description": "Target CAIP-2 network identifier (e.g. 'eip155:14', 'xrpl:mainnet')"
          },
          "payload": {
            "type": "object",
            "description": "Signed authorization payload matching RFC 8785 schema"
          }
        },
        "required": ["network", "payload"]
      }
    },
    {
      "name": "verify_agent_identity",
      "description": "Validates hardware-attested agent identity (HAI) credentials, measurement roots (MRTD), and permission scopes under the x402 Identity Working Group specification (draft-scitt-attested-agent-payment-00).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "agentId": {
            "type": "string",
            "description": "The decentralized agent identifier (e.g. 'did:x402:agent_01j9a...')"
          },
          "hardwareQuote": {
            "type": "string",
            "description": "Base64-encoded TEE hardware quote bound to agent signing key"
          },
          "requiredScope": {
            "type": "string",
            "description": "Requested permission scope (e.g. 'payments:settle', 'oracle:feed')"
          }
        },
        "required": ["agentId", "hardwareQuote"]
      }
    },
    {
      "name": "generate_tax_receipt",
      "description": "Computes deterministic tax jurisdiction withholding lines, canonicalizes tax audit payloads via RFC 8785 (JCS), and generates verifiable SCITT transparency receipts under the x402 Tax Working Group specification.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "paymentId": {
            "type": "string",
            "description": "Unique settlement transaction identifier or hash"
          },
          "jurisdiction": {
            "type": "string",
            "description": "ISO 3166-2 jurisdiction code (e.g. 'US-DE', 'EU-IE')"
          },
          "rateBasisPoints": {
            "type": "number",
            "description": "Tax rate in basis points (e.g. 0, 500 = 5.00%)"
          },
          "settlementHash": {
            "type": "string",
            "description": "Cryptographic hash of the settled x402 payment envelope"
          }
        },
        "required": ["paymentId", "jurisdiction", "settlementHash"]
      }
    }
  ]
}
