A-Pay Protocol

Universal HTTP 402 Micropayment Protocol & Autonomous Economic Settlement Engine for AI Agents

我该使用它吗

质量与安全性

A
描述质量
92%
模式完整度
81%
命名质量
80%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~467token 数(工具定义)
~654 B典型响应大小
对注意力的影响极小(占 128k 上下文窗口的 0.36%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "apay": {
      "command": "uvx",
      "args": [
        "apay"
      ]
    }
  }
}

可运行的软件包

pypiapay0.1.8stdio

远程端点

https://apay-network.vercel.app/api/mcpstreamable-http

它能做什么

工具清单

工具(5)

🟢 只读🟡 写入🔴 删除⚪ 未知
⚪apay_request(url, method, json_body, headers)

Probe and automatically pay HTTP 402 crypto micropayments on Base Layer 2 with USDC or $APAY within pre-configured budget limits.

输入模式

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "The target endpoint URL"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "POST",
        "PUT",
        "DELETE"
      ],
      "default": "GET"
    },
    "json_body": {
      "type": "object",
      "description": "Optional JSON request body"
    },
    "headers": {
      "type": "object",
      "description": "Optional additional HTTP headers"
    }
  },
  "required": [
    "url"
  ]
}
🟢apay_get_wallet_status

Inspect the agent's active non-custodial wallet address, network, current spending guardrails, and total spent in USDC and $APAY.

输入模式

{
  "type": "object",
  "properties": {}
}
🟡apay_set_budget(max_per_call_usdc, daily_budget_usdc, max_per_call_apay, daily_budget_apay)

Configure agent safety invariants and spending guardrails. Prevents runaway loops or overcharging.

输入模式

{
  "type": "object",
  "properties": {
    "max_per_call_usdc": {
      "type": "number",
      "description": "Maximum USDC allowance for a single API call"
    },
    "daily_budget_usdc": {
      "type": "number",
      "description": "Maximum USDC rolling 24-hour spending budget"
    },
    "max_per_call_apay": {
      "type": "number",
      "description": "Maximum $APAY token allowance for a single API call"
    },
    "daily_budget_apay": {
      "type": "number",
      "description": "Maximum $APAY token rolling 24-hour spending budget"
    }
  }
}
🟢apay_inspect_endpoint(url)

Inspect an endpoint to check if it requires an A-Pay micropayment, inspect the exact price quote, currency, and payout receiver without spending any funds.

输入模式

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "The URL to probe for HTTP 402 payment requirements"
    }
  },
  "required": [
    "url"
  ]
}
🟢apay_get_balance(address)

Inspect the agent's live on-chain balances on Base Layer 2, including native ETH (for gas), USDC, and $APAY tokens.

输入模式

{
  "type": "object",
  "properties": {
    "address": {
      "type": "string",
      "description": "Optional target EVM address to inspect balances for"
    }
  }
}

社区

评价此服务器

证据

最近观测

已验证未记录版本5 个工具