A-Pay Protocol
Universal HTTP 402 Micropayment Protocol & Autonomous Economic Settlement Engine for AI Agents
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"apay": {
"command": "uvx",
"args": [
"apay"
]
}
}
}可執行的套件
0.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"
}
}
}社群
證據