mcpField
A
Algovoi Mcp Server

Algovoi Mcp Server

本地服务
github.com/chopmob-cloud金融数据22 天前更新

关于 Algovoi Mcp Server

AlgoVoi MCP Server 将 AlgoVoi 支付基础设施开放给兼容 MCP 的客户端。TypeScript 和 Python 包涵盖支付验证与挑战、Agent 间调用,以及所支持链上的周期性支付授权。

主要功能

  1. 01创建和验证支付链接
  2. 02MPP、x402 和 AP2 支付工具
  3. 03A2A Agent 发现与消息发送
  4. 04管理周期性支付授权
  5. 05提供 TypeScript 和 Python 包

适用场景

  1. 01创建并验证结账支付
  2. 02处理设有支付门槛的 A2A Agent 调用
  3. 03管理周期性支付授权

MCP 相关

它将 AlgoVoi 支付操作作为工具开放给 MCP 客户端,包括支付链接、支付凭据验证、A2A 消息和周期性授权。TypeScript 与 Python 包提供相同的工具集合。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

mcp.json · 通用配置
{
"mcpServers": {
"chopmob-cloud": {
"command": "npx",
"args": [
"-y",
"@algovoi/mcp-server"
],
"env": {
"ALGOVOI_API_KEY": "<ALGOVOI_API_KEY>",
"ALGOVOI_API_BASE": "<ALGOVOI_API_BASE>",
"ALGOVOI_TENANT_ID": "<ALGOVOI_TENANT_ID>",
"ALGOVOI_PAYOUT_ADDRESS": "<ALGOVOI_PAYOUT_ADDRESS>",
"ALGOVOI_WEBHOOK_SECRET": "<ALGOVOI_WEBHOOK_SECRET>"
}
}
}
}
启动命令npx -y @algovoi/mcp-server
需要配置的环境变量
ALGOVOI_API_KEY密钥Your AlgoVoi API key (algv_...) from https://dash.algovoi.co.uk.
ALGOVOI_API_BASEAlgoVoi API base URL. Default cloud.algovoi.co.uk (managed payouts) or api1.ilovechicken.co.uk.
ALGOVOI_TENANT_IDTenant UUID. Required only for direct API access. Leave unset when using AlgoVoi Cloud.
ALGOVOI_PAYOUT_ADDRESSDefault payout wallet address. Required only for direct API access; managed in Cloud otherwise.
ALGOVOI_WEBHOOK_SECRET密钥Optional HMAC-SHA256 secret for webhook verification. Enables the verify_webhook tool.

本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。

安装包
npm@algovoi/mcp-server1.1.3
pypialgovoi-mcp1.1.3

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

详细介绍

AlgoVoi MCP Server

一个 MCP(Model Context Protocol) 服务,将 AlgoVoi 的支付基础设施作为工具提供,供任何 MCP 客户端调用,包括 Claude Desktop、Claude Code、Cursor、Windsurf 或任何其他兼容 MCP 的助手。

提供 两个软件包:

软件包安装方式命令
TypeScriptnpm i -g @algovoi/mcp-servernpx -y @algovoi/mcp-server
Pythonpip install algovoi-mcpuvx algovoi-mcp 或 algovoi-mcp

两个软件包现在都提供全部 21 个工具(13 个 Tier 1 工具 + 8 个 Tier 2 持续授权周期性工具,二者均随 v1.3.0 发布)。根据 MCP 客户端 / 部署技术栈的偏好选择运行时即可——工具接口相同、JSON Schema 定义相同,并采用 Pydantic 严格验证 / 禁止额外字段。


工具

支付工具
#工具功能
1create_payment_link为指定金额 + 链生成托管式结账 URL
2verify_payment验证结账令牌(可选使用 tx_id)
3prepare_extension_payment页面内钱包流程参数(Algorand / VOI)
4verify_webhook验证 AlgoVoi Webhook 的 HMAC-SHA256 签名
5list_networks支持的链 + 资产 ID(离线,无需 API 调用)
协议质询工具
#工具功能
6generate_mpp_challengeIETF MPP 402 WWW-Authenticate 标头 + challenge_id
7verify_mpp_receipt验证 MPP 链上收据(直接查询索引器,无需 API 调用)
8verify_x402_proof验证 x402 base64 支付证明(直接查询索引器)
9generate_x402_challengex402 X-Payment-Required 402 标头 + 负载
10generate_ap2_mandate为 AI Agent 支付流程生成 AP2 v0.1 PaymentMandate
11verify_ap2_payment验证 AP2 授权的支付收据(直接查询索引器)
A2A Agent 工具 (v1.2.0 新增)
#工具功能
12fetch_agent_cardGET {agent_url}/.well-known/agent.json — 在调用 A2A Agent 前发现其能力和支付要求
13send_a2a_messagePOST {agent_url}/message:send — 调用需要付费的 A2A v1.0 Agent;成功时返回任务结果(200),或在状态码为 402 时返回 challenge_headers,以便 Claude 完成支付后重试
A2A 先支付后调用流程
1. fetch_agent_card("https://agent.example.com")
   → see agent costs $0.01, accepts MPP on Algorand

2. send_a2a_message(agent_url, "What is the price of ALGO?")
   → payment_required: true, challenge_headers: {WWW-Authenticate: ...}

3. generate_mpp_challenge(...)   ← use tool #6
   → user pays on-chain

4. send_a2a_message(agent_url, text, payment_proof="<proof>")
   → task result returned

支持的网络:Algorand、VOI、Hedera、Stellar(四者均支持 USDC + 原生 ALGO/VOI/HBAR/XLM)。

Tier 2 — 持续授权周期性工具 (v1.3.0 新增 — TypeScript 和 Python 均支持)

Tier 2 采用 “客户只签名一次,AlgoVoi 每个周期自动扣款” 模式——适用于订阅 / Agent 绑定支出。每条链都使用其原生授权机制(商户侧无需自定义托管合约):

#工具功能
14create_recurring_authority开启新的持续授权。返回特定于链的 customer_signing_payload,供客户的钱包签名
15get_authority读取当前状态(status、cycles_pulled、cap_remaining 等)
16list_authorities列出此租户的所有授权;可按 status / subscription_id 筛选
17confirm_authority在链上交易落地后标记为活跃(大多数流程会跳过此步骤,由 Webhook 完成)
18revoke_authority在链上撤销授权(客户的钱包对撤销交易签名)
19pause_authority在链下暂停(无需链上操作)
20resume_authority在链下恢复
21manual_pull由租户发起的补扣 / 按比例扣款
各链的授权机制
链机制
Algorand / VOISpendingCapVault(6 步操作的原子组)
Base / TempoERC-20 approve(单笔交易)
SolanaSPL Token Approve + facilitator 代理权限
HederaHTS AccountAllowanceApproveTransaction
StellarSoroban auth_entry(智能合约授权)
订阅流程
1. create_recurring_authority(subscription_id, chain, customer_wallet,
                              cap_amount_minor, cap_period_seconds,
                              per_cycle_amount_minor)
   → customer_signing_payload returned

2. Hand template to wallet (Pera / Defly / MetaMask / Phantom /
   HashPack / Freighter / etc.)
   → customer signs the chain-native authorisation tx

3. confirm_authority(authority_id, on_chain_address)
   → status: 'pending' → 'active'

4. AlgoVoi cycle reaper auto-pulls per cap_period_seconds.
   Each pull emits subscription.charged or subscription.payment_failed
   webhooks (verify with verify_webhook).

5. Lifecycle: revoke_authority / pause_authority / resume_authority /
   manual_pull as needed.

各链的钱包端集成:每条链的客户端流程请参阅 ../Recurr/<chain>/README.md。

支持的网络:全部 14 个(7 个主网 + 7 个测试网)——Algorand、VOI、 Base、Tempo、Solana、Hedera、Stellar。


两种连接方式

选项 A — AlgoVoi Cloud(推荐)

AlgoVoi Cloud 是所有集成的控制平面——WooCommerce、Zapier、n8n 和 MCP 都集中在同一个仪表板中。将 ALGOVOI_API_BASE 指向 https://cloud.algovoi.co.uk,你的单个 algv_... API 密钥即可用于所有集成——无需租户 ID 或收款地址(它们都存储在仪表板中)。

{
  "mcpServers": {
    "algovoi": {
      "command": "npx",
      "args": ["-y", "@algovoi/mcp-server"],
      "env": {
        "ALGOVOI_API_KEY": "algv_...",
        "ALGOVOI_API_BASE": "https://cloud.algovoi.co.uk"
      }
    }
  }
}

Claude 创建的每笔付款都会显示在你的 Cloud 仪表板中,并与其他所有平台的付款一同列出。所有信息尽在一处。

在 dash.algovoi.co.uk 免费注册。


选项 B — AlgoVoi 直连

使用你的 algv_... 密钥和租户 ID,直接连接 AlgoVoi API。

两个软件包读取相同的环境变量:

变量必需用途
ALGOVOI_API_KEY✅AlgoVoi 仪表板中的 algv_... API 密钥
ALGOVOI_TENANT_ID✅AlgoVoi 仪表板中的租户 UUID
ALGOVOI_PAYOUT_ALGORAND✅*Algorand 收款钱包地址
ALGOVOI_PAYOUT_VOI✅*VOI 收款钱包地址
ALGOVOI_PAYOUT_HEDERA✅*Hedera 收款账户(例如 0.0.123456)
ALGOVOI_PAYOUT_STELLAR✅*Stellar 收款地址(G...)
ALGOVOI_PAYOUT_ADDRESS—未设置各链变量时使用的通用备用地址
ALGOVOI_WEBHOOK_SECRET—用于 verify_webhook
ALGOVOI_API_BASE—覆盖 AlgoVoi API 基础 URL(默认值:https://cloud.algovoi.co.uk)

* 至少需要一个各链地址(或用作备用地址的 ALGOVOI_PAYOUT_ADDRESS)。

仅通过环境变量进行身份验证。 密钥不会通过工具参数传递——MCP 客户端永远不会看到 API 密钥。

在 www.algovoi.co.uk 注册以获取 API 密钥和租户 ID。

{
  "mcpServers": {
    "algovoi": {
      "command": "npx",
      "args": ["-y", "@algovoi/mcp-server"],
      "env": {
        "ALGOVOI_API_KEY": "algv_...",
        "ALGOVOI_TENANT_ID": "...",
        "ALGOVOI_PAYOUT_ALGORAND": "<your-algorand-address>",
        "ALGOVOI_PAYOUT_VOI":      "<your-voi-address>",
        "ALGOVOI_PAYOUT_HEDERA":   "0.0.<your-account>",
        "ALGOVOI_PAYOUT_STELLAR":  "G<your-stellar-address>"
      }
    }
  }
}

对于 Python 软件包,将 "command": "uvx", "args": ["algovoi-mcp"] 替换为相应配置。

配置文件位置:

  • Claude Desktop:~/Library/Application Support/Claude/claude_desktop_config.json(macOS)、%APPDATA%\Claude\claude_desktop_config.json(Windows)
  • Claude Code:~/.claude.json
  • Cursor:~/.cursor/mcp.json

测试

# TypeScript unit tests (77/77)
cd typescript && npm test

# Python unit tests (85/85)
cd python && pytest

# Stdio integration smoke — boots both servers and confirms all 13 tools list
python smoke_stdio.py

基于 Business Source License 1.1 授权。

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。