我用 Rust 创建了一个用于 Pix 支付的 CLI,并且它有一个 MCP 服务器供 AI 代理进行支付

📄 中文摘要

Pix 是巴西最成功的支付系统,每年处理数万亿的交易,拥有超过 1.5 亿用户,全天候提供即时结算。然而,对于开发者而言,集成 Pix 的体验却相当复杂。尽管 PSP(支付服务提供商)的 API 遵循中央银行的规范,但每个提供商的实现各不相同,文档也相对零散。现有的 SDK 通常较重,且多为特定语言,功能超出需求。mTLS 证书配置过程繁琐且容易出错。此外,市场上缺乏用于测试收费和验证支付的命令行工具。为了解决这些问题,作者开发了一个基于 Rust 的 CLI 工具,简化了与 Pix 的集成过程,并提供了一个 MCP 服务器,支持 AI 代理进行支付操作。

📄 English Summary

Criei uma CLI em Rust para pagamentos Pix — e ela tem um MCP server para AI agents fazerem pagamentos

Pix is the most successful payment system in Brazil, processing trillions annually and used by over 150 million people, operating 24/7 with instant settlement. However, integrating with Pix presents significant challenges for developers. While the APIs of Payment Service Providers (PSPs) follow the Central Bank's specifications, each provider implements them differently, leading to fragmented documentation. Available SDKs are often bulky, language-specific, and exceed necessary functionality. Configuring mTLS certificates is a manual and error-prone process. Additionally, there is a lack of command-line tools for testing charges and verifying payments. To address these issues, the author has developed a CLI tool in Rust that simplifies the integration process with Pix and includes an MCP server for AI agents to perform payment operations.

Powered by Cloudflare Workers + Payload CMS + Claude 3.5

数据源: OpenAI, Google AI, DeepMind, AWS ML Blog, HuggingFace 等