PSP nativo de Chile. Órdenes de pago alojadas que cubren Webpay, ETpay, tarjetas, transferencia bancaria y efectivo, autenticadas con HMAC firmado.
Flow le da a tu agente 8 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.
create_payment — Create a hosted payment order (POST /payment/create). Returns url + token + flowOrder; the customer pays at url + '?token=' + token. paymentMethod 9 offers every method Flow has enabled for the merchant (Webpay, ETpay bank transfer, cash, international cards).create_payment_by_email — Create a collection order Flow emails to the customer (POST /payment/createEmail). Same shape as create_payment but Flow delivers the payment link by email — no checkout redirect needed.get_payment_status — Get a payment order's status by Flow token (GET /payment/getStatus). status: 1 pending, 2 paid, 3 rejected, 4 canceled.// 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_payment", { /* ... */ });$ npm install @codespar/mcp-flow-clAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).
{
"mcpServers": {
"flow-cl": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-flow-cl"
],
"env": {
"FLOW_API_KEY": "<your_flow_api_key>",
"FLOW_SECRET_KEY": "<your_flow_secret_key>"
}
}
}
}Después de reiniciar, tu agente puede llamar cualquiera de las 8 herramientas de abajo — probá create_payment primero.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.
FLOW_API_KEYFlow merchant API key
FLOW_SECRET_KEYFlow secret key used to HMAC-SHA256 sign every request
FLOW_ENVEnvironment: 'sandbox' or 'production'. Defaults to 'sandbox'.
Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.
create_paymentcreate_payment_by_emailget_payment_statusget_payment_status_by_commerce_idget_payment_status_by_flow_orderlist_paymentscreate_refundget_refund_statusMCP es un protocolo — cualquier framework que lo hable puede montar este server.