@ricsam/browser-mcp 0.3.11 → 0.3.12
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 +10 -1
- package/dist/{chunk-hqk1x668.js → chunk-vfx8ntjb.js} +4 -3
- package/dist/main.js +3 -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@0.3.
|
|
7
|
+
npm install -g @ricsam/browser-mcp@0.3.12
|
|
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
|
|
@@ -28,6 +28,15 @@ 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
|
+
Every Chrome launch enables WebMCP by default, equivalent to setting
|
|
32
|
+
`chrome://flags/#enable-webmcp-testing` to **Enabled**. The launcher passes
|
|
33
|
+
`--enable-features=WebMCP,WebMCPTesting,DevToolsWebMCPSupport` to support current
|
|
34
|
+
and earlier Chrome feature names, including the older DevTools protocol gate.
|
|
35
|
+
This applies to persistent, ephemeral and multi-profile browsers. Restart the
|
|
36
|
+
CLI/browser after updating to pick it up; no manual flag or profile edit is
|
|
37
|
+
needed. WebMCP still requires a supporting Chrome version and a site that
|
|
38
|
+
registers tools; it does not automatically invoke tools or grant permissions.
|
|
39
|
+
|
|
31
40
|
Chrome runs headed, without `--enable-automation`, `--headless`,
|
|
32
41
|
`--remote-debugging-pipe` or `--remote-debugging-port=0`, so its native
|
|
33
42
|
`navigator.webdriver` stays false (no getter override or stealth script).
|
|
@@ -54,7 +54,7 @@ function onceAsync(action) {
|
|
|
54
54
|
// cli/src/browser/owned-chrome.ts
|
|
55
55
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
56
56
|
// cli/package.json
|
|
57
|
-
var version = "0.3.
|
|
57
|
+
var version = "0.3.12";
|
|
58
58
|
|
|
59
59
|
// cli/src/browser/chrome-diagnostics.ts
|
|
60
60
|
import { constants } from "node:fs";
|
|
@@ -482,6 +482,7 @@ function ownedChromeArgs(profile, port) {
|
|
|
482
482
|
`--remote-debugging-port=${port}`,
|
|
483
483
|
"--no-first-run",
|
|
484
484
|
"--no-default-browser-check",
|
|
485
|
+
"--enable-features=WebMCP,WebMCPTesting,DevToolsWebMCPSupport",
|
|
485
486
|
"--disable-extensions",
|
|
486
487
|
"--disable-component-extensions-with-background-pages",
|
|
487
488
|
"--disable-sync",
|
|
@@ -5219,7 +5220,7 @@ class Relay {
|
|
|
5219
5220
|
heartbeat.unref();
|
|
5220
5221
|
socket.once("open", () => {
|
|
5221
5222
|
this.state = "authenticating";
|
|
5222
|
-
socket.send(JSON.stringify({ type: "auth", token: this.token, client: { protocol: 3, version: "0.3.
|
|
5223
|
+
socket.send(JSON.stringify({ type: "auth", token: this.token, client: { protocol: 3, version: "0.3.12", instanceId: this.runtime.instanceId, operations: [...BROWSER_OPERATIONS, ...this.runtime.plugins.flatMap((p) => p.operations), "session_end", "release_tab"], capabilities: ["browser-controls.v1", "screenshot-ids.v1", "webmcp.page-context.v1", "clipboard.native.v1", "native-transfers.v1", "secrets.v1", "forwarding.v1", "live-view.v1"], liveView: { enabled: this.liveEnabled } } }));
|
|
5223
5224
|
});
|
|
5224
5225
|
socket.on("message", (bytes, binary) => {
|
|
5225
5226
|
if (binary || Buffer.byteLength(bytes.toString()) > LIMIT) {
|
|
@@ -6083,7 +6084,7 @@ async function startProfile(root, server, profile, options, groupSignal) {
|
|
|
6083
6084
|
return;
|
|
6084
6085
|
} else if (cmd !== "status")
|
|
6085
6086
|
throw new Error("Invalid command");
|
|
6086
|
-
socket.end(JSON.stringify({ state: relay.state, paused: relay.paused, instanceId: session.instanceId, profile, version: "0.3.
|
|
6087
|
+
socket.end(JSON.stringify({ state: relay.state, paused: relay.paused, instanceId: session.instanceId, profile, version: "0.3.12", protocol: 3 }) + `
|
|
6087
6088
|
`);
|
|
6088
6089
|
})().catch(() => socket.destroy());
|
|
6089
6090
|
});
|
package/dist/main.js
CHANGED
|
@@ -8,7 +8,7 @@ var args = process.argv.slice(2);
|
|
|
8
8
|
var command = args.shift();
|
|
9
9
|
async function main() {
|
|
10
10
|
if (!command || command === "--help" || command === "help") {
|
|
11
|
-
console.log(`@ricsam/browser-mcp 0.3.
|
|
11
|
+
console.log(`@ricsam/browser-mcp 0.3.12
|
|
12
12
|
Usage: browser-mcp browser start|status|pause|resume|stop|recover [options]
|
|
13
13
|
browser-mcp files upload|download [options]
|
|
14
14
|
browser-mcp secrets export|exec [options]
|
|
@@ -18,11 +18,11 @@ Browser dependencies load only for browser commands. No automatic Chrome downloa
|
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
20
|
if (command === "--version") {
|
|
21
|
-
console.log("0.3.
|
|
21
|
+
console.log("0.3.12");
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
24
|
if (command === "browser")
|
|
25
|
-
return (await import("./chunk-
|
|
25
|
+
return (await import("./chunk-vfx8ntjb.js")).runBrowser(args);
|
|
26
26
|
if (command === "files")
|
|
27
27
|
return (await import("./chunk-xgk37h9a.js")).runFilesCommand(args);
|
|
28
28
|
if (command === "secrets")
|