|
Some checks failed
* feat(record): capture MCP call streams to NDJSON and replay deterministically mcporter record <session> wraps the runtime transport and appends every JSON-RPC request, response, and notification to a per-session NDJSON file under ~/.mcporter/recordings/. mcporter replay <session> reconstructs an in-memory transport from the recording and matches requests by method + deep-equal params, returning the recorded response without contacting the live server. Use cases: - Reproduce MCP-backed agent bugs offline (no live Linear quota, no Vercel API rate limits) - Build test fixtures from real call sequences - Share a session for a postmortem without sharing credentials The format is plain JSON-RPC over NDJSON with a small _meta field (direction, server, timestamp). No proprietary blob. Env-var passthrough (MCPORTER_RECORD=<name>, MCPORTER_REPLAY=<name>) lets the existing runtime constructor wrap any transport when set. * fix(replay): attach cause to wrapped errors to satisfy preserve-caught-error lint * fix(replay): rewrite response ids during replay * fix(replay): harden record replay modes Clear conflicting record/replay env vars when spawning wrapped commands, force those commands off the daemon fast path, truncate each recording file at session start, and fail replay close when recorded requests remain unused. * fix(cli): preserve wrapped command flags Stop global flag extraction at -- so record/replay wrappers do not consume child command flags, and drop the release-owned changelog entry from the PR diff. * fix(replay): propagate cleanup failures through cli Ensure replay-mode transport close failures escape normal runtime and CLI cleanup after best-effort shutdown has completed. Add runtime and CLI regressions for partial recordings that leave requests unreplayed. * fix: harden record replay runtime paths * test: align replay fixtures with windows home --------- Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Co-authored-by: Peter Steinberger <steipete@gmail.com> |
||
|---|---|---|
| .. | ||
| adhoc.md | ||
| agent-skills.md | ||
| call-heuristic.md | ||
| call-syntax.md | ||
| cli-generator.md | ||
| cli-reference.md | ||
| CNAME | ||
| config.md | ||
| daemon.md | ||
| emit-ts.md | ||
| hang-debug.md | ||
| import.md | ||
| index.md | ||
| install.md | ||
| known-issues.md | ||
| livetests.md | ||
| local.md | ||
| logging.md | ||
| manual-testing.md | ||
| mcp.md | ||
| migration.md | ||
| pnpm-mcp-migration.md | ||
| quickstart.md | ||
| record-replay.md | ||
| refactor.md | ||
| RELEASE.md | ||
| shortcuts.md | ||
| social-card.png | ||
| social-card.svg | ||
| spec.md | ||
| subagent.md | ||
| supabase-auth-issue.md | ||
| tmux.md | ||
| tool-calling.md | ||
| windows.md | ||