
Agent Replay
io.github.mdfifty50-boop由 GitHub 帳號 mdfifty50-boop 發布v0.1.1更新於 Oct 24, 2026
Record and replay AI agent execution for debugging
概覽
本機 MCP 伺服器,可記錄 AI 代理工作階段,讓助理回放、比較並匯出工作階段,以偵錯非確定性行為。
- 可以做什麼
- 開始與停止代理工作階段的錄製,回傳工作階段 ID 以及動作數量與時長摘要,並記錄單一動作的輸入、輸出、推理與耗時。逐步回放已錄製的工作階段,檢視完整動作細節。比較兩個工作階段,取得相似度、相同與分歧步驟數以及首次分歧位置。依單一期望值或逐步期望輸出,找出代理首次偏離預期輸出的位置。將工作階段匯出為 JSON 或易讀的 Markdown 紀錄,並透過資源列出所有已錄製工作階段。
- 適用情境
- 適合偵錯每次執行結果不一致的代理、將本次執行與先前的基準比較以找出行為回歸,或需要一份可分享的代理執行紀錄時使用。
- 執行需求
- 以本機程序在使用者電腦上執行,透過 npx agent-replay-mcp 啟動,或從原始碼以 Node.js 與 npm install 執行。需要設定桌面用戶端;未宣告帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Agent Replay,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
agent-replay-mcp
MCP server for agent session recording and replay — debug non-deterministic agent behavior with session comparison and divergence detection.
Record every action an agent takes, replay sessions step by step, diff two runs to find behavioral regressions, and pinpoint exactly where an agent diverged from expected output.
Install
Claude Desktop
Add to claude_desktop_config.json:
From source
Tools
record_session
Start recording all actions for an agent session.
Returns a session_id for use with other tools.
stop_recording
Stop recording and return a session summary.
Returns: action count, total duration, action type breakdown.
log_action
Log a single action during a recording session.
replay_session
Replay a recorded session step by step with full action detail.
Returns: complete action sequence with timing, reasoning, inputs, and outputs.
compare_sessions
Behavioral diff between two sessions. Aligns actions by step index and highlights differences.
Returns: similarity ratio, identical/divergent step counts, first divergence step, and per-step diffs.
find_divergence_point
Find where an agent first deviated from expected output.
If expected_output is an array, compares step by step. If a single value, finds the last matching output and flags the next step as the divergence point.
export_session
Export a session for sharing and offline analysis.
Markdown format produces a readable transcript with step headers, reasoning, and code blocks.
Resources
Usage Pattern
Tests
License
MIT
來源:README.md,提交 5b16b48
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。