@ar-agents/identity
v0.5.0CUIT/CUIL validation + AFIP/ARCA padrón lookup (constancia con monotributo + condición IVA). WSAA SOAP via subpath.
@ar-agents/mercadopago · v0.15.2
Drop Mercado Pago into your AI agent. The whole API, with idempotency, retries, observability, and human-in-the-loop guardrails on irreversible operations.
| Feature | @ar-agents /mercadopago | mercadopago (official) | Stripe Agent Toolkit |
|---|---|---|---|
| Vercel AI SDK 6 tool schemas | ✓ | no | ✓ (Stripe) |
| Argentine-specific (cuotas, ARCA, AR phone) | ✓ | partial | no |
| Tool count | 89 | thin REST | 26 (Stripe) |
| Webhooks: HMAC + dedup + replay window | ✓ | client only | ✓ |
| Edge Runtime + Vercel KV adapters | ✓ | Node-only | optional |
| OpenTelemetry instrumentation | ✓ | no | no |
| Deterministic idempotency by default | ✓ | no | no |
| Programmatic HITL on irreversible ops | ✓ | no | no |
| MercadoPago coverage | full | full | n/a |
create / capture / refund · OAuth marketplace · Checkout Pro · Order Management
create / get / pause / resume / cancel · plans · saved cards
AR issuer-promo catalog · installments · 3DS challenge resolution
in-store QR · physical Point devices · Stores + POS
HMAC verification · replay window · deduplication · handle_webhook combo
InMemory + Vercel KV adapters out of the box · pluggable interface
OpenTelemetry traces via subpath · audit log adapter · circuit breaker
deterministic idempotency by default · programmatic HITL on 8 irreversible ops
pnpm add @ar-agents/mercadopago ai zod
import { Experimental_Agent as Agent, stepCountIs } from "ai";
import {
MercadoPagoClient,
mercadoPagoTools,
InMemoryStateAdapter,
} from "@ar-agents/mercadopago";
const mp = new MercadoPagoClient({
accessToken: process.env.MP_ACCESS_TOKEN!, // TEST- for sandbox, APP_USR- for prod
});
const agent = new Agent({
model: "anthropic/claude-sonnet-4-6",
tools: mercadoPagoTools(mp, {
state: new InMemoryStateAdapter(), // swap for VercelKVStateAdapter in prod
backUrl: "https://yoursite.com/subscription/done",
}),
stopWhen: stepCountIs(8),
});
const { text } = await agent.generate({
prompt: "Creá una subscription mensual de $1000 ARS para customer@example.com.",
});Same approach, applied to the rest of the stack an Argentine business needs. Each ships independently to npm and composes with @ar-agents/mercadopago.
CUIT/CUIL validation + AFIP/ARCA padrón lookup (constancia con monotributo + condición IVA). WSAA SOAP via subpath.
Verification orchestrator (WhatsApp OTP, email magic-link, Auth0, Magic.link, MP Identity). Returns HMAC-signed attestation with a trust level.
WhatsApp Business Cloud API. Webhook + HMAC verify. AR phone normalizer. scopedTo mode binds outbound tools to a single sender.
AFIP/ARCA factura electrónica (WSFE). Factura A/B/C, NC/ND, FCE MiPyMEs. Local pre-flight validator catches the 10 most common rejection reasons before the round-trip.
CBU/CVU validation with bank/PSP identification (Galicia, Nación, Mercado Pago, Ualá, Naranja X…). BCRA Central de Deudores lookup.
Andreani (full REST), OCA, Correo Argentino. cotizar / crear / trackear / cancelar. Provincia + CPA helpers.
MCP server bundling all 7 packages. One install in Claude Desktop / Cursor / any MCP host. Auto-detects which packages to enable from env vars.
ar-agents-whatsapp-hello.vercel.app shows MP composing with identity, identity-attest, and whatsapp in a single agent. Validates CUIT against ARCA, gates large charges with verification (WhatsApp OTP), creates the MP subscription, replies on WhatsApp.