Commerce Gateway
The Commerce Gateway exposes Better Data capabilities to MCP-compatible AI agents over remote transport.What It Is
Commerce Gateway (@betterdata/commerce-gateway) is the agent-facing layer for product search, availability, cart, and order workflows, with capability-gated tool access.
Read operations are the default posture. Write-capable tool paths require explicit capability and key scope enablement.
Federated Architecture
AI Agent -> MCP Client -> SSE endpoint -> Commerce Gateway -> Domain backends -> Your data Gateway discovery can be registry-assisted; gateway execution remains org-scoped.Getting Started
Claude MCP Configuration
Available MCP Tools
Verified frompackages/commerce-gateway/src/mcp/tools/index.ts:
shopsearch_productsget_product_detailscheck_availabilitycheck_inventoryget_recommendationsadd_to_cartcreate_orderget_shipment_statusget_purchase_order_statusget_trace_eventsget_demand_forecast
Registry Discovery
Use registry discovery to resolve gateways before execution where applicable:Security
- Authenticate with scoped API keys (
x-api-keyor gateway auth middleware path). - Restrict high-impact scopes to trusted agents and environments.