
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.
概览
面向 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 密钥或环境变量。
安装
在 SourceWeft 中
- 打开 控制台中的 Buddy Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Status: Archived / Historical
The official Claude Code
/buddyfeature 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
How It Works
Claude Code's companion is generated from a salt string baked into the binary. buddy-mcp:
- Rolls random desired traits (species, rarity, eye, hat)
- Brute-forces a salt that hashes to those traits (multi-worker, runs fast)
- Patches the binary in place, or queues the patch for when you close Claude
- Saves your full buddy profile with stats, name, and personality
- 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:
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
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
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:
No tool names required — just chat naturally.
5. Launch the TUI Builder (optional)
For the full interactive builder with live preview:
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.
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.
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:
- Reroll triggers a background watcher — no action needed from you
- Close Claude Code whenever — watcher detects it and applies the patch automatically
- Reopen Claude Code — your new buddy is live
If it doesn't appear after reopening:
- 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
- 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:
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版本历史
1- v1.4.4最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分