Skip to content

Wirebrowser 0.8.1 — MCP server for AI agents

Choose a tag to compare

@fcavallarin fcavallarin released this 17 Nov 16:42
· 8 commits to main since this release
510cb4c

Wirebrowser 0.8.1

This release makes Wirebrowser usable by AI coding agents, and improves hooks on real-world pages.

🤖 MCP server for AI agents

Wirebrowser now includes an MCP server, so agents like Claude Code can use its runtime instrumentation directly.

  • Tools: list_pages, navigate, evaluate, search_sources, get_source_window, run_with_hooks, save_hooks_script, search_live_objects, origin_trace
  • Agents can find code in the loaded sources, hook functions (even inside closures), read and override arguments and return values, inspect live objects and trace where a value is created
  • save_hooks_script saves the hooks an agent verified as a Node Script, ready to re-run and edit from Automation → Node Scripts
  • Setup: Settings → Application → MCP server → enable, then copy the claude mcp add … command shown there
  • Security: disabled by default, listens on 127.0.0.1 only, requires a bearer token, rejects foreign Host / Origin headers

🪝 Hooks

  • Hooks work on inline <script>s: lines and columns are relative to the HTML document, as in the Sources tab
  • col is now optional: without it, the hook targets the function that starts on line
  • Wrong locations fail with a clear error instead of silently hooking a different function
  • Hook results include the location of the hook
  • Scripts without a URL (eval, new Function, injected code) are listed in Sources as scriptId://<id> and can be hooked
  • Code evaluated by Wirebrowser itself no longer shows up in Sources

🐛 Fixes

  • Origin Trace: stopping a scan that was armed but not started left a click breakpoint active
  • Origin Trace: stopping with no scan running raised an error in the main process
  • Hooks: a failed start (e.g. wrong file) left stale state behind, duplicating hooks on retry
  • Sources: an error while loading a script left the debugger enabled
  • Debugger: an error in a hook handler could stall the processing of later breakpoints
  • Vendor script blackboxing: URL patterns were not escaped
  • Object similarity: malformed token for null values with includeValues

📚 Docs

  • README: new "AI Agents (MCP)" section
  • Scripting API reference updated (optional col, document-relative lines, scriptId:// URLs, location in hook results)