PSP nativo do Chile. Ordens de pagamento hospedadas cobrindo Webpay, ETpay, cartões, transferência bancária e dinheiro, autenticadas com HMAC assinado.
O Flow dá ao seu agente 8 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer 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-clAdicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com 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>"
}
}
}
}Depois de reiniciar, seu agente pode chamar qualquer uma das 8 ferramentas abaixo — teste create_payment primeiro.
Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da 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 ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.
create_paymentcreate_payment_by_emailget_payment_statusget_payment_status_by_commerce_idget_payment_status_by_flow_orderlist_paymentscreate_refundget_refund_statusMCP é um protocolo — qualquer framework que o fale pode montar este server.