Integration v1.4.2

SDK Integration

Connect your AI agents to the Vouch Trust Layer using the Model Context Protocol (MCP). Zero-config identity and spending mandates.

01

Install Core Package

Add the Vouch MCP server to your project. Works with Claude Desktop, LangChain, and custom agent frameworks.

Terminal
npm install @vouch/mcp-server
pip install vouch-sdk
02

Initialize MCP Server

Configure your environment variables and boot the Vouch engine. Ensure your Base wallet private key is stored securely.

Python TypeScript
from vouch import VouchClient

# Initialize with your API Key
client = VouchClient(
    api_key="vch_sk_test_...",
    environment="mainnet"
)

# Start MCP Server
client.mcp.start_server()
03

Authorize & Pay

Enable your agent to call Vouch tools. When an agent needs to pay, it triggers a Mandate request.

// Example: Agent calling a payment tool
const payment = await agent.use_tool("vouch_pay", {
    amount: 150.00,
    currency: "USDC",
    mandate_id: "mandate_8823",
    recipient: "0x742d..."
});