Skip to main content
Create typed Mastra tools around the Darwin SDK or use remote MCP where supported. Keep discovery and mutation tools separate. Copy the Mastra MCP recipe. Persist the selected capability revision, actionId, and mutation request IDs in workflow state. Use Get action after process restarts, delayed providers, or browser-based interactions. Treat availableActions as the router for valid next steps and surface approval or payment review to the user instead of automatically continuing.

Suggested workflow data

Checkpoint before and after each mutation. After a process restart, load actionId and call Get action before choosing a node.
Last modified on September 22, 2026