Chile-native PSP. Hosted payment orders covering Webpay, ETpay, cards, bank transfer and cash, authenticated with signed HMAC.
Flow gives your agent 8 tools it calls directly โ pick the ones it needs, in Claude, Cursor, or any MCP client.
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-clAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"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>"
}
}
}
}After restart, your agent can call any of the 8 tools below โ try create_payment first.
Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.
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'.
Each tool is independent โ your agent loads only what it needs to reduce context and response time.
create_paymentcreate_payment_by_emailget_payment_statusget_payment_status_by_commerce_idget_payment_status_by_flow_orderlist_paymentscreate_refundget_refund_statusMCP is a protocol โ any framework that speaks it can mount this server.