Repository navigation
Releases
v0.4.0
vite-browser v0.4.0
v0.4.0 introduces MCP (Model Context Protocol) support, making vite-browser a first-class MCP server that AI agents and IDE assistants can invoke directly — no shell wrappers needed.
What's new
MCP server (vite-browser mcp)
vite-browser now ships a built-in MCP stdio server. Start it with:
vite-browser mcp
# or via the dedicated binary
vite-browser-mcpThe server exposes 27 MCP tools that map 1-to-1 to the existing daemon commands:
| Category | Tools |
|---|---|
| Browser control | browser_open, browser_close, browser_goto, browser_back, browser_reload, browser_screenshot, browser_eval |
| Framework detection | detect_framework |
| Vue | vue_tree, vue_pinia, vue_router |
| React | react_tree, react_store_list, react_store_inspect, react_hook_health, react_hook_inject, react_commits, react_commits_clear |
| Svelte | svelte_tree |
| Vite | vite_restart, vite_hmr, vite_runtime, vite_module_graph |
| Diagnostics | get_errors, correlate_errors, correlate_renders, diagnose_hmr, diagnose_propagation |
| Utilities | get_logs, get_network |
browser_screenshot returns the page screenshot as inline image content via the MCP image content type — no file paths to resolve.
vite-browser-mcp bin entry
A dedicated vite-browser-mcp binary is now included in the package so MCP clients can reference the server directly without knowing the mcp subcommand:
{
"mcpServers": {
"vite-browser": {
"command": "vite-browser-mcp"
}
}
}Configuring Claude Code
Add to your project .claude/settings.json (or global ~/.claude/settings.json):
{
"mcpServers": {
"vite-browser": {
"command": "vite-browser-mcp"
}
}
}Restart Claude Code and the vite-browser tools will appear automatically. The daemon starts on first use and is shared across all tool calls in the session.
Validation
Verified with:
pnpm typecheckpnpm test(191 / 191 pass)pnpm build
Upgrade
npm install @presto1314w/vite-devtools-browser@0.4.0No configuration changes are required for existing CLI users. The MCP server is an additive entry point — all existing commands and behavior are unchanged.
v0.3.6
vite-browser v0.3.6
v0.3.6 is the stabilization follow-up to the Enhanced React Support milestone. It keeps the v0.3.5 React surface, then hardens browser startup, framework detection, and release validation so the shipped commands behave consistently in real environments.
What changed
React inspection stability fixes
v0.3.6 keeps the bundled React hook, Zustand inspection, hook diagnostics, and commit tracing introduced in v0.3.5, but fixes the runtime mismatches that made those features fragile before release hardening:
- bundled hook now tracks committed fiber roots correctly
- renderer selection no longer assumes a hard-coded renderer id
react treerecovers automatically when the hook is missing or the renderer has not attached yet- framework detection no longer misclassifies non-React pages just because the bundled hook is present
Browser launch and local validation hardening
Release validation is now more reliable across local environments:
- browser startup can reuse a system Chrome/Chromium executable when Playwright-managed browsers are unavailable
VITE_BROWSER_HEADLESS=1is supported for automated validation flows- Unix socket and temporary-path handling are more resilient in restricted environments
Cross-platform E2E release gate repair
The repository E2E gate no longer depends on a machine-specific Windows setup or an out-of-repo demo:
- the E2E suite now uses the in-repo Vue fixture
- dev-server launch logic is cross-platform
- runtime checks use fixture-aligned assertions
- release smoke validation now runs cleanly as part of the repository gate
Vue / Pinia detection recovery
Vue runtime detection and store/render tracing now recover even when Vue devtools globals are absent:
- mounted Vue app markers are used as a fallback signal
- Pinia subscriptions can attach from the mounted app instance
vite runtimeperforms a lightweight framework re-check when the session framework is still unknown
Commands available in this release
vite-browser react tree
vite-browser react store list
vite-browser react store inspect <name>
vite-browser react hook health
vite-browser react hook inject
vite-browser react commits --limit 20
vite-browser react commits clearValidation
Verified with:
pnpm typecheckpnpm test(191 / 191 pass)pnpm buildpnpm docs:buildpnpm test:evals:e2e(3 / 3 pass)npm pack --dry-run
Upgrade
npm install @presto1314w/vite-devtools-browser@0.3.6No new configuration is required. If Playwright browsers are not installed locally, vite-browser can now fall back to a system Chrome/Chromium executable for validation and browser control.
v0.3.3
vite-browser v0.3.3
v0.3.3 is a stabilization patch for the v0.3 release line.
It hardens the real-world Vite 7 / Vue / Pinia debugging path where a hot-updated store breaks a downstream render and the CLI needs to recover the source -> store -> render -> error story from sparse runtime evidence.
What changed
- standardized tracked HMR fallback usage in the daemon so error and render correlation can reuse console-derived HMR updates
- upgraded error correlation to keep high-confidence source-module output even when the current error lands in a downstream component file
- preserved
changedKeysand source-module hints more reliably when store-side and render-side evidence arrive unevenly - cleared stale runtime errors after successful navigation or reload so
errorsreflects the current page lifecycle instead of the last failure forever - expanded regression coverage across unit tests, evals, real e2e, and repeated browser session loops
- kept the stronger
demo-gifrepro as a local-only validation path rather than making it a required in-repo fixture
Why this matters
Before v0.3.3, a realistic Vue/Pinia HMR repro could expose the correct updated store module through tracked HMR logs, yet still downgrade to weaker correlation output because the page-side collector missed the browser HMR event or the current error stack only mentioned the broken component.
This patch improves the practical reliability of:
vite-browser correlate errors --mapped --window 5000vite-browser correlate renders --window 5000vite-browser diagnose propagation --window 5000vite-browser errors
in the kinds of short live repro loops developers actually run.
Validation
The release candidate was verified with:
pnpm buildpnpm test- focused eval suites for correlation and propagation output
- real e2e against the tracked demo app
- local optional e2e against the stronger
demo-gifrepro, including recovery and repeatedclose/open/errorsloops
Scope
v0.3.3 does not change the v0.3 product model.
Propagation output remains a high-confidence narrowing aid, not a claim of complete deep causal proof across arbitrary component graphs. The patch-level gain is that the live evidence chain is more stable and easier to trust when Vite/browser/runtime signals arrive imperfectly.
vite-browser v0.3.2
vite-browser v0.3.2
v0.3.2 is a stabilization patch for the v0.3 release line.
It improves live propagation diagnosis in real Vite repros by making store-driven Vue failures surface more consistently through correlate renders and diagnose propagation, while keeping the conservative v0.3 product positioning.
What changed
- improved live Pinia/store propagation capture for Vue repros
- added action-driven fallback evidence when direct store mutation events are incomplete
- promoted single-store render hints into usable propagation evidence when the event window is otherwise sparse
- allowed propagation diagnosis to reuse the current runtime error when the queue lacks a separate error event
Why this matters
Before v0.3.2, some live repros could capture the render path and current error but still fall back to weak propagation output because the store-side signal arrived late or incompletely.
This patch makes the common Vue case much more practical:
correlate renders --window 5000diagnose propagation --window 5000
are now more likely to return a useful store -> render -> error conclusion from one short live repro loop.
Scope
v0.3.2 does not change the v0.3 product model.
It is still correct to position propagation output as high-confidence narrowing with conservative fallback behavior when evidence is incomplete. The patch-level improvement is that live Vue/Pinia repros now produce actionable propagation output more reliably.
vite-browser v0.3.1
vite-browser v0.3.1
Summary
v0.3.1 is a stabilization patch for the v0.3 release line.
It improves the practical debugging loop for live Vite runtime failures by capturing browser-side runtime errors even when the Vite overlay is absent, preserving event collection more reliably across reloads, and cleaning up direct CLI execution.
Highlights
- added runtime-error fallback for
vite-browser errors - capture browser
pageerrorevents and Vue unhandled-render warnings as structured runtime errors - keep browser-side event collection installed across reloads via init-script registration
- improved live propagation repros when store updates and render failures happen in a short event window
- removed the direct CLI entrypoint warning caused by unsettled top-level await usage
Validation
Release validation completed with:
pnpm typecheckpnpm buildpnpm vitest run test/browser-runtime.test.ts test/daemon-core.test.ts test/browser-core.test.tspnpm vitest run test/cli-core.test.ts test/cli-routing.test.ts test/cli-smoke.test.ts- live manual validation against the local demo:
errors --mapped --inline-sourcelogscorrelate renders --window 5000diagnose propagation --window 5000
Notes
v0.3.1 does not change the product model introduced in v0.3.0.
It is still correct to position correlate renders and diagnose propagation as high-confidence propagation clues with conservative fallback behavior when evidence is incomplete. The main patch-level improvement is that live runtime failures now surface much more reliably through the normal CLI flow.
vite-browser v0.3.0
vite-browser v0.3.0
Summary
v0.3.0 is the propagation-diagnostics release for vite-browser.
It extends the existing runtime diagnosis model with Vue-first propagation clues that help agents and developers narrow likely store/module -> render -> error/network paths from recent event windows.
Highlights
- added
correlate rendersfor propagation-oriented render/update summaries - added
diagnose propagationfor structuredstore/module -> render -> errorguidance - added browser-side render and store-update collection with Vue-first Pinia support
- added top-level
changedKeysreporting for store mutations - split browser responsibilities into collector, session, framework adapters, and Vite diagnostics modules
- added shared typed event-analysis helpers for correlation and trace logic
- added conservative propagation eval coverage for:
- store -> render -> error
- render -> repeated network work
- inconclusive propagation evidence
- no propagation trace
Validation
Release validation completed with:
pnpm typecheckpnpm testpnpm test:evalspnpm buildpnpm test:evals:e2e
Notes
v0.3.0 improves propagation-path visibility, but it does not claim strict causal proof across arbitrary component graphs. correlate renders and diagnose propagation should be read as high-confidence propagation clues with conservative fallback behavior when evidence is incomplete.
v0.2.0
vite-browser v0.2.0 introduces event-stream-based runtime diagnostics for Vite apps.
Highlights:
- daemon-side event queue for browser/runtime signals
- error/HMR correlation via correlate errors
- rule-based HMR diagnosis via diagnose hmr
- updated skill routing and runtime triage workflows
- expanded test, eval, and E2E coverage
This release is strong at first-pass runtime triage, narrowing likely culprit modules, and surfacing common HMR failure patterns. It does not yet claim full deep propagation tracing across complex component graphs.
vite-browser: runtime diagnostics for Vite apps and AI agents
vite-browser
vite-browser is a debugging CLI and skill pack for Vite applications. It exposes Vue, React, and Svelte runtime state, Vite runtime diagnostics, network activity, console output, screenshots, and mapped error traces as structured shell commands for agents and developers.
Highlights in 0.1.4
- Expanded core test coverage across CLI routing, daemon/client protocol, browser formatting helpers, sourcemap handling, and framework devtools adapters.
- Added direct unit coverage for Vue DevTools, Svelte DevTools, and React DevTools formatting/decode paths.
- Hardened CLI internals by fixing the
open --cookies-jsonflow so it no longer exits early during successful intermediate steps. - Raised engineering quality with coverage thresholds, broader regression coverage, and a fully validated release pipeline.
Validation
pnpm testpnpm test:coveragepnpm test:evals:e2epnpm build
Project Direction
vite-browser is focused on being a practical runtime diagnostics tool for Vite development environments, especially where AI agents need structured access to framework state and Vite-specific debugging signals such as HMR traces, module graph diffs, and source-mapped errors.