Skip to main content
Dispatch

Commerce infrastructure
for the agent era.

Architecture decisions, MCP deep dives, and lessons from building commerce orchestration for AI agents in Latin America. Written for developers and founders building with agents.

Featured
Thesis

The missing infrastructure layer
for agentic commerce.

AI agents are globally capable but locally useless. Ask one to charge via Pix in Brazil, issue a CFDI in Mexico, or settle via SPEI. It breaks. The MCP ecosystem has 5,800+ servers. 99% cover American APIs. We built the other 1%.

FC
Fabiano Cruz·Thesis·2025.11.12·20 min
All posts
Thesis
7layers
compoundingmoats
MCP + paymentswedge
MCP Is a Commodity. Here's What Isn't.
The 7 layers between an agent and a completed transaction — and why each one is a moat. Best Agent Commerce Route, agent-to-agent negotiation, programmable wallets, trust graphs, dispute resolution, c…
2026.03.2825 min
Deep Dive
207+companies
$70M+invested
0latam
The Agentic Commerce Landscape: 207 Companies and Where We Fit
We mapped every player in agentic commerce across 7 value chain layers, 6 competing protocols, and every major funding round. Here's the full landscape, where the white space is, and how CodeSpar is p…
2026.02.1818 min
Engineering
const session = await codespar.create("user_123", { preset: "brazilian" });
Session-first: How We Designed the CodeSpar SDK
Sessions as immutable context containers. 6 meta tools instead of 99. Managed auth that handles OAuth and token refresh. Framework adapters for Claude, OpenAI, and Vercel AI SDK. Here's every design d…
2026.03.1114 min
Tutorial
await session.send("Cobra R$150 via Pix e emite a NFe");
The Complete Loop in 5 Lines of Code
Charge via Pix. Issue NF-e. Generate shipping label. Notify on WhatsApp. Register in ERP. Reconcile in banking. Six APIs, one agent, five lines of TypeScript. Here's how to run the Complete Loop with …
2026.03.188 min
Thesis
UCPACPx402AP2A2ATAP
Six Protocols. The Wrong Question Is Which One Wins.
ACP, UCP, AP2, MCP, A2A, Visa TAP. Six competing standards for agentic commerce launched in the same 18 months. 97M MCP downloads per month. Our bet: MCP wins the tool layer regardless of which paymen…
2026.02.0412 min
Engineering
Agent
Meta Tool
MCP Server
API
Why 6 Meta Tools, Not 99
A full LatAm commerce preset has 99 raw MCP tools across 6 servers. We compress them into 6 meta tools that route dynamically. This keeps the agent's context window lean and the developer experience c…
2026.02.259 min
Architecture
AGENT
MCP
PIX
BCEN
Why Instant Payment Rails Are Better for AI Agents Than Cards
Pix in Brazil, SPEI in Mexico, Transferencias 3.0 in Argentina. Instant settlement rails are structurally more compatible with agentic commerce than card-on-file. No disputes, no chargebacks, programm…
2026.01.149 min
Deep Dive
await nfe.emitir({ cnpj: "12.345.678/0001-99", items: order.items, });
How We Taught an AI Agent to Issue Electronic Invoices in LatAm
NF-e in Brazil, CFDI in Mexico, Factura Electronica in Argentina. Each country has its own fiscal authority, XML schema, and compliance rules. Most MCP servers skip all of them. We wrapped each into a…
2026.01.0713 min
MCP
PixCFDIMelhor EnvioSPEIZ-APIOmie
Building the Largest MCP Catalog for Latin America
The MCP ecosystem has 5,800+ servers and zero covering Pix, CFDI, Melhor Envio, SPEI, or any LatAm commercial API. We've built dozens of servers across 4 countries: Brazil, Mexico, Argentina, and Colo…
2025.12.1611 min
LatAm
WA
AGENT
PIX
WhatsApp Is the Commerce OS of Latin America. Agents Belong There.
500M+ Latin Americans use WhatsApp daily. In Brazil, Mexico, Argentina, and Colombia it's not a messaging app. It's how businesses talk to customers, confirm orders, and send tracking updates. Here's …
2025.12.037 min
Guides
FulfillmentWhatsApp BotCross-borderFiscalLogisticsBillingERP
7 Things You Can Build with CodeSpar Today
An autonomous order fulfillment agent. A WhatsApp commerce bot. A cross-border payment orchestrator. A fiscal compliance autopilot. A logistics coordinator. A subscription billing agent. A multi-count…
2026.03.0410 min
Open Source
$ npm install @codespar/mcp-zoop ✓ 28 tools · MIT · production-ready
We Open Sourced Our Entire MCP Catalog. Here's What MIT Really Means.
Not source available. Not open core with a proprietary engine. Genuinely, completely open source. MIT licensed, published on npm, every line testable. Here's what that commitment means in practice.
2025.11.266 min
Tutorial
const session = await codespar.session.create({ preset: "brazilian", });
How to Build a Payment Agent with CodeSpar
A step-by-step tutorial: install the SDK, create a session, charge via Pix, issue an NF-e, notify the customer on WhatsApp, and run the Complete Loop — all from a single agent. Real code, real APIs, p…
2026.03.2516 min
Deep Dive
PIX
NF-e
SHIP
WA
ERP
BANK
The Complete Loop: How AI Agents Run a Business in Latin America
The definitive guide to the 6-step Complete Loop: charge via Pix, issue NF-e, ship, notify on WhatsApp, register in ERP, reconcile in banking. Why Latin America is different, how each MCP server works…
2026.04.0122 min

Get Dispatch in your inbox

Commerce infrastructure, MCP architecture, and lessons from building in Latin America. One post per week.

✓ No spam. Unsubscribe anytime.