Mcp Flow Cl

io.github.codespar由 GitHub 账号 codespar 发布v0.1.0更新于 Oct 24, 2026

MCP server for Flow.cl — Chilean PSP: hosted payment orders, Webpay, refunds, HMAC-signed API

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

面向智利支付服务商 Flow.cl 的本地 MCP 服务器,让助手创建托管支付订单、查询支付状态并办理退款。

可以做什么
创建托管支付订单并取得客户付款用的支付链接,或让 Flow 向客户发送收款链接邮件。按 Flow token、商户订单号或 Flow 订单号查询支付状态。按日期分页列出已收到的付款。创建全额或部分退款订单,并查询退款状态。
适用场景
适合让助手协助智利商户通过 Flow 收款,例如为订单生成支付链接、核对哪些订单已付款,或发起退款,而无需手写带签名的 API 调用。
运行要求
通过 npx 从 npm 包 @codespar/mcp-flow-cl 在本地运行,需要 Node.js。需要 Flow 商户账户及 API 密钥和签名密钥,分别通过 FLOW_API_KEY 和 FLOW_SECRET_KEY 设置。FLOW_ENV 选择 sandbox(默认)或 production,沙箱环境会签发自己的密钥对。需要访问 Flow API 的网络。
安装前请注意
该服务器持有可创建付款和退款的商户凭据;FLOW_SECRET_KEY 用于签署每个请求,应妥善保密。将 FLOW_ENV 设为 production 会涉及真实资金并真实退款,建议先在沙箱测试。创建付款和退款会改动 Flow 账户中的数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Flow Cl,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@codespar/mcp-flow-cl

MCP server for Flow (flow.cl) — the Chile-native PSP: one hosted payment order covers Webpay (credit/debit), ETpay bank transfer, cash networks and international cards. Refunds included. Every API call is HMAC-SHA256 signed.

[npm] [License: MIT]

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

json
{  "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",        "FLOW_ENV": "sandbox"      }    }  }}

Claude Code

bash
claude mcp add flow-cl --env FLOW_API_KEY=... --env FLOW_SECRET_KEY=... -- npx -y @codespar/mcp-flow-cl

Cursor / VS Code

Add the same block to .cursor/mcp.json or .vscode/mcp.json.

Tools (8)

ToolEndpointWhat it does
create_paymentPOST /payment/createHosted payment order; returns url + token the customer pays at
create_payment_by_emailPOST /payment/createEmailFlow emails the customer a collection link
get_payment_statusGET /payment/getStatusStatus by Flow token (1 pending, 2 paid, 3 rejected, 4 canceled)
get_payment_status_by_commerce_idGET /payment/getStatusByCommerceIdStatus by your commerceOrder
get_payment_status_by_flow_orderGET /payment/getStatusByFlowOrderStatus by Flow order number
list_paymentsGET /payment/getPaymentsPayments received on a date (paged)
create_refundPOST /refund/createFull or partial refund order
get_refund_statusGET /refund/getStatusRefund status by refund token

Authentication

Flow signs every request: parameters are sorted alphabetically, concatenated as name+value, and signed with HMAC-SHA256 using your secretKey. This server does the signing for you — set the two env vars and call tools with plain arguments.

VariableRequiredDescription
FLOW_API_KEYyesFlow merchant API key
FLOW_SECRET_KEYyesHMAC signing secret (never sent on the wire)
FLOW_ENVnosandbox (default) or production

Sandbox: register at sandbox.flow.cl — the sandbox issues its own key pair.

Example

"Create a Flow payment order for CLP 25,000, subject 'Plan Pro mensual', email [email protected], and give me the payment link."

The agent calls create_payment and returns url?token=... — the customer picks Webpay, ETpay or cash at Flow's hosted page.

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

Managed tier

This open-source server calls Flow's API directly with your credentials. CodeSpar's managed tier routes one interface across every LATAM provider with automatic failover, governance, audit and a credential vault: codespar.dev/agents.

License

MIT

来源:packages/payments/flow-cl/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分