serverData.malga.description
Malga le da a tu agente 24 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.
create_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.get_charge — Get charge details by ID.list_charges — List charges with optional filters.// 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", { /* ... */ });$ npm install @codespar/mcp-malgaAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).
{
"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.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.
MALGA_CLIENT_IDTenant identifier sent as X-Client-Id header on every request.
MALGA_API_KEYSecret key sent as X-Api-Key header on every request.
MALGA_SANDBOXDefaults to sandbox (https://sandbox-api.malga.io). Set to "false" for production (https://api.malga.io).
Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.
create_chargeget_chargelist_chargescapture_chargerefund_chargecreate_customerget_customerlist_customersMCP es un protocolo — cualquier framework que lo hable puede montar este server.