@ricsam/browser-mcp 0.3.6 → 0.3.10
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/README.md +42 -2
- package/dist/{chunk-9kd368ja.js → chunk-3f5mve2t.js} +485 -227
- package/dist/main.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Native Chrome companion. Requires Node >=22.14.0 and an installed
|
|
|
4
4
|
Google Chrome. No browser download or startup occurs during npm installation.
|
|
5
5
|
|
|
6
6
|
```sh
|
|
7
|
-
npm install -g @ricsam/browser-mcp
|
|
7
|
+
npm install -g @ricsam/browser-mcp@0.3.10
|
|
8
8
|
browser-mcp browser start --server https://browser-mcp.click --profile work
|
|
9
9
|
browser-mcp browser status --profile work
|
|
10
10
|
browser-mcp browser pause --profile work
|
|
@@ -20,7 +20,7 @@ profile. Profile names cannot contain paths. Your daily-driver profile is never
|
|
|
20
20
|
opened, copied or attached. `--live-view` enables screenshot-based live view
|
|
21
21
|
locally (off by default); remote viewers cannot enable it.
|
|
22
22
|
|
|
23
|
-
Foreground
|
|
23
|
+
Foreground lifecycle: keep the CLI running. Ctrl-C, stop, or normal CLI exit
|
|
24
24
|
closes its Chrome. There is no detach or automatic CDP reattachment. Each launch
|
|
25
25
|
has a fresh instance identity. Relay reconnect does not replay admitted actions.
|
|
26
26
|
Signals received during launch cancel further startup and wait for the bounded
|
|
@@ -28,10 +28,50 @@ Chrome launch (up to 30 seconds) before closing acquired resources. Repeated
|
|
|
28
28
|
signals wait for that same cleanup. Pairing waits are cancelled too. A cleanup
|
|
29
29
|
error is reported after the other safe cleanup stages have been attempted.
|
|
30
30
|
|
|
31
|
+
Chrome runs headed, without `--enable-automation`, `--headless`,
|
|
32
|
+
`--remote-debugging-pipe` or `--remote-debugging-port=0`, so its native
|
|
33
|
+
`navigator.webdriver` stays false (no getter override or stealth script).
|
|
34
|
+
Control uses a fresh nonzero loopback CDP port for each launch. The CLI connects
|
|
35
|
+
only to the endpoint announced by its own Chrome child, never a pre-existing
|
|
36
|
+
browser. This local listener is unauthenticated: other local processes can
|
|
37
|
+
control the profile outside MCP authorization and pause controls. Do not expose
|
|
38
|
+
or forward it; use a trusted host, not an untrusted multi-user machine.
|
|
39
|
+
|
|
31
40
|
Crash locks are deliberately not removed automatically: verify the exact prior
|
|
32
41
|
owner and Chrome processes are stopped before operator recovery. Retained crash
|
|
33
42
|
files are not automatically scavenged. Never remove directories by name prefix.
|
|
34
43
|
|
|
44
|
+
### Multiple browsers
|
|
45
|
+
|
|
46
|
+
Use a different profile for each browser. Repeat `--profile` to launch two or
|
|
47
|
+
more isolated Chrome instances in one foreground command (CLI 0.3.7 or newer):
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
browser-mcp browser start --server https://browser-mcp.click --profile work --profile personal --profile testing
|
|
51
|
+
# From another terminal, control only the chosen browser:
|
|
52
|
+
browser-mcp browser pause --profile work
|
|
53
|
+
browser-mcp browser status --profile personal
|
|
54
|
+
browser-mcp browser stop --profile work
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Each profile has separate sign-ins, pairing credentials, local controls and a
|
|
58
|
+
browser registration in the dashboard. Approve each new profile's labeled link,
|
|
59
|
+
then configure its own MCP URL/token. Closing or stopping one browser leaves the
|
|
60
|
+
others running. Ctrl-C closes all browsers started by that command, and the CLI
|
|
61
|
+
exits after the last browser stops. A launch/runtime failure stops the group and
|
|
62
|
+
waits for cleanup; it never takes over an existing profile.
|
|
63
|
+
|
|
64
|
+
`--server`, `--chrome-path`, `--ephemeral` and `--live-view` apply to all profiles
|
|
65
|
+
in that invocation. With `--ephemeral`, each profile name still identifies its
|
|
66
|
+
pairing and local controls, but its Chrome data is throw-away. Omitting
|
|
67
|
+
`--profile` selects `default`; duplicate profile names are rejected.
|
|
68
|
+
|
|
69
|
+
Alternatively, run separate `browser start` commands with different profiles in
|
|
70
|
+
separate terminals (also supported in 0.3.6). This lets you choose different
|
|
71
|
+
options and independent CLI lifetimes. Never launch two owners of the same
|
|
72
|
+
profile; use `--profile personal` rather than deleting a busy profile's lock.
|
|
73
|
+
Local control and recovery commands accept one profile at a time.
|
|
74
|
+
|
|
35
75
|
### Explicit crash recovery
|
|
36
76
|
|
|
37
77
|
After stopping the prior host and its dedicated Chrome, run:
|