Skip to main content
Glama

Paybyrd AI 代理工具包

用于将 Paybyrd 的支付处理功能与 OpenAI 和 Anthropic Claude 等 AI 模型相集成的工具包。

概述

该工具包使AI助手能够通过Paybyrd API执行支付操作:

  • 为客户创建付款链接

  • 处理退款

  • 检索订单信息

该工具包采用模块化架构,支持不同的AI平台。

存储库结构

这个 monorepo 被组织成以下包:

  • 核心@paybyrd/ai-agent-toolkit ):核心功能和共享工具

  • claude@paybyrd/ai-agent-claude ):使用模型上下文协议的人类学克劳德积分

  • openai@paybyrd/ai-agent-openai ):OpenAI 与函数调用集成

快速入门

先决条件

  • Node.js 18 或更高版本

  • Paybyrd API 密钥

  • OpenAI API 密钥(用于 OpenAI 集成)或 Anthropic API 密钥(用于 Claude 集成)

安装

根据您使用的 AI 平台,每个包都可以单独安装:

# For the core functionality npm install @paybyrd/ai-agent-toolkit # For Claude integration npm install @paybyrd/ai-agent-claude # For OpenAI integration npm install @paybyrd/ai-agent-openai

示例

请参阅/examples目录以获取完整的实现示例:

  • /examples/openai :使用 OpenAI 的示例实现

  • /examples/modelcontextprotocol :使用模型上下文协议的 Claude 示例实现

可用工具

该工具包提供以下支付操作:

  • 创建付款链接:生成付款链接发送给客户

  • 创建退款:处理交易退款

  • 检索订单:获取现有订单的详细信息

发展

# Install dependencies npm install # Build all packages npm run build # Run tests npm test

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/paybyrd/ai-agent-toolkit-js'

If you have feedback or need assistance with the MCP directory API, please join our Discord server