Skip to main content
Dispatch

Movimiento de dinero
para la era de los agentes.

Decisiones de arquitectura, deep dives de MCP y lecciones de construir el OS agéntico para mover dinero en América Latina. Escrito para devs y founders que construyen con agentes.

Destacado
Tesis

La capa de infraestructura que falta
para el comercio agéntico.

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·Tesis·2026.04.13·10 min
Todos los posts
Thesis
PixSPEIMandatesKYAInterop
The Rails Will Stay Plural. The Authorization Doesn't Have To.
Most of the money moved in the world doesn't run through a card network or a private ledger. It runs through instant-payment schemes a central bank built and mandates by law: Pix in Brazil, SPEI in Me…
2026.08.135 min
Thesis
$600Mannualized
165M+transactions
$0.32avg payment
One Authorization, Any Rail
The last twelve months taught machines to pay, and real money is moving: 165M+ x402 transactions, roughly $600M annualized, marketplaces and agents already earning. Almost all of it was built in crypt…
2026.07.177 min
Thesis
AGENT
MANDATE
RAIL
RECEIPT
Agents Can Build Anything. Then They Hit the Paywall.
Prompt-to-code made the first version easy. Production is where it breaks: every external service an agent touches needs an account, auth, and a payment. Every action an agent takes eventually settles…
2026.07.105 min
Guides
AGENT
MCP
API
MCP vs. API: what changes when the caller is an agent
An API is a contract written for the developer who wires two programs together. MCP is a contract a model reads and wires at runtime. That single inversion explains every practical difference. The ful…
2026.07.029 min
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.04.1521 min
Deep Dive
207+companies
$70M+invested
0latam
207 companies. $2.4B deployed. Zero in Latin America.
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.04.1324 min
Engineering
const session = await codespar.create("user_123", { preset: "brazilian" });
Session-first: How We Designed the CodeSpar SDK
Sessions as immutable context containers. Meta tools instead of every raw tool. Managed auth that handles OAuth and token refresh. Framework adapters for Claude, OpenAI, and Vercel AI SDK. Here's ever…
2026.04.149 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.04.1410 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.04.0820 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.04.1011 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.04.0118 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.03.2516 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…
2026.03.1812 min
LatAm
WA
AGENT
PIX
WhatsApp is the operating system for commerce in Brazil. Not a channel. The platform.
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 …
2026.03.1023 min
Guides
FulfillmentWhatsApp BotCross-borderFiscalLogisticsBillingERP
10 things you can build with CodeSpar today
Ten use-case designs for agents using the CodeSpar MCP catalog and SDK, with business context and conceptual code sketches.
2026.03.0615 min
Open Source
$ npm install @codespar/mcp-zoop ✓ 28 tools · MIT · production-ready
We open sourced our entire MCP catalog. Here's why MIT — not AGPL, not SSPL, not BSL.
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.
2026.03.0325 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.04.159 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.1513 min

Recibí Dispatch en tu inbox

Infraestructura de movimiento de dinero, arquitectura de MCP y lecciones de construir en América Latina. Un post por semana.

✓ Sin spam. Cancelá cuando quieras.
Dispatch — CodeSpar Blog | CodeSpar