Azeth Protocol

io.github.azeth-protocol由 GitHub 账号 azeth-protocol 发布v0.2.22更新于 Oct 25, 2026

Smart accounts, x402 payments, on-chain reputation, and service discovery for AI agents

概览

AI 生成的概览

Azeth Protocol 让 AI 助手创建链上智能账户、发起支付、发现并评价服务,并通过 XMTP 与其他代理通信。

可以做什么
创建和管理智能账户,查询余额与历史、充值、管理代币白名单,并从账户发送 ETH 或 ERC-20 转账。支付 x402 服务、设置订阅和周期性付款协议,并执行、取消或查询这些协议。在 ERC-8004 信任注册表中发布、更新并按能力与声誉发现服务。提交和读取按付款加权的声誉评价与净支付数据。收发端到端加密的 XMTP 消息、列出会话并检查代理可达性。查看和修改守护者护栏与协议白名单。
适用场景
适用于让助手充当自主经济代理:为服务付费、订阅周期性数据源、按能力寻找其他代理或与其通信。适合测试网试验,谨慎时也可用于 Base 或以太坊上的真实链上支付。
运行要求
以 npm 包在本地运行(建议全局安装,npx 可能死锁或超时)。需要 Node.js,以及访问 RPC 端点和 Azeth API 的网络。无需 API 密钥;未设置 AZETH_PRIVATE_KEY 时会在 ~/.azeth/key 自动生成私钥。可选:AZETH_CHAIN、各链 AZETH_RPC_URL_* 变量、AZETH_SERVER_URL、AZETH_GUARDIAN_KEY、AZETH_GUARDIAN_AUTO_SIGN、AZETH_EMERGENCY_ADDRESS、XMTP_ENCRYPTION_KEY。
安装前请注意
涉及私钥:AZETH_PRIVATE_KEY 或磁盘上自动生成的私钥,掌控智能账户及其资金。工具会转移真实资金(转账、支付、订阅、充值),并写入链上注册表和声誉记录。使用 AZETH_GUARDIAN_KEY 的守护者联签和自动签名可授权超出限额的支出。链下操作会把数据发送到 Azeth 服务器,消息通过 XMTP 传输。默认使用测试网,充值前请确认链。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Azeth Protocol,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@azeth/mcp-server

[mcp-azeth MCP server]

[npm] [License: MIT]

MCP (Model Context Protocol) server for Azeth -- the trust, discovery, and payment layer for the machine economy. Provides 32 tools for AI agents to create accounts, make payments, discover services, manage reputation, and communicate via XMTP.

Setup

No API keys required. A private key is auto-generated and persisted at ~/.azeth/key. Gas is sponsored automatically.

Install

bash
npm install -g @azeth/mcp-server

Claude Code

bash
claude mcp add azeth -- azeth-mcp

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "azeth": {      "command": "azeth-mcp"    }  }}

Then ask Claude: "Create me a smart account called PriceFeedBot" -- that's it.

With Your Own Key

For production or to use an existing key, add environment variables:

json
{  "mcpServers": {    "azeth": {      "command": "azeth-mcp",      "env": {        "AZETH_PRIVATE_KEY": "0x..."      }    }  }}

Environment Variables

All optional. The server works with zero configuration on testnet.

VariableRequiredDescription
AZETH_PRIVATE_KEYNoAccount owner's private key. Auto-generated and saved to ~/.azeth/key if not set.
PIMLICO_API_KEYNoPimlico bundler API key. Falls back to Azeth server bundler proxy if not set.
AZETH_CHAINNo"baseSepolia", "ethereumSepolia", "base", or "ethereum" (default: baseSepolia)
AZETH_RPC_URL_BASE_SEPOLIANoCustom RPC endpoint (per-chain: AZETH_RPC_URL_BASE, AZETH_RPC_URL_ETH_SEPOLIA, AZETH_RPC_URL_ETHEREUM)
AZETH_SERVER_URLNoAzeth API server URL (default: https://api.azeth.ai)
AZETH_GUARDIAN_KEYNoSeparate guardian key for co-signing high-value operations
XMTP_ENCRYPTION_KEYNoFor persistent XMTP messaging across restarts

Tools (32)

CategoryToolsDescription
Account (6)azeth_create_account, azeth_balance, azeth_history, azeth_deposit, azeth_accounts, azeth_whitelist_tokenDeploy smart accounts, check balances, manage token whitelists
Transfer (1)azeth_transferSend ETH or ERC-20 tokens from your smart account
Payment (4)azeth_pay, azeth_smart_pay, azeth_create_payment_agreement, azeth_subscribe_servicePay for x402 services, auto-discover by capability, set up subscriptions
Agreement (5)azeth_execute_agreement, azeth_cancel_agreement, azeth_get_agreement, azeth_list_agreements, azeth_get_due_agreementsManage recurring payment agreements -- execute, cancel, query, find due payments
Registry (5)azeth_publish_service, azeth_discover_services, azeth_get_registry_entry, azeth_update_service, azeth_update_service_batchRegister on ERC-8004 trust registry, discover services by capability and reputation
Reputation (4)azeth_submit_opinion, azeth_get_weighted_reputation, azeth_get_net_paid, azeth_get_active_opinionPayment-gated reputation -- rate services, check USD-weighted scores
Messaging (5)azeth_send_message, azeth_check_reachability, azeth_receive_messages, azeth_list_conversations, azeth_discover_agent_capabilitiesEnd-to-end encrypted XMTP messaging between agents
Guardian (2)azeth_get_guardrails, azeth_whitelist_protocolView and manage guardian security configuration

Example Prompts

Here are example prompts to help AI agents understand when to use each tool:

Account Management

  • "Create a new account for my PriceFeedBot service"
  • "What's the balance of my main account?"
  • "Show me all my registered accounts"
  • "Deposit 0.1 ETH into my smart account"

Payments & Transfers

  • "Pay 10 USDC to OctusBrain for the data feed service"
  • "Set up a monthly subscription to the translation service"
  • "Transfer 0.05 ETH to 0x1234...abcd"

Service Discovery

  • "Find agents that can do price-feed on Base Sepolia"
  • "What services are available for translation?"
  • "Show me the reputation score of the data provider"

Messaging

  • "Send a message to OctusBrain saying thanks for the swap"
  • "Check if I can reach the agent at 0x5678...efgh"
  • "List my recent XMTP conversations"

Guardian & Security

  • "What are my current guardrails?"
  • "Whitelist the Uniswap protocol for swaps"

Address Resolution

All tools that accept addresses support flexible resolution:

  • Ethereum address: 0x1234...abcd
  • Participant name: "OctusBrain" (resolved via trust registry)
  • Self-reference: "me" (your first smart account)
  • Index reference: "#1", "#2" (by account index)

Response Format

All tools return structured JSON:

json
{  "success": true,  "data": { ... }}

Errors include machine-readable codes and recovery suggestions:

json
{  "success": false,  "error": {    "code": "INSUFFICIENT_BALANCE",    "message": "Insufficient USDC balance: have 5.00, need 10.00.",    "suggestion": "Fund your smart account before retrying."  }}

Full Documentation

See the Azeth documentation for complete tool reference with parameter tables, return values, and example prompts for all 32 tools.

Troubleshooting

"Failed to connect to MCP server"

If you used npx instead of a global install, npx has two problems as an MCP server launcher:

  1. Installation prompt blocks stdin — npx prompts "Ok to proceed? (y)" which reads from the same stdin the MCP protocol uses, deadlocking the connection.
  2. Cold-start download timeout — First run must download ~142 packages before the server can start. Claude's MCP client times out waiting.

Fix by installing globally:

bash
npm install -g @azeth/mcp-serverclaude mcp add azeth -- azeth-mcp

Development

bash
# Buildpnpm build
# Watch modepnpm dev
# Run testspnpm test
# Type checkpnpm typecheck

License

MIT

来源:README.md,提交 8bf89ba

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.22最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分