Agent Integration
Enable AI agents to perform autonomous decentralized commerce operations through Boson Protocol's comprehensive commerce infrastructure.
Integration Requirements
To enable decentralized commerce capabilities in your AI agent, your agent needs to support:
MCP Server Connection: Connect to external Model Context Protocol servers to access commerce tools
EVM Transaction Signing: Handle blockchain transaction signing for EVM-compatible networks
Tool Registration: Register and utilize external tools within your agent framework
Multi-Chain Configuration: Support different blockchain networks and environments
How Boson Simplifies Integration
Boson Protocol abstracts away the complexity through the @bosonprotocol/agentic-commerce package, which provides:
40+ Ready-to-Use Commerce Tools: Complete toolkit for decentralized marketplace operations
MCP Server Integration: Pre-built connection to Boson's commerce infrastructure
GOAT SDK Plugin: Framework adapters for popular AI SDKs (LangChain, Vercel AI, etc.)
Transaction Handling: Simplified blockchain transaction preparation and signing workflows
Multi-Chain Support: Automatic network detection and configuration management
Boson Local Environment Setup: Easy to start local environment of Boson protocol (full protocol deployed locally, making it very easy to test your AI agent integration)
Instead of building custom integrations for each blockchain and commerce operation, you can use Boson's unified interface to enable your agents with full commerce capabilities.
Integration Approaches
You can integrate Boson Protocol with your AI agent using two main approaches:
1. Boson GOAT SDK Plugin (Recommended)
Use the bosonProtocolPlugin
from @bosonprotocol/agentic-commerce
:
Handles everything: MCP server communication, tool registration, AND transaction signing
Pre-built GOAT SDK plugin that works with any AI framework adapter
Type-safe tool integration with 40+ commerce tools automatically available
Simplest integration path - just plug in and use
2. Direct MCP Client Integration
Use the BosonMCPClient
from @bosonprotocol/agentic-commerce
directly:
Handle MCP communication yourself: Connect to server, call tools manually
Handle transaction signing yourself: MCP client returns unsigned transactions that you must sign and submit
Custom tool registration in your agent framework
Full control over integration architecture
Next Steps
See our LangChain Implementation Example for a more specific code examples and step-by-step integration guide.
Last updated