{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "name": "rohan-protocol-mcp",
  "version": "0.8.3",
  "description": "MCP Server Card for Rohan Protocol — Sovereign Identity & Confidential Settlement Layer for Autonomous AI Agents on Midnight Network (SEP-1649).",
  "endpoint": "https://api.rohanprotocol.network/mcp",
  "capabilities": {
    "tools": [
      {
        "name": "rohan_execute_handshake",
        "description": "Executes a confidential L1 commitment handshake anchoring intent and payloadDigest to Midnight Network.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "intent": {
              "type": "string",
              "description": "Human or agent-readable action intent label"
            },
            "confidentialPayload": {
              "type": "object",
              "description": "Confidential parameters hashed in local RAM (RFC 8785); never transmitted in plaintext to L1"
            }
          },
          "required": [
            "intent"
          ]
        }
      },
      {
        "name": "rohan_get_ledger_state",
        "description": "Read-only snapshot of current Midnight Preprod on-chain stateRoot, blockHeight, and contract deployment status.",
        "inputSchema": {
          "type": "object",
          "properties": {}
        }
      },
      {
        "name": "rohan_get_transaction_history",
        "description": "Read-only history of confirmed L1 settlements on Midnight Network.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "limit": {
              "type": "integer",
              "default": 10,
              "minimum": 1,
              "maximum": 50
            }
          }
        }
      },
      {
        "name": "rohan_verify_commitment",
        "description": "Local cryptographic verification of plaintext data against RFC 8785 + SHA-256 payloadDigest.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "payload": {
              "type": "object",
              "description": "Plaintext JSON payload to verify"
            },
            "expectedDigest": {
              "type": "string",
              "description": "Hex-encoded SHA-256 hash"
            }
          },
          "required": [
            "payload",
            "expectedDigest"
          ]
        }
      },
      {
        "name": "rohan_get_agent_status",
        "description": "Returns active agent did:key identity, signing mode, and paymaster health.",
        "inputSchema": {
          "type": "object",
          "properties": {}
        }
      }
    ]
  }
}
