fakechat-test
Set up fakechat MCP plugin for interactive browser-based channel testing
- License 许可
- MIT
- 所属仓库
- kfet/fir
- 最近更新
- 2026-11-13
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- fakechat-test
- override
- true
- description
- Set up fakechat MCP plugin for interactive browser-based channel testing
03 SKILL.md 正文
Set up the official fakechat MCP plugin so you can chat with fir through the browser UI.
Build fir and install fakechat
make
if [ ! -d /tmp/claude-plugins-official/external_plugins/fakechat ]; then
cd /tmp && git clone --depth 1 https://github.com/anthropics/claude-plugins-official.git
fi
cd /tmp/claude-plugins-official/external_plugins/fakechat && bun install
Generate config and launch
MCP_CONFIG=$(mktemp /tmp/fir-fakechat-mcp-XXXXXX)
DEBUG_LOG=$(mktemp /tmp/fir-fakechat-debug-XXXXXX)
REPO="$PWD"
cat > "$MCP_CONFIG" << EOF
{
"mcpServers": {
"fakechat": {
"command": "bun",
"args": ["run", "/tmp/claude-plugins-official/external_plugins/fakechat/server.ts"]
}
}
}
EOF
lsof -ti:8787 | xargs kill -9 2>/dev/null; true
tmux kill-session -t fakechat 2>/dev/null; true
tmux new-session -d -s fakechat -x 140 -y 40 \
"cd /tmp && FIR_DEBUG=1 $REPO/bin/fir --debug --debug-log-file $DEBUG_LOG --mcp-config $MCP_CONFIG 2>/tmp/fakechat-stderr.log"
echo "MCP config: $MCP_CONFIG"
echo "Debug log: $DEBUG_LOG"
Verify connection and open browser
sleep 4 && grep 'mcp connected.*fakechat' "$DEBUG_LOG"
open http://localhost:8787
Should show "tools":2. The browser UI is now open — type messages and the agent auto-responds.
Monitor continuously
- Check logs for channel activity
grep -i 'channel\|inject\|reply\|error\|warn\|fail' "$DEBUG_LOG" | tail -20
- Check TUI state
tmux capture-pane -t fakechat -p -S -40
- Report:
- New channel messages received (with timestamps)
- Tool calls made (reply, etc.)
- Any errors or warnings
- Whether auto-trigger fired (agent started a turn without manual prompt)
- Sleep for 10s, then go back to step 1
Keep monitoring until the user explicitly asks to stop or clean up.
Cleanup after user says you're done
tmux kill-session -t fakechat 2>/dev/null
lsof -ti:8787 | xargs kill -9 2>/dev/null; true
04 同仓库更多 Skills
wt
Spawn a fresh fir agent in its own tmux session on its own git worktree. Use whenever the user wants the work — or the conversation about the work — to happen over there, not here. If the user points at this skill, or has directly loaded it in the context, that alone is the cue — spawn, don't inline.
wrap-up
Wrap up work on a project branch — review, fix, and simplify in a loop until clean, then ff-merge to main.
tmux-observer
Attach a tmux window to an already-running fir session — observe its transcript and drive its input via tmux send-keys. Use when you need to watch or steer another fir agent.
tmux-driver
Drive interactive CLIs (python, gdb, etc.) via named tmux sessions with multi-window support. Falls back to fir's built-in PTY driver when tmux is unavailable.
telegram-bot-setup
Set up a new Telegram bot channel for a fir project — install the telegram MCP, create a per-project state dir, drop in the bot token, wire .fir/mcp.json with TELEGRAM_STATE_DIR, pair the user, and verify. Use when the user asks to add, configure, or onboard a Telegram bot for a fir worktree/project.
sync
Sync with an upstream source repo — detect changed files, apply equivalent downstream edits, update the baseline, and report any new features or non-trivial changes picked up.