Mcp Payway

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

Payway (ex-Decidir) — Argentina card acquiring: tokenize, charge, capture, refund

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

概览

AI 生成的概览

让助手在阿根廷 Payway(原 Decidir)上完成银行卡令牌化、支付、请款、退款和查询。

可以做什么
封装阿根廷 Payway(原 Decidir)收单接口。工具包括银行卡令牌化(create_token)、用令牌发起单笔或分账支付并支持分期(create_payment)、查询单笔与列表支付、全额或部分退款,以及在两步流程中请款已授权的支付。金额为最小货币单位的整数,payment_method_id 用于标识卡品牌。
适用场景
当助手需要为阿根廷商户执行 Payway 银行卡操作时使用:收款、请款授权、退款或查询支付状态。对其他支付网关或地区不适用。
运行要求
以 stdio 在本地运行,通常通过 npx @codespar/mcp-payway 启动,需要 Node.js。需要 PAYWAY_PUBLIC_API_KEY 和 PAYWAY_PRIVATE_API_KEY,可选 PAYWAY_ENV 设为 sandbox(默认)或 production。需要访问 Payway 或 Decidir 接口主机的网络。
安装前请注意
私钥可发起真实扣款、请款和退款,生产环境会实际动账。卡数据必须由用户或保险库提供,服务器不会自行生成。在准备就绪前保持 PAYWAY_ENV 为 sandbox,并把两个 API 密钥都当作机密保管。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@codespar/mcp-payway

MCP server for Payway (ex-Prisma Medios de Pago / Decidir) — Argentina's dominant card-acquiring gateway: card tokenization, one-step and two-step charges, installments (cuotas), marketplace split and refunds.

[npm] [License: MIT]

Quick Start

Claude Desktop

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

json
{  "mcpServers": {    "payway": {      "command": "npx",      "args": ["-y", "@codespar/mcp-payway"],      "env": {        "PAYWAY_PUBLIC_API_KEY": "your-public-apikey",        "PAYWAY_PRIVATE_API_KEY": "your-private-apikey",        "PAYWAY_ENV": "sandbox"      }    }  }}

Claude Code

bash
claude mcp add payway -- npx @codespar/mcp-payway

Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

json
{  "servers": {    "payway": {      "command": "npx",      "args": ["-y", "@codespar/mcp-payway"],      "env": {        "PAYWAY_PUBLIC_API_KEY": "your-public-apikey",        "PAYWAY_PRIVATE_API_KEY": "your-private-apikey",        "PAYWAY_ENV": "sandbox"      }    }  }}

Authentication

Payway authenticates with a single raw header named apikey (not Authorization: Bearer). Two co-equal keys exist with different powers — see the table below.

The two-key model

Payway issues two co-equal API keys with different powers:

KeyHeaderMay call
PublicapikeyPOST /tokens (card tokenization only)
PrivateapikeyEverything else: payments, captures, refunds, queries

The auth header is a single raw header named apikey — not Authorization: Bearer.

Tools (6)

ToolEndpointWhat it does
create_tokenPOST /tokensTokenize card data into a single-use payment token (public key)
create_paymentPOST /paymentsCharge a token — single sale or distributed/split, with installments
get_paymentGET /payments/{id}Fetch a payment by id
list_paymentsGET /paymentsList payments (offset, pageSize, siteOperationId, merchantId)
refund_paymentPOST /payments/{id}/refundsFull refund (empty body) or partial (amount in minor units)
confirm_paymentPUT /payments/{id}Capture a previously authorized payment (two-step flow)

Environment

VariableRequiredDescription
PAYWAY_PUBLIC_API_KEYyesPublic apikey (tokenization)
PAYWAY_PRIVATE_API_KEYyesPrivate apikey (payments, refunds, queries)
PAYWAY_ENVnosandbox (default, Decidir sandbox host) or production

Base URLs: production https://ventasonline.payway.com.ar/api/v2, sandbox https://developers.decidir.com/api/v2.

Notes

  • Amounts are integers in minor units: 50000 = ARS 500.00.
  • payment_method_id identifies the card brand (1 = Visa, 31 = Mastercard, 15 = Maestro, …).
  • site_transaction_id is the merchant-side idempotency anchor — unique per sale.
  • This server never invents card data; agents must collect PAN/expiry/CVV from the user or a vault.

Enterprise

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

License

MIT © CodeSpar

来源:packages/argentina/payway/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 分