Mood Booster Agent

io.github.edge-claw由 GitHub 帳號 edge-claw 發布v1.0.0更新於 Oct 24, 2026

ERC-8004 AI Agent: uplifting messages, USDC tipping, and on-chain reputation feedback.

已驗證SSE可網頁執行金融AI 與機器學習

概覽

AI 產生的概覽

一個遠端 ERC-8004 代理,可提供鼓勵話語,並讓助理取得打賞資訊、確認 USDC 打賞和回報鏈上聲譽回饋。

可以做什麼
依鼓勵、讚美、智慧或笑話等類別取得暖心訊息,並查看該代理的服務統計。取得打賞詳情和逐步打賞指南(含程式碼範例),用於自動化 USDC 轉帳。回報已完成的 USDC 打賞和 ERC-8004 giveFeedback 交易,由伺服器在鏈上驗證。可透過 ERC-8004 身分註冊表探索該代理的端點,也可不經 MCP 用戶端直接使用 REST 介面取得鼓勵語。
適用情境
適合想要一個託管式輕量代理來取得勵志或笑話訊息的情境,也適合正在建置或測試 ERC-8004 的探索、MCP 呼叫、USDC 打賞與鏈上聲譽流程,需要一個可運作的參考服務時使用。
執行需求
透過 SSE 連線的遠端 MCP 端點;未宣告需要本機執行環境、帳號或 API 金鑰。打賞與回饋回報需要加密錢包、BSC、Base、Ethereum、Arbitrum、Optimism 或 Polygon 上的 USDC,以及對這些鏈的存取。
安裝前請注意
打賞會從你的錢包向該代理的打賞錢包發送真實 USDC;README 中的範例腳本以命令列參數傳入錢包私鑰,可能外洩到 shell 歷史或日誌中。確認打賞和提交回饋會在公開的 ERC-8004 合約上留下可追溯紀錄。README 還宣稱錢包可獲得未來空投資格,但這並非保證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mood Booster Agent,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 SSE。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.edge-claw%2Fmood-booster-agent/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "mood-booster-agent": {
      "type": "sse",
      "url": "https://aws.tail177fbd.ts.net/sse"
    }
  }
}

README

Mood Booster Agent

English | 中文

An ERC-8004 registered AI Agent that delivers uplifting messages via MCP protocol. Feel good? Tip 0.001 USDC!

Why This Project?

This is a complete reference implementation of the ERC-8004 Agent interaction loop:

  1. On-chain Discovery — Query Identity Registry to find the agent's MCP endpoint
  2. MCP Communication — Connect via SSE, call tools, get results
  3. USDC Tipping — Reward the agent with on-chain micropayments
  4. Reputation Feedback — Submit on-chain feedback to Reputation Registry (giveFeedback)
  5. On-chain Verification — Server verifies tips and feedback via tx receipts

All 5 steps leave traceable on-chain records on ERC-8004 protocol contracts, making your wallet eligible for future ecosystem airdrops.

┌──────────────┐     ┌──────────────┐     ┌──────────────┐     ┌──────────────┐│  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

On-Chain Info

ChainagentIdExplorer
BSC23139bscscan.com
Base24692basescan.org
Ethereum28289etherscan.io
Arbitrum591arbiscan.io
Optimism431optimistic.etherscan.io
Polygon233polygonscan.com
  • Identity Registry: 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432
  • Reputation Registry: 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63
  • MCP Endpoint: https://oc-001.tail177fbd.ts.net/mcp/sse
  • Tip Wallet: 0x4f5caa4fa9Dd7F92A687582b0e09234bEf49F80a

MCP Tools

ToolDescription
cheer_me_upGet a warm, uplifting message (encouragement / compliment / wisdom / joke)
get_tip_infoGet tipping details in JSON format for automated transfers
confirm_tipReport a completed USDC tip with on-chain verification
report_feedbackReport an ERC-8004 giveFeedback transaction — leaves traceable protocol interaction on-chain
how_to_tipGet a complete tipping guide with code examples
get_statsView service statistics

Quick Start

Run the server

bash
cd servernpm installnode index.mjs# MCP SSE: http://localhost:3004/sse# REST API: http://localhost:3004/api/cheer

Docker

bash
docker build -t mood-booster-agent .docker run -p 3004:3004 mood-booster-agent

Full end-to-end loop

bash
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 → feedbacknode discover_and_tip.mjs --agent-id 23139 --chain bsc --wallet-key 0xYOUR_KEY
# Skip feedbacknode discover_and_tip.mjs --agent-id 23139 --chain bsc --wallet-key 0xYOUR_KEY --no-feedback

REST API (no MCP client needed)

bash
curl https://oc-001.tail177fbd.ts.net/mcp/api/cheercurl "https://oc-001.tail177fbd.ts.net/mcp/api/cheer?category=joke"

Use with Claude Code

Add this to your ~/.claude/claude_code_config.json:

json
{  "mcpServers": {    "mood-booster": {      "type": "sse",      "url": "https://oc-001.tail177fbd.ts.net/mcp/sse"    }  }}

Then in Claude Code you can say:

> Cheer me up!> Tell me a programming joke> How do I tip this agent?

Use with Any MCP Client

javascript
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();

On-Chain Discovery

Any agent can discover this service directly from the blockchain:

javascript
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 BSCconst metadata = JSON.parse(atob(uri.split(",")[1]));console.log(metadata.services[0].endpoint);  // → MCP endpoint URL

Project Structure

├── 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

Tech Stack

  • Identity: ERC-8004 — AI Agent Identity Registry
  • Reputation: ERC-8004 — On-chain feedback via Reputation Registry
  • Protocol: MCP (Model Context Protocol) over SSE
  • Payment: USDC (ERC-20) on BSC / Base / Ethereum
  • Runtime: Node.js, Express, ethers.js
  • Infrastructure: Tailscale Funnel (HTTPS reverse proxy)

Author

License

MIT

來源:README.md,提交 b765ead

工具

0
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式必需10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。