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