peek
This server lets you query recorded browser sessions, debug errors, reconstruct DOM states, generate Playwright test scripts, and—with explicit user consent—control the live browser.
Session Discovery & Overview
List recent sessions: Browse recorded sessions (newest-first), filtered by origin or limit, to get session IDs for further queries.
Summarize a session: Get a narrative summary including pages visited, interaction counts, and error tallies.
Error & Network Debugging
List console errors: Retrieve error messages and stack traces from a session.
List failed network requests: Find failed HTTP requests (4xx/5xx or transport errors) within a session.
Trace actions before an error: Reconstruct the sequence of user actions (clicks, typing, navigation) that preceded a specific console error.
DOM Inspection & History
Reconstruct DOM snapshots: Replay the page DOM as it existed at any recorded timestamp, optionally scoped to a CSS selector.
Track DOM changes over time: Get a timeline of attribute/text changes for a specific element across a session.
Test Generation
Generate a Playwright repro: Produce a runnable TypeScript Playwright test reproducing user actions from a session, optionally within a time window.
Live Browser Control (Consent-Gated)
Request authorization: Ask the user to approve a browser action via a side-panel banner, returning a one-shot token on approval.
Execute browser actions: Perform clicks, typing, navigation, scrolling, screenshots, and more in the live browser, subject to a per-origin permission model (read-only → suggest-only → confirm-required → auto-allow). Destructive actions always prompt the user regardless of permission level.
rrweb-stack
Two OSS products on one rrweb-based substrate. Both ship as npm packages today.
Product | One line | Install |
The recorder for your WebdriverIO and Playwright tests — Cypress on the roadmap. Self-contained HTML for every run — replay failures, audit successes, attach to any bug tracker. No SaaS, no dashboard, no signup. |
| |
Your real browser, exposed to your AI coding agent over MCP — the agent reads recorded sessions and, with your explicit consent, drives the live page. Never leaves your machine. |
|

Above: npx @tracelane/cli init in a real WebdriverIO project — detect runner, install, edit wdio.conf.ts, ignore reports dir.

Above: peek sessions list then peek sessions show ... --format markdown — a recorded browser session as queryable structured output, AI-ready.
What's where
tracelane
Package | Status | What it does |
alpha | WebdriverIO Service — capture + write HTML report | |
alpha | Playwright Reporter + auto-fixture — capture + write HTML report | |
planned | JSON-output adapter (no Test Replay overlap) | |
alpha | Framework-agnostic capture engine — depended on by the adapters | |
alpha | Self-contained HTML report builder |
Docs: tracelane.cubenest.in (source under apps/tracelane-docs/). The tracelane-wdio README is the right starting point.
peek
Package | Status | What it does |
alpha |
| |
alpha | stdio MCP server — exposes captured sessions, plus consent-gated live read + act tools, to Claude Code, Cursor, Cline, Windsurf | |
alpha · on the Chrome Web Store | Chrome MV3 extension — the real browser, recorded |
Docs: peek.cubenest.in (source under apps/peek-docs/).
peek requires Node.js ≥ 22. Its native
better-sqlite3dependency only ships prebuilt binaries for Node 22+; on older Node (notably Windows, which has no C/C++ toolchain by default) the install falls back to compiling from source and fails.
Related MCP server: Krometrail
Shared substrate
@cubenest/rrweb-core — vendored PostHog rrweb fork, PII masking primitives, large-DOM throttling, screenshot fallback, network/console capture abstractions, compression helpers. Used by both products. The fork is pinned by SHA + the substrate's NOTICE attributes both PostHog's plugin lineage and the upstream rrweb roots.
Why two products, one repo
Same recording engine, same trust model, two different consumer surfaces:
tracelane ships test-time captures into a self-contained HTML artifact your team and AI agents can read offline.
peek ships live-browser captures into an MCP server your AI coding agent can query — and, with your explicit per-origin consent, drive the live page through.
peek's live read + act tools are gated by a five-level per-origin permission model (0 Off → 1 Read-only → 2 Suggest-only → 3 Act-with-confirm → 4 YOLO, the default is Level 1) with a destructive-action blocklist that always prompts. No telemetry, no cloud — everything stays in ~/.peek.
Shared upstream means one fork to track, one masking surface to harden, one license + DCO + security policy.
Pre-launch state
Pre-1.0. Alpha packages live on npm. Branch protection is on main (PR + CI + DCO + linear history). All workflows use Trusted Publishing OIDC + SLSA provenance. Renovate runs with a 7-day cooldown (21 days for the @posthog/rrweb lineage) and config:best-practices. tracelane has publicly launched (npm alpha + a live demo report); peek is alpha on npm and its Chrome MV3 extension is available on the Chrome Web Store.
Security
Report a vulnerability via SECURITY.md. The shared threat model for both products lives in docs/SECURITY-NOTES.md.
License
Apache-2.0. See LICENSE.
Contributing
Apache 2.0. DCO sign-off required on all contributions. See CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md.
Sponsor / support
GitHub Sponsors — github.com/sponsors/harry-harish (opening for launch)
The work is open-source and sustainable; sponsorship keeps it that way. See
docs/SUSTAINABILITY.mdfor the maintenance cadence.
Available Tools
10 toolsexecute_actionExecute a browser actionADestructive
Execute an action (click/type/navigate/...) in the user's live browser. Requires per-origin permission Level 3+: Level 3 raises a confirm banner unless a valid confirmToken from request_authorization is passed; Level 4 auto-allows non-destructive actions; Level <3 denies. The destructive-action override (delete/remove/transfer/send/pay/purchase/buy/confirm/subscribe/logout/sign out/unsubscribe/cancel subscription/wire/withdraw) always prompts, even at Level 4. Every call is recorded to ~/.peek/audit.log.
Inputs: sessionId (required), action (required), confirmToken.
generate_playwright_reproGenerate Playwright reproARead-only
Generate a runnable Playwright test (TypeScript) reproducing the user actions in a session: clicks, typing, navigation, and changes. Optionally limit to a [startTs, endTs] epoch-ms window. Returns the test source as text. Note: only single-value is represented (rrweb captures one value per input).
Inputs: sessionId (required), startTs, endTs.
get_dom_snapshotReconstruct DOM at a timeARead-only
Reconstruct the page DOM as it existed at a timestamp (or a selector subtree within it) and return it as HTML. Applies structural/attribute/text mutations on top of the nearest full snapshot at or before ts. Returns JSON { baseSnapshotTs, mutationsApplied, html }; html clipped to 24000 chars. Fails if no full snapshot exists at or before ts.
Inputs: sessionId (required), ts (required), selector.
get_session_console_errorsList console errorsARead-only
List console error messages recorded in a session, oldest first. Each row has a numeric id to pass to get_user_action_before_error. Returns JSON rows ({ id, ts, level, message, stack }); message clipped to 500 and stack to 800 chars. For error counts at a glance, use get_session_summary first.
Inputs: sessionId (required), since, limit.
get_session_network_errorsList failed network requestsARead-only
List failed or notable network requests in a session (HTTP status >= statusGte, or a transport-level network error), oldest first. Returns JSON rows ({ id, ts, method, url, status, statusText, resourceType, durationMs, errorText }); url and errorText clipped to 300 chars.
Inputs: sessionId (required), statusGte, limit.
get_session_summarySummarize a sessionARead-only
Get an LLM-readable narrative summary of one session: pages visited, click/input/navigation counts, and error counts. Use this first for an overview before drilling into get_session_console_errors / get_session_network_errors. Returns a structured JSON summary.
Inputs: sessionId (required).
get_user_action_before_errorActions before an errorARead-only
Reconstruct what the user did right before a console error: returns the last window user actions (click/type/navigate) preceding the error, to explain how it was triggered. Returns JSON { errorId, errorTs, actions }. Get errorId from get_session_console_errors first.
Inputs: sessionId (required), errorId (required), window.
list_recent_sessionsList recent browser sessionsARead-only
List the user's recorded browser sessions, newest first — the entry point for the get_session_* and DOM tools. Returns compact JSON rows ({ sessionId, origin, url, title, startedAt, ... }); free-text fields are clipped (origin 100, url 300, title 200 chars). If the MCP client scoped roots to specific origins and no origin filter is given, results are restricted to the client's scoped origins. Start here to obtain a sessionId, then call get_session_summary.
Inputs: limit, origin.
query_dom_historyDOM change timelineARead-only
Timeline of attribute and/or text changes over a session for the node matching a CSS selector - useful for tracking how one element evolved. Returns JSON { selector, changes }. Use op to restrict to attribute changes or innerText; omit for both.
Inputs: sessionId (required), selector (required), op, limit.
request_authorizationRequest action authorizationA
Ask the user to authorize a browser action via the side-panel banner (Level-3 act-with-confirm). On Allow, returns a one-shot confirmToken to pass to execute_action; on Deny, returns the denial. Every call - allowed or denied - is recorded to ~/.peek/audit.log. Use before execute_action when the origin is at permission Level 3, or to pre-authorize.
Inputs: sessionId (required), action (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct aspect of browser session recording: action execution, session listing, error retrieval, DOM snapshots, history tracking, authorization, and repro generation. There is no overlap or ambiguity between them.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., execute_action, get_session_summary, list_recent_sessions), making them predictable and easy to understand.
With 10 tools, the server provides a comprehensive yet focused set for browser session analysis and interaction—enough to cover core workflows without being overwhelming or too sparse.
The tool surface covers session listing, detailed error/network analysis, DOM inspection, action execution, and repro generation. Minor gaps like session deletion or full error browsing are not critical for the primary use case.
Maintenance
Related MCP Connectors
Jam recordings (video, console, network) as context and proof of work for your coding agent.
Session replay as readable transcripts: rage and dead clicks, JS errors, heatmaps. Open source.
Live browser debugging for AI assistants — DOM, console, network via MCP.
Let AI agents use any website you're logged in to. Sessions stay encrypted on your machine.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnables interaction with Comet ML's experiment tracking platform through the Model Context Protocol, providing tools for experiment management, project organization, and advanced search.91 PyPI2Apache 2.0- AlicenseNot gradedqualityBmaintenanceGives AI coding agents eyes into running applications by recording browser activity and providing session investigation tools for debugging.3MIT
- AlicenseAqualityCmaintenanceRecords your terminal sessions per command (PTY + OSC 133) into local SQLite, so AI agents can search, retrieve, and diff what commands actually printed. Secret redaction is applied by default to everything served over MCP.47MIT
- AlicenseNot gradedqualityBmaintenanceRecords browser sessions and provides structured context (clicks, console, network, screenshots) for AI coding agents to understand and act upon.2MIT