AGENT SKILL

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

  1. Check logs for channel activity
grep -i 'channel\|inject\|reply\|error\|warn\|fail' "$DEBUG_LOG" | tail -20
  1. Check TUI state
tmux capture-pane -t fakechat -p -S -40
  1. 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)
  1. 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