Skip to main content
RE

Rede

v0.2.0-alpha.2API Keyalpha

Adquirente de tarjetas brasileña de Itaú. Completa el cuadrante de las cuatro grandes adquirentes de BR junto con Cielo, Stone y Getnet. Autorizar, capturar, reembolsar, zero-auth, tokenización, recurrencias nativas. Alpha en npm — developer.userede.com.br está renderizado como SPA, endpoints no verificados en vivo.

22 herramientas3 env vars🇧🇷 Brasilalpha — validación pendiente

Qué puede hacer tu agente

Rede le da a tu agente 22 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.

  • authorize_transactionAuthorize a credit card transaction on Rede. Set capture=true to authorize + capture atomically; capture=false to authorize only (use capture_transaction later).
  • capture_transactionCapture a previously authorized transaction (when capture=false was used). Pass amount for partial capture; omit for full.
  • cancel_transactionCancel an authorized-but-uncaptured transaction (void). Rede uses the refunds endpoint for both voids and refunds — cancel means full amount on an uncaptured transaction.
Ejemplo de llamada
// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("authorize_transaction", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-rede@alpha

Quickstart

Agregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "rede": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-rede@alpha"
      ],
      "env": {
        "REDE_PV": "<your_rede_pv>",
        "REDE_TOKEN": "<your_rede_token>"
      }
    }
  }
}

Después de reiniciar, tu agente puede llamar cualquiera de las 22 herramientas de abajo — probá authorize_transaction primero.

Variables de entorno · 3

Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.

REDE_PV
obligatorio

Rede merchant filiação (PV) — numeric merchant identifier issued with your commercial contract.

REDE_TOKEN
obligatoriosecret

Rede API security token paired with PV. Used in HTTP Basic auth as the password.

REDE_ENV
opcional

Environment selector: 'sandbox' (default) or 'production'.

Herramientas disponibles · 22

Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.

WRITEauthorize_transaction
Authorize a credit card transaction on Rede. Set capture=true to authorize + capture atomically; capture=false to authorize only (use capture_transaction later).
WRITEcapture_transaction
Capture a previously authorized transaction (when capture=false was used). Pass amount for partial capture; omit for full.
DELETEcancel_transaction
Cancel an authorized-but-uncaptured transaction (void). Rede uses the refunds endpoint for both voids and refunds — cancel means full amount on an uncaptured transaction.
DELETErefund_transaction
Refund a captured transaction. Pass amount for a partial refund; omit for full. Same endpoint as cancel; amount controls the behaviour.
READget_transaction
Retrieve a transaction by Rede tid OR by merchant reference. Pass exactly one of tid or reference.
READzero_auth
Validate a card without charging (zero-auth / account verification). Returns whether the card is authorizable, without creating a transaction.
WRITEtokenize_card
Tokenize a card for PCI-safe reuse. Returns a token (storageCard) to pass into authorize_transaction.storageCard.
DELETEdelete_token
Delete a previously created card token.

Frameworks compatibles

MCP es un protocolo — cualquier framework que lo hable puede montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Cualquier cliente MCPProtocolo

Preguntas frecuentes

Corré `npx -y @codespar/mcp-rede` y agregá el bloque de config de arriba a tu cliente MCP — Claude, Cursor, VS Code o cualquier cliente compatible con MCP. Sin build, sin SDK. ¿Preferís hosted? El tier gestionado de CodeSpar lo corre por vos, con la auth resuelta.
Rede — MCP server · 22 tools | CodeSpar