Skip to main content
MA

Malga

v0.1.0API Key

serverData.malga.description

24 herramientas3 env vars🇧🇷 Brasilestable en npm

Qué puede hacer tu agente

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

  • create_chargeCreate a new charge in Malga. Supports credit card (one-shot or saved), token, Pix, and boleto. The `capture` field defaults to `false` in the API — pass `true` for automatic capture. SANDBOX antifraud — the last digit of the document in fraudAnalysis determines the status: 0 = Pending | 1 = Approved | 2 = Failed | other = Rejected. Use get_sandbox_guide for all simulation rules.
  • get_chargeGet charge details by ID.
  • list_chargesList charges with optional filters.
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("create_charge", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-malga

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": {
    "malga": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-malga"
      ],
      "env": {
        "MALGA_CLIENT_ID": "<your_malga_client_id>",
        "MALGA_API_KEY": "<your_malga_api_key>"
      }
    }
  }
}

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

Variables de entorno · 3

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

MALGA_CLIENT_ID
obligatorio

Tenant identifier sent as X-Client-Id header on every request.

MALGA_API_KEY
obligatoriosecret

Secret key sent as X-Api-Key header on every request.

MALGA_SANDBOX
opcional

Defaults to sandbox (https://sandbox-api.malga.io). Set to "false" for production (https://api.malga.io).

Herramientas disponibles · 24

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

WRITEcreate_charge
Create a new charge in Malga. Supports credit card (one-shot or saved), token, Pix, and boleto. The `capture` field defaults to `false` in the API — pass `true` for automatic capture. SANDBOX antifraud — the last digit of the document in fraudAnalysis determines the status: 0 = Pending | 1 = Approved | 2 = Failed | other = Rejected. Use get_sandbox_guide for all simulation rules.
WRITEget_charge
Get charge details by ID.
WRITElist_charges
List charges with optional filters.
WRITEcapture_charge
Capture a pre-authorized charge (created with capture: false). If amount is omitted, uses the full charge amount.
DELETErefund_charge
Void/refund an authorized or captured charge. If amount is omitted, uses the full charge amount.
WRITEcreate_customer
Create a new customer in Malga. Email and document are unique per account.
READget_customer
Get customer details by ID.
READlist_customers
List customers with optional pagination.

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-malga` 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.
Malga — MCP server · 24 tools | CodeSpar