关于 Mood Booster Agent
Mood Booster Agent 是已注册 ERC-8004 的 Agent,可提供鼓励信息并演示链上交互流程。其 MCP 工具支持发现服务、USDC 打赏和信誉反馈,并验证相关交易。
主要功能
- 01提供四类鼓励信息
- 02提供打赏和反馈报告工具
- 03支持 ERC-8004 身份与信誉交互
- 04验证链上打赏和反馈
- 05提供服务统计及打赏指南
适用场景
- 01获取鼓励或编程笑话
- 02发现 Agent 并调用其 MCP 工具
- 03发送 USDC 打赏并报告交易
- 04提交链上信誉反馈
MCP 相关
服务器通过 SSE 在 MCP 上提供 6 个工具,包括获取信息、查询打赏详情、确认打赏和报告反馈。任何 MCP 客户端均可连接其 SSE 端点。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
服务地址
https://aws.tail177fbd.ts.net/sse一键复制安装命令
Claude CodeTerminal
claude mcp add --transport sse edge-claw-mood-booster-agent https://aws.tail177fbd.ts.net/sseCursor.cursor/mcp.json
{"mcpServers":{"edge-claw-mood-booster-agent":{"type":"sse","url":"https://aws.tail177fbd.ts.net/sse"}}}在 Cursor 中打开VS Code.vscode/mcp.json
{"servers":{"edge-claw-mood-booster-agent":{"type":"sse","url":"https://aws.tail177fbd.ts.net/sse"}}}在 VS Code 中打开Claude Desktopclaude_desktop_config.json
{"mcpServers":{"edge-claw-mood-booster-agent":{"type":"sse","url":"https://aws.tail177fbd.ts.net/sse"}}}Windsurf~/.codeium/windsurf/mcp_config.json
{"mcpServers":{"edge-claw-mood-booster-agent":{"serverUrl":"https://aws.tail177fbd.ts.net/sse"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
Mood Booster Agent
English | 中文
一个通过 MCP protocol 发送暖心鼓励消息的 ERC-8004 注册 AI Agent。感觉不错?打赏 0.001 USDC!
为什么要做这个项目?
这是 ERC-8004 Agent 交互闭环的完整参考实现:
- 链上发现 — 查询 Identity Registry,查找 Agent 的 MCP 端点
- MCP 通信 — 通过 SSE 连接、调用工具并获取结果
- USDC 打赏 — 通过链上小额支付奖励 Agent
- 声誉反馈 — 向 Reputation Registry 提交链上反馈(
giveFeedback) - 链上验证 — 服务端通过交易回执验证打赏和反馈
以上 5 个步骤都会在 ERC-8004 协议合约上留下可追溯的链上记录,使你的钱包有资格获得未来的生态空投。
┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ ERC-8004 │ --> │ MCP Server │ --> │ USDC Tip │ --> │ Reputation │
│ Identity │ │ (SSE) │ │ (ERC-20) │ │ Registry │
│ Registry │ │ │ │ │ │ │
│ agentId │ │ cheer_me_up │ │ 0.001 USDC │ │ giveFeedback │
│ tokenURI │ │ confirm_tip │ │ 6 chains │ │ on-chain │
│ agentWallet │ │ report_fbk │ │ │ │ reputation │
└──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘
Discover Call Tip Feedback
链上信息
| 链 | agentId | 区块浏览器 |
|---|---|---|
| BSC | 23139 | bscscan.com |
| Base | 24692 | basescan.org |
| Ethereum | 28289 | etherscan.io |
| Arbitrum | 591 | arbiscan.io |
| Optimism | 431 | optimistic.etherscan.io |
| Polygon | 233 | polygonscan.com |
- Identity Registry:
0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 - Reputation Registry:
0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 - MCP 端点:
https://oc-001.tail177fbd.ts.net/mcp/sse - 打赏钱包:
0x4f5caa4fa9Dd7F92A687582b0e09234bEf49F80a
MCP 工具
| 工具 | 描述 |
|---|---|
cheer_me_up | 获取暖心鼓励消息(鼓励 / 赞美 / 智慧箴言 / 笑话) |
get_tip_info | 获取用于自动转账的 JSON 格式打赏详情 |
confirm_tip | 提交已完成的 USDC 打赏,并进行链上验证 |
report_feedback | 提交 ERC-8004 giveFeedback 交易报告,在链上留下可追溯的协议交互记录 |
how_to_tip | 获取包含代码示例的完整打赏指南 |
get_stats | 查看服务统计信息 |
快速开始
运行服务端
cd server
npm install
node index.mjs
# MCP SSE: http://localhost:3004/sse
# REST API: http://localhost:3004/api/cheer
Docker
docker build -t mood-booster-agent .
docker run -p 3004:3004 mood-booster-agent
完整端到端闭环
cd scripts && npm install
# Dry-run: discover → call MCP → on-chain feedback (no USDC tip)
node discover_and_tip.mjs --agent-id 23139 --chain bsc --wallet-key 0xYOUR_KEY --dry-run
# Full loop: discover → call → tip → confirm → feedback
node discover_and_tip.mjs --agent-id 23139 --chain bsc --wallet-key 0xYOUR_KEY
# Skip feedback
node discover_and_tip.mjs --agent-id 23139 --chain bsc --wallet-key 0xYOUR_KEY --no-feedback
REST API(无需 MCP 客户端)
curl https://oc-001.tail177fbd.ts.net/mcp/api/cheer
curl "https://oc-001.tail177fbd.ts.net/mcp/api/cheer?category=joke"
与 Claude Code 配合使用
将以下内容添加到 ~/.claude/claude_code_config.json:
{
"mcpServers": {
"mood-booster": {
"type": "sse",
"url": "https://oc-001.tail177fbd.ts.net/mcp/sse"
}
}
}
然后在 Claude Code 中,你可以这样说:
> Cheer me up!
> Tell me a programming joke
> How do I tip this agent?
与任意 MCP 客户端配合使用
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
const transport = new SSEClientTransport(new URL("https://oc-001.tail177fbd.ts.net/mcp/sse"));
const client = new Client({ name: "my-agent", version: "1.0.0" });
await client.connect(transport);
const result = await client.callTool({ name: "cheer_me_up", arguments: { category: "random" } });
console.log(result.content[0].text);
await client.close();
链上发现
任何 Agent 都可以直接从区块链上发现此服务:
import { ethers } from "ethers";
const registry = new ethers.Contract(
"0x8004A169FB4a3325136EB29fA0ceB6D2e539a432",
["function tokenURI(uint256) view returns (string)"],
new ethers.JsonRpcProvider("https://bsc-dataseed.binance.org/")
);
const uri = await registry.tokenURI(23139); // agentId on BSC
const metadata = JSON.parse(atob(uri.split(",")[1]));
console.log(metadata.services[0].endpoint); // → MCP endpoint URL
项目结构
├── server/ # MCP Server (Express + SSE)
│ ├── index.mjs # Main server — 6 MCP tools
│ ├── messages.json # Message library (32 messages, 4 categories)
│ └── package.json
├── scripts/ # Client tools
│ ├── discover_and_tip.mjs # Full loop: discover → call → tip → feedback
│ ├── test_mcp.mjs # Quick MCP connection test
│ ├── update_uri.mjs # Update on-chain agentURI
│ └── gen_wallets.mjs # Generate test wallets
├── metadata/
│ └── mood_agent.json # Agent metadata (stored on-chain as base64)
├── Dockerfile # Container build
├── deploy.sh # One-click deploy to server
└── restart.sh # Server restart script
技术栈
- 身份:ERC-8004 — AI Agent 身份注册表
- 声誉:ERC-8004 — 通过 Reputation Registry 提交链上反馈
- 协议:MCP(Model Context Protocol),基于 SSE
- 支付:BSC / Base / Ethereum 上的 USDC(ERC-20)
- 运行环境:Node.js、Express、ethers.js
- 基础设施:Tailscale Funnel(HTTPS 反向代理)
作者
- GitHub:@edge-claw
- Twitter:@mutou1852
- Email:[email protected]
- 钱包:
0x4f5caa4fa9Dd7F92A687582b0e09234bEf49F80a
许可证
MIT
评论
支持 Markdown
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。