Repository navigation
Wirebrowser 0.8.1 — MCP server for AI agents
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_scriptsaves 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.1only, requires a bearer token, rejects foreignHost/Originheaders
🪝 Hooks
- Hooks work on inline
<script>s: lines and columns are relative to the HTML document, as in the Sources tab colis now optional: without it, the hook targets the function that starts online- Wrong locations fail with a clear error instead of silently hooking a different function
- Hook results include the
locationof the hook - Scripts without a URL (eval,
new Function, injected code) are listed in Sources asscriptId://<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
nullvalues withincludeValues
📚 Docs
- README: new "AI Agents (MCP)" section
- Scripting API reference updated (optional
col, document-relative lines,scriptId://URLs,locationin hook results)