Buddy Mcp

io.github.Lyellr88由 GitHub 帳號 Lyellr88 發布v1.4.4更新於 Oct 24, 2026

Claude Code creature collection game. Hatch buddies, pet to boost roll luck, complete the BuddyDex.

已驗證STDIO僅桌面

概覽

AI 產生的概覽

給 Claude Code 用的抽卡式夥伴小遊戲:抽取、撫摸並與夥伴互動,還會把它補丁進 Claude Code 二進位檔。

可以做什麼
  • 抽取或重抽隨機夥伴(物種、稀有度、眼睛、帽子),以暴力搜尋鹽值並對 Claude Code 二進位檔打補丁
  • 撫摸夥伴累積好感代幣以提升下次抽取,並讓它依屬性產生台詞
  • 瀏覽記錄所有抽到物種的 BuddyDex,並把夥伴卡或 ASCII 精靈匯出為 SVG 檔
  • 關閉夥伴的觀察模式
  • 使用互動式 TUI 建構器自選特徵、瀏覽預設、切換已儲存夥伴、預覽圖案、分享卡片或從備份還原
適用情境
適合曾使用 Claude Code 短暫上線的愚人節夥伴功能、並想要一個本機抽取、帶收集與抽卡機制的獨立夥伴的人。專案已封存,其針對的原生整合已不存在,宜當作趣味終端小工具看待。
執行需求
以 stdio 在本機執行,來自 npm 套件 buddy-mcp。需要 Claude Code CLI、Node.js v20 或更新版本,以及用於鹽值暴力搜尋和動畫 TUI 的 Bun。未宣告帳號、API 金鑰或環境變數。
安裝前請注意
它會就地修改 Claude Code 二進位檔,或排隊在 Claude 關閉時套用補丁,並保留備份供還原;補丁失敗或不完整可能影響該安裝。重抽需要關閉並重新開啟 Claude Code。README 標明專案已封存,不再與原生功能整合。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[buddy-mcp hero]

Status: Archived / Historical

The official Claude Code /buddy feature was a limited-time April Fools Easter egg (April 1-7, 2026). I built buddy-mcp during that window thinking it might stick around longer. After it was removed, the deep native integration this tool was designed for no longer exists.

The repo is kept as an archive. The code, gacha system, TUI builder, and MCP tools still work as a standalone terminal companion — but the magic was always the native UI integration, and that's gone.

If Anthropic ever brings back native companion support or opens up a proper extension API, I'll pick this back up where I left off.

Thanks to everyone who checked it out while it was relevant.


[CI] [npm downloads] [npm version] [Node >=20] [License: MIT] [MCP Registry] [buddy-mcp MCP server] [Socket Badge]

Need a break from long code sessions? Stuck on a bug? Reroll a buddy, talk with them, or interact by petting them to build affection and improve your odds at higher-tier buddies on the next roll. If enough people want it, I'll build out Battle-Buddies where you can pit your buddy against others and unlock exclusive species that sync back into your local pool.

A collect them all companion system for Claude Code. Roll for a rare buddy, patch it directly into the binary,. buddy-mcp is an MCP server that replaces Claude Code's built-in companion with one you actually rolled for. Reroll, get lucky, close Claude, reopen. Your new buddy is waiting. Legendary buddy could be yours on your next Claude session


Quick Demo

Interactive Builder

Build your perfect buddy with full control.

[Watch Video]

Reroll in Action

Roll, close Claude, reopen and enjoy your new buddy.

[Watch Video]

Interact with Tools

Talk, pet, and explore your buddy's dex.

[Watch Video]


How It Works

Claude Code's companion is generated from a salt string baked into the binary. buddy-mcp:

  1. Rolls random desired traits (species, rarity, eye, hat)
  2. Brute-forces a salt that hashes to those traits (multi-worker, runs fast)
  3. Patches the binary in place, or queues the patch for when you close Claude
  4. Saves your full buddy profile with stats, name, and personality
  5. Tracks every species you've ever rolled in your BuddyDex

No companion server. No cloud. Just you, your binary, and the gacha gods.

Token footprint is kept intentionally small of 29 registered tools, Claude only ever sees ~9 at a time. The other 20 stay hidden until you reroll. See TECHNICAL.md for the full breakdown.


🛠️ Looking for the technical deep-dive? See TECHNICAL.md for the patch flow diagrams, binary patching logic, and state file reference.


TUI Builder (buddy-mcp-build)

Want more control? Use the interactive builder:

bash
node dist/tui/cli.js
CommandWhat it does
build your ownPick species, rarity, eye, hat and it brute-forces a matching salt and patches
browse presetsPick from curated preset buddies
saved buddiesSwitch between previously saved buddy profiles
currentDisplay current buddy info
previewPreview ASCII art for any species
shareCopy your buddy's ASCII card to clipboard
restoreRestore binary from the best available backup
rehatchDelete current buddy and start fresh

Bun optional but recommended. Install bun.sh for the full animated TUI. Falls back to sequential prompts without it.


Quick Start

Try me: run reroll_buddy → close Claude Code → reopen → your new buddy is live.

1. Prerequisites

  • Claude Code CLI installed
  • Node.js v20+ - required for everything
  • Bun - required for salt brute-forcing (rerolling) + full animated TUI

2. Install via npm

bash
npm install -g buddy-mcp

This installs both commands globally:

  • buddy-mcp - the MCP server (Claude Code runs this)
  • buddy-mcp-build - the interactive TUI builder (you run this)

3. Register with Claude

bash
claude mcp add buddy-mcp buddy-mcp

Claude will auto-detect the installed binary and connect it.

4. Verify

Open Claude Code. Your buddy is live—use Claude Code's native /buddy command to see your card, or ask Claude: "show me my buddy"

You should see your companion's species, rarity, stats, and personality. You're in.

4b. Natural Language Activation

All buddy tools work through natural language. Claude's NLP detects intent automatically:

Natural LanguageActivates
"reroll buddy" / "let's roll again"reroll_buddy
"talk to my buddy" / "what does buddy think"buddy_talk
"pet buddy" / "pet them"pet_buddy
"my buddy dex" / "show me my collection"view_buddy_dex
"export buddy card" / "save my buddy"export_buddy_card
"export sprite" / "save the sprite"export_buddy_sprite

No tool names required — just chat naturally.

5. Launch the TUI Builder (optional)

For the full interactive builder with live preview:

bash
buddy-mcp-build

Auto-detects Bun for animated TUI. Falls back to basic prompts without it.


The Gacha System

Every reroll is a random pull from the pool. Rarity affects stat floors. Legendaries hit different.

RarityDrop RateStat Floor
Common60%5
Uncommon25%15
Rare10%25
Epic4%35
Legendary1%50

18 species: duck · goose · blob · cat · dragon · octopus · owl · penguin · turtle · snail · ghost · axolotl · capybara · cactus · robot · rabbit · mushroom · chonk

Each buddy has 5 stats: Debugging, Patience, Chaos, Wisdom, Snark. A peak stat is boosted high and a dump stat is kept humble. Personality shapes how buddy_talk and pet_buddy respond. A high-Chaos dragon hits different than a patient turtle.


ToolWhat it does
reroll_buddy🎲 Spin the wheel. Brute-forces a salt matching a random rare+ outcome and patches your binary. Close Claude and reopen to see it.
pet_buddy🤚 Poke your buddy. Each pet adds 1-15% toward earning an affection token. At 100%, earn 1 token that stacks and persists across sessions. Spend a token on next reroll_buddy to guarantee rare+ rarity + 60% hat chance + 20% shiny chance.
buddy_talk💬 Ask your buddy to say something. Uses stat-based response templates weighted by top 2 stats. Optional context parameter for focused stat selection. Output shown verbatim.
view_buddy_dex📖 Browse every species you've ever rolled. Gotta catch 'em all.
export_buddy_card🖼️ Export your full buddy card as an SVG image file.
export_buddy_sprite🎨 Export just the buddy ASCII sprite as an SVG image file.
deactivate_buddy_interact🔕 Turn off buddy observation mode. Your buddy stops watching. (Buddy observation is always on by default.)

Stat Personality Tools

20 baked-in tools. Only 2 are visible at a time: 1 randomly picked from each of your buddy's top 2 stats by raw value. The other 18 stay hidden. The visible pair is locked per roll. It doesn't change until you reroll. Every buddy shows a different pair.


Troubleshooting

Buddy doesn't change after reroll

Normal flow (Windows): When you reroll and Claude is running:

  1. Reroll triggers a background watcher — no action needed from you
  2. Close Claude Code whenever — watcher detects it and applies the patch automatically
  3. Reopen Claude Code — your new buddy is live

If it doesn't appear after reopening:

  1. Verify Claude is fully closed (check Task Manager on Windows)
    • Even minimized or backgrounded windows count — they keep the binary locked
    • Wait a few seconds after closing
  2. Reopen Claude Code
    • The startup hook auto-applies any pending patches
    • You should see your new companion immediately

Prefer immediate patching?

If you want to guarantee a patch applies without waiting for the watcher, close Claude before rerolling:

bash
# Option 1: Use the interactive TUI builder (simplest)buddy-mcp-build
# Option 2: Close Claude, then use the reroll_buddy tool# (patch applies immediately without needing the watcher)

This is the only time you need manual steps — the watcher handles all other cases.


Credits

Forked and extended from any-buddy by cpaczek.

來源:README.md,提交 7e78d04

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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