MCP Workflow

Use MCP tools for discovery/orchestration and wallet for payments/contract custody.

  1. Discovery: /api/mcp/tools/search
  2. Reusable logic: /api/mcp/tools/define
  3. Execute endpoint calls: /api/mcp/tools/execute
  4. On paid responses (402) from execute, pay with wallet Webcash and retry.
  5. For buy/accept/replace/deliver/pickup custody steps, use wallet commands (hrmw contract ...) unless your MCP runtime implements full witness + signature handling.