ar-agents
Open infrastructure for Argentina's sociedades de IA (AI corporations). 37 npm packages · 243 typed tools · 6 RFCs · a forensic audit log. Built in Argentina.
Power your agent
คำสั่งของผู้เผยแพร่เอง ไม่ใช่เอนด์พอยต์ของ PlugMCP
Host a copy with our keys and logs.
npx -y @ar-agents/[email protected]Claude Code ไม่มีลิงก์ติดตั้งสำหรับคำสั่งแบบโลคัล ให้คัดลอกคำสั่งด้านล่างแล้วรันในเทอร์มินัล
MP_ACCESS_TOKEN=<secret> AFIP_CERT_PEM=<secret> AFIP_KEY_PEM=<secret> AFIP_CUIT=<value> WHATSAPP_ACCESS_TOKEN=<secret> WHATSAPP_PHONE_NUMBER_ID=<value> claude mcp add io.github.ar-agents-mcp -- npx -y @ar-agents/mcp@0.4.11รันในเทอร์มินัล
{ "mcpServers": { "io.github.ar-agents-mcp": { "command": "npx", "args": [ "-y", "@ar-agents/[email protected]" ], "env": { "MP_ACCESS_TOKEN": "<secret>", "AFIP_CERT_PEM": "<secret>", "AFIP_KEY_PEM": "<secret>", "AFIP_CUIT": "<value>", "WHATSAPP_ACCESS_TOKEN": "<secret>", "WHATSAPP_PHONE_NUMBER_ID": "<value>" } } }}claude_desktop_config.json
URL แบบรีโมตหรือคำสั่งบนเครื่องของคุณ? การติดตั้งสองแบบต่างกันอย่างไร
รันบน PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
เปิดThe stack covers what an AI-operated Argentine company needs to exist and
operate: identity (AFIP/ARCA), payments, invoicing, banking, government
filings, communications, and a forensic audit log. The deepest package,
@ar-agents/mercadopago, exposes 89 typed tools
across the agent-relevant Mercado Pago API surface for the
Vercel AI SDK 6 Experimental_Agent, one of the 33
packages in the @ar-agents/* stack:
Payments · Subscriptions · Checkout Pro · Marketplace OAuth · Order Management · Customers · Cards · Cuotas · QR · 3DS · Point devices · Stores+POS · Account/Balance/Settlements · Webhooks · Disputes · Lookups · Bank Accounts
Edge Runtime. Vercel KV adapters for state, OAuth, idempotency, and audit. OpenTelemetry instrumentation. Deterministic idempotency by default. Programmatic HITL on irreversible operations.
pnpm add @ar-agents/mercadopago ai zod
Deploys apps/mp-hello, a runnable agent on Vercel with
Edge Runtime API routes, MP webhook handler, and Upstash-backed subscription
state. Around 2 minutes from click to live.
Since Argentina announced a sociedad-IA regime (Sturzenegger, 28-abr-2026), this repo additionally hosts a complete open-source governance scaffolding for AI-only Argentine corporations:
ar-agents.ar/certifier —
paste any URL, score 0-100 against RFC-002 + RFC-004 + RFC-005 in
seconds. Programmatic API at /api/certifier?url=.... Reference impl
self-scores 100/100 Rating A. Cookbook recipes 26 (single-shot) +
27 (monitoring) + 28 (operator readiness)./api/conformance-history — 365-entry capped
KV-backed history per URL, daily Vercel cron auto-population./.well-known/agents.json (RFC-002),
/.well-known/sociedad-ia/verify-key?challenge= (RFC-004 § 5
challenge-response), /.well-known/sociedad-ia/keys (RFC-005 § 4
Ed25519 public key publication)./legislacion
(Spanish for AR legislators) + /en/legislation
(English for international press / comparative-law scholars)./auditor —
print-friendly, 7-minute read, every claim links to evidence./registro —
self-listed implementations with live cert-badges per entry./glossary, /share, /refs, /timeline.For an outsider arriving cold: start at the auditor's brief
or the legislative synthesis.
Citation file: CITATION.cff.
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 [email protected].",
});
Full reference, cookbook (9 recipes including OpenTelemetry wiring), and
migration guide vs the official mercadopago SDK live in
packages/mercadopago/.
Both official SDKs are excellent at what they do (generic REST clients for
their respective APIs). @ar-agents/mercadopago is opinionated for the
agent-operating-an-Argentine-business case, and composes with mercadopago
under the hood when needed. See MIGRATION.md.
flowchart LR
subgraph user_app["Your Next.js / Edge / Workers app"]
direction TB
agent["Vercel AI SDK 6<br/>Experimental_Agent"]
end
subgraph ar_agents["@ar-agents/* (this monorepo)"]
direction TB
mp["mercadopago<br/>89 tools"]
id["identity<br/>CUIT + AFIP padrón"]
fac["facturacion<br/>factura electrónica"]
wa["whatsapp<br/>Business Cloud"]
bk["banking<br/>CBU + BCRA"]
sh["shipping<br/>Andreani / OCA / Correo"]
att["identity-attest<br/>HMAC-signed orchestrator"]
mcp["mcp<br/>bundles all 7 over MCP"]
end
subgraph adapters["Pluggable state (subpath)"]
direction TB
kv["@ar-agents/mercadopago/vercel-kv<br/>state · OAuth · idempotency · audit · ratelimit"]
otel["@ar-agents/mercadopago/otel<br/>OpenTelemetry instrumentation"]
end
subgraph external["External APIs"]
direction TB
mpapi["api.mercadopago.com"]
afip["AFIP/ARCA WSAA + WSFE"]
meta["Meta WhatsApp Cloud API"]
bcra["BCRA Central de Deudores"]
carriers["Andreani · OCA · Correo Argentino"]
end
agent -- tool calls --> mp & id & fac & wa & bk & sh & att
mp -.subpath.-> kv & otel
mp --> mpapi
id --> afip
fac --> afip
wa --> meta
bk --> bcra
sh --> carriers
mcp -.bundles.-> mp & id & fac & wa & bk & sh & att
The agent picks tools from natural-language prompts. Each package is an independent npm release; there are no cross-package runtime dependencies beyond the optional adapter subpaths, so you only ship the surface you use.
Same approach, applied to the rest of the stack an Argentine business needs:
Each package ships a README.md for humans and an AGENTS.md for LLMs reading
the docs at runtime, following the agents.md format
(tool-selection rules, result schemas, error patterns).
pnpm install
pnpm test # 719 tests across 8 packages
pnpm typecheck
pnpm build
pnpm dev # mp-hello on http://localhost:3013
Requires Node 20+ and pnpm 10+. CI runs build, typecheck, coverage, manifest-drift, publint, arethetypeswrong, and size-limit on every push.
ar-agents/
├── apps/
│ ├── landing/ # ar-agents.ar
│ ├── cuit-hello/ # cuit-hello.ar-agents.ar (port 3014)
│ ├── whatsapp-hello/ # whatsapp-hello.ar-agents.ar
│ └── mp-hello/ # dev-only (port 3013)
├── packages/
│ ├── mercadopago/ # 89 tools: subscriptions, payments, OAuth, QR, 3DS, point, ...
│ ├── identity/ # CUIT validate + ARCA padrón
│ ├── identity-attest/ # verification orchestrator
│ ├── whatsapp/ # WhatsApp Cloud
│ ├── facturacion/ # AFIP factura electrónica
│ ├── banking/ # CBU/CVU + BCRA
│ ├── shipping/ # Andreani / OCA / Correo
│ └── mcp/ # MCP server wrapping all
├── .github/workflows/ # ci.yml, release.yml
├── package.json # workspace root
└── pnpm-workspace.yaml
All packages are pre-1.0. Public API may evolve in 0.x; we follow semver, so minor bumps may include breaking changes and patch bumps never do. Pinning a minor in production is safe.
MIT. Built by Nazareno Clemente.
Argentine business automation: Mercado Pago, AFIP/ARCA, WhatsApp, banking, shipping (7 packages).
{ "mcpServers": { "io.github.ar-agents-mcp": { "command": "npx", "args": [ "-y", "@ar-agents/[email protected]" ], "env": { "MP_ACCESS_TOKEN": "<secret>", "AFIP_CERT_PEM": "<secret>", "AFIP_KEY_PEM": "<secret>", "AFIP_CUIT": "<value>", "WHATSAPP_ACCESS_TOKEN": "<secret>", "WHATSAPP_PHONE_NUMBER_ID": "<value>" } } }}เครื่องมือ
ยังไม่มีรายการเครื่องมือ เซิร์ฟเวอร์แบบรีโมตจะได้รายการหลังการตรวจสอบสถานะครั้งแรก
FAQ
คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
ผู้เผยแพร่ระบุตัวแปรสภาพแวดล้อมเหล่านี้: MP_ACCESS_TOKEN, AFIP_CERT_PEM, AFIP_KEY_PEM, AFIP_CUIT, WHATSAPP_ACCESS_TOKEN, WHATSAPP_PHONE_NUMBER_ID
Ar Agents ทำงานแบบโลคัลผ่าน stdio
ตรวจสอบล่าสุดเมื่อ 2026-11-09 Argentine business automation: Mercado Pago, AFIP/ARCA, WhatsApp, banking, shipping (7 packages).