Mastra Adapter
ASAP capabilities as Mastra createTool definitions.
Install @asap-protocol/mastra alongside @mastra/core to call remote ASAP capabilities from Mastra agents without hand-writing tool schemas.
Runnable UI sample: apps/example-mastra (Compliance Harness v2 score 1.0). Docs: docs/integrations/mastra.md.
Key Capabilities
Tool bridge
Maps manifest capabilities to Mastra inputSchema/outputSchema via Zod.
Agent wrapper
Optional createAsapMastraAgent helper with sane defaults for ASAP-backed agents.
Streaming
asapStreamToMastraTextStream bridges TaskStream chunks to Mastra-style text.