Vercel AI SDK

Wrap tools with a safety check before execution.

Step 1: Set up A2A TrustGate

Run the quickstart wizard — prints API key setup, MCP config, CLAUDE.md snippet, and wrapper generators:

npx a2a-trustgate quickstart

# Then run the interactive setup:
npx a2a-trustgate setup

Step 2: Generate wrapper and integrate

# Generate the safety wrapper:
npx a2a-trustgate generate node

# Creates a2a-safety.js — use it in your app:
const { safeEval } = require("./a2a-safety");

const result = await safeEval("npm install express");
// { decision: "allow", ... }
Help

Help

Need help? Here are some quick links: