v0.1.0
Quickstart Guide
Learn how to route your autonomous agent's LLM tool calls through the Out-of-Process MCP Gateway for strict Human-In-The-Loop approval.
1. The Problem
Giving an LLM direct access to a mutable API (like Stripe or AWS) is dangerous. If the agent hallucinates, it executes irreversible actions. The Guardrail API intercepts the JSON-RPC call before execution.
2. Wrapping your Agent
Simply point your agent's MCP base URL to the Gateway. No SDK rewrite required.
agent.ts
const client = new MCPClient({
baseUrl: "https://api.guardrail.dev/v1/mcp", headers: {
"Authorization": "Bearer sk_live_12345" }
});3. The Diff Engine
When the Gateway intercepts the call, it generates a deterministic "dry-run" diff using our Reversal Matrix. The agent receives a PENDING_APPROVAL status, and the operation halts until a human reviews it in the Dashboard.