Skip to main content
F

Flow

@codespar/mcp-flow-cl Β· v0.1.0

πŸ‡¨πŸ‡± ChilePaymentsAuth Β· HMACbeta8 tools3 env vars

Chile-native PSP. Hosted payment orders covering Webpay, ETpay, cards, bank transfer and cash, authenticated with signed HMAC.

Get started Β· freeView docs

MIT Β· runs locally with your own credentials

Limitations

  • The npm package ships no server.json manifest.
Package
@codespar/mcp-flow-cl
Version
0.1.0
npm dist-tag
latest
Category
Payments
Auth
HMAC
Country
πŸ‡¨πŸ‡± Chile
License
MIT
Transport
stdio Β· streamable-http

Quickstart

Install, set the credentials, make the first call.

Pick your client. The server runs locally over stdio, with your own credentials.

Add the server to your clientOne config entry. No build step, no SDK required.
Set the environment variables3 variables read by this server's code, listed below.
Restart and make the first callThe agent can call any of the 8 tools. Try create_payment first.
terminal
# Claude Code claude mcp add flow-cl -e FLOW_API_KEY=… -e FLOW_ENV=… -e FLOW_SECRET_KEY=… -- npx -y @codespar/mcp-flow-cl@0.1.0 # then: /mcp to confirm the server is connected
Environment variables3 variables
FLOW_API_KEYFlow merchant API keyrequiredsecret
FLOW_ENVEnvironment: 'sandbox' or 'production'. Defaults to 'sandbox'.optional
FLOW_SECRET_KEYFlow secret key used to HMAC-SHA256 sign every requestrequiredsecret

Names read from the package code (@codespar/mcp-flow-cl@0.1.0). Descriptions and flags come from its manifest. Self-hosted, you hold the credentials.

First call democreate_payment

"Create a hosted payment order"

tools/callcreate_paymentresult returned

Tools

What your agent can call.

8 tools, as the package's tools/list returns them.

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.

get_payment_status_by_commerce_id

Get a payment order's status by your commerceOrder id (GET /payment/getStatusByCommerceId).

get_payment_status_by_flow_order

Get a payment order's status by Flow order number (GET /payment/getStatusByFlowOrder).

list_payments

List payments received on a given date (GET /payment/getPayments). Paged; date is the merchant's local day.

create_refund

Create a refund order (POST /refund/create). Refund a received payment fully or partially; Flow notifies urlCallBack when the refund resolves.

get_refund_status

Get a refund order's status by refund token (GET /refund/getStatus). status: created, accepted, rejected, refunded, canceled.

Names and descriptions come from the package's tools/list (@codespar/mcp-flow-cl@0.1.0). A kind (read, write, delete) is shown only when the package annotates its tools or each tool was verified one by one; neither exists for this server yet.

Compatibility

MCP is a protocol. Any client that speaks it can mount this server.

The CodeSpar runtime does not route this server. Mount it in your client over stdio Β· streamable-http.

Protocol

Any MCP client

stdio Β· streamable-http

Questions

Before you install.

How do I install the Flow MCP server?

Run npx -y @codespar/mcp-flow-cl@0.1.0 and add the config block above to your MCP client: Claude Code, Cursor, Claude Desktop, VS Code, or any MCP-compatible client. No build step, no SDK required.

What can my agent do with Flow?

Flow exposes 8 tools for payments. Your agent calls them directly; the full list is above.

How does Flow authenticate, and how are credentials stored?

Flow uses HMAC. Self-hosted, you hold the credentials: the server reads them from its environment variables.

How does Flow handle upstream API changes?

Every server is versioned independently on npm. The command on this page pins 0.1.0, the version whose tools are listed here; your agent keeps running it until you change the version.

Is Flow open source? How do I report a bug?

Yes. Flow is MIT-licensed and published on npm as @codespar/mcp-flow-cl, source on GitHub (link in the Details panel). Report issues on the package repository; security issues go to security@codespar.dev, and we respond within 24 hours.

Start in seconds.

Add the config above, set the variables, and your agent calls the tools.

Start in seconds demo
Add the server to your client with the config above.
Set the environment variables listed above.
Ask your agent for the first call.
Flow β€” MCP server Β· 8 tools | CodeSpar