@raultov/browser-control-mcp 0.2.0-beta.1 → 0.2.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,24 @@ from a copy of its code: entries describe the differences from that release.
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
+ ## [0.2.0-beta.2] - 2026-10-14
14
+
15
+ Public **BETA**. Firefox debugger internals only; tool replies are the same
16
+ as in 0.2.0-beta.1.
17
+
18
+ ### Changed
19
+
20
+ - `bidi-browser-lite` 0.1.5 (`bidi-lite` 0.1.3). Firefox tabs are attached to
21
+ their debugger with `Debugger::attach_to_context`: Firefox's Remote Agent
22
+ maps each BiDi context to its RDP tab, replacing the match by position in
23
+ the tab lists. Tabs on the same URL, several windows and error pages are
24
+ told apart, and a debugger tool never activates a tab any more (a tab
25
+ Firefox cannot map is an error, not a guess).
26
+ - Firefox `set_breakpoint` uses bidi-lite's `set_breakpoint_resolved`: the
27
+ bound column comes from the library (every inline script with the URL is
28
+ searched). A column-less breakpoint for a script not loaded yet fails with
29
+ an argument error asking for `column_number`, as before.
30
+
13
31
  ## [0.2.0-beta.1] - 2026-10-13
14
32
 
15
33
  Public **BETA**. Chrome and Firefox now answer the same replies; several are
package/README.md CHANGED
@@ -11,7 +11,7 @@ It is the successor of
11
11
  from a copy of its code) and complements Playwright MCP or
12
12
  chrome-devtools-mcp with runtime JavaScript debugging on both browsers.
13
13
 
14
- > **Status: BETA (0.2.0-beta.1).** This version contains known bugs and differences
14
+ > **Status: BETA (0.2.0-beta.2).** This version contains known bugs and differences
15
15
  > between Chrome and Firefox (see [Limitations and TODO](#limitations-and-todo))
16
16
  > and parts that have not been verified (see [Untested](#untested)). Tool
17
17
  > replies may change in incompatible ways before 1.0. Please report problems
@@ -83,11 +83,11 @@ warnings, CSS warnings, platform messages), in the same shapes as Chrome.
83
83
  Each tab's debugger watches them: the session's first tabs are attached when
84
84
  the session starts and `open_tab` attaches its tab before loading the URL; a
85
85
  tab the page opened is attached by the first `get_console_logs` or
86
- `get_network_logs` on it. Tabs are matched by their position in BiDi's and
87
- RDP's tab lists (checked against their URLs), never by activating them; a
88
- tab that cannot be matched that way (tabs opening or closing at that moment)
89
- is attached by its first debugger tool, which brings it to the front. Frames
90
- are captured from the moment a tab is attached.
86
+ `get_network_logs` on it. Firefox itself says which RDP tab shows a BiDi
87
+ tab (its Remote Agent maps the BiDi context to the tab's `browserId`), so
88
+ tabs on the same URL, several windows and error pages are told apart, and a
89
+ tab is never activated or brought to the front to attach it. Frames are
90
+ captured from the moment a tab is attached.
91
91
 
92
92
  ## 📦 Installation
93
93
 
@@ -384,8 +384,10 @@ Both browsers answer the same replies, with 0-based lines everywhere:
384
384
  Breakpoint ids are per tab and MCP-level (`bp-1`, `bp-2`...), like tab ids.
385
385
 
386
386
  Chrome also offers `pause_on_load` (pause on the first statement of the next
387
- load). Firefox notes: breakpoints by URL only; the column is snapped to the
388
- nearest breakable position automatically; the debugger needs the RDP port.
387
+ load). Firefox notes: breakpoints by URL only; without `column_number` the
388
+ breakpoint binds to the first breakable column of the line, in whichever of
389
+ the page's scripts with that URL has one (inline `<script>` blocks share the
390
+ page's URL), and needs the script loaded; the debugger needs the RDP port.
389
391
 
390
392
  ## Migration from chrome-debug-mcp
391
393
 
@@ -451,12 +453,9 @@ incompatible:
451
453
  - Firefox: after a lost connection a launched Firefox gets a new session on
452
454
  the next tool call; an attached Firefox keeps its orphan session, so
453
455
  restart that Firefox.
454
- - Firefox debugger: a tab is matched to its debugger by its position in
455
- BiDi's and RDP's tab lists, checked against the tabs' web URLs; tabs
456
- showing no web page (`about:blank`, error pages) cannot be checked, so a
457
- tab opening or closing elsewhere at that very moment could still bind the
458
- debugger to the wrong page. When the lists differ the debugger attaches by
459
- activating the tab, as before.
456
+ - Firefox debugger: tabs are mapped to the debugger through Firefox's Remote
457
+ Agent (verified on Firefox 157 only); a Firefox without it answers the
458
+ debugger tools with an error instead of guessing a tab.
460
459
  - `get_network_logs` with response bodies has no total size limit (each
461
460
  Firefox body is capped at 2 MB): use `url_filter` on busy pages.
462
461
  - The Docker image is amd64 only.
@@ -19,7 +19,7 @@
19
19
  "hasInstallScript": true,
20
20
  "license": "MIT",
21
21
  "name": "@raultov/browser-control-mcp",
22
- "version": "0.2.0-beta.1"
22
+ "version": "0.2.0-beta.2"
23
23
  },
24
24
  "node_modules/detect-libc": {
25
25
  "engines": {
@@ -48,5 +48,5 @@
48
48
  }
49
49
  },
50
50
  "requires": true,
51
- "version": "0.2.0-beta.1"
51
+ "version": "0.2.0-beta.2"
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/raultov/browser-control-mcp/releases/download/v0.2.0-beta.1"
3
+ "https://github.com/raultov/browser-control-mcp/releases/download/v0.2.0-beta.2"
4
4
  ],
5
5
  "author": "raultov <raultov@protonmail.com>",
6
6
  "bin": {
@@ -92,7 +92,7 @@
92
92
  "zipExt": ".tar.xz"
93
93
  }
94
94
  },
95
- "version": "0.2.0-beta.1",
95
+ "version": "0.2.0-beta.2",
96
96
  "volta": {
97
97
  "node": "18.14.1",
98
98
  "npm": "9.5.0"