@ricsam/browser-mcp 0.3.4 → 0.3.5
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
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @ricsam/browser-mcp
|
|
2
2
|
|
|
3
|
-
Native Chrome companion
|
|
3
|
+
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
|
-
|
|
8
|
-
|
|
7
|
+
npm install -g @ricsam/browser-mcp
|
|
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
|
|
11
11
|
browser-mcp browser resume --profile work
|
|
@@ -27,11 +27,10 @@ Crash locks are deliberately not removed automatically: verify the exact prior
|
|
|
27
27
|
owner and Chrome processes are stopped before operator recovery. Retained crash
|
|
28
28
|
files are not automatically scavenged. Never remove directories by name prefix.
|
|
29
29
|
|
|
30
|
-
Linux requires a graphical display
|
|
31
|
-
user namespaces or a vendor-supported
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
helpers do not load Playwright or require a display:
|
|
30
|
+
Browser hosting supports Linux and macOS. Linux requires a graphical display
|
|
31
|
+
and working Chrome sandbox (unprivileged user namespaces or a vendor-supported
|
|
32
|
+
sandbox). Windows browser hosting and secure file/secret output are not supported.
|
|
33
|
+
Agent-only helpers do not require Chrome or a display:
|
|
35
34
|
|
|
36
35
|
```sh
|
|
37
36
|
browser-mcp files --help
|
|
@@ -44,7 +43,7 @@ exports require explicit safe output paths; they are never printed to stdout.
|
|
|
44
43
|
Do not source page-derived dotenv as shell code. Capability files are sensitive.
|
|
45
44
|
|
|
46
45
|
Password inputs are masked at observation source, including nested frames.
|
|
47
|
-
|
|
46
|
+
Screenshots/live view, arbitrary JS,
|
|
48
47
|
ordinary page text and hostile scripts are **not** universally redacted. Clipboard
|
|
49
48
|
requires explicit authority and browser permissions; permissions are not silently
|
|
50
49
|
granted. Control-plane and privileged frames are blocked. The runtime is not a
|
|
@@ -4209,7 +4209,7 @@ class Relay {
|
|
|
4209
4209
|
heartbeat.unref();
|
|
4210
4210
|
socket.once("open", () => {
|
|
4211
4211
|
this.state = "authenticating";
|
|
4212
|
-
socket.send(JSON.stringify({ type: "auth", token: this.token, client: { protocol: 3, version: "0.3.
|
|
4212
|
+
socket.send(JSON.stringify({ type: "auth", token: this.token, client: { protocol: 3, version: "0.3.5", 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 } } }));
|
|
4213
4213
|
});
|
|
4214
4214
|
socket.on("message", (bytes, binary) => {
|
|
4215
4215
|
if (binary || Buffer.byteLength(bytes.toString()) > LIMIT) {
|
|
@@ -4980,7 +4980,7 @@ Dedicated Chrome only. Foreground pipe lifecycle: stopping the CLI closes Chrome
|
|
|
4980
4980
|
return;
|
|
4981
4981
|
} else if (cmd !== "status")
|
|
4982
4982
|
throw new Error("Invalid command");
|
|
4983
|
-
socket.end(JSON.stringify({ state: relay.state, paused: relay.paused, instanceId: session.instanceId, profile, version: "0.3.
|
|
4983
|
+
socket.end(JSON.stringify({ state: relay.state, paused: relay.paused, instanceId: session.instanceId, profile, version: "0.3.5", protocol: 3 }) + `
|
|
4984
4984
|
`);
|
|
4985
4985
|
})().catch(() => socket.destroy());
|
|
4986
4986
|
});
|
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.5
|
|
12
12
|
Usage: browser-mcp browser start|status|pause|resume|stop [options]
|
|
13
13
|
browser-mcp files upload|download [options]
|
|
14
14
|
browser-mcp secrets export|exec [options]
|
|
@@ -17,11 +17,11 @@ Browser dependencies load only for browser commands. No automatic Chrome downloa
|
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
if (command === "--version") {
|
|
20
|
-
console.log("0.3.
|
|
20
|
+
console.log("0.3.5");
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
if (command === "browser")
|
|
24
|
-
return (await import("./chunk-
|
|
24
|
+
return (await import("./chunk-jdnp1ajq.js")).runBrowser(args);
|
|
25
25
|
if (command === "files")
|
|
26
26
|
return (await import("./chunk-xgk37h9a.js")).runFilesCommand(args);
|
|
27
27
|
if (command === "secrets")
|