@fusengine/browser-mcp 0.1.6 → 0.1.8
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 +4 -0
- package/dist/bin/cli.js +15 -53
- package/dist/bin/cli.js.map +1 -1
- package/dist/bin/probe-cli.d.ts +5 -0
- package/dist/bin/probe-cli.d.ts.map +1 -0
- package/dist/bin/probe-cli.js +62 -0
- package/dist/bin/probe-cli.js.map +1 -0
- package/dist/bin/serp-batch-cli.d.ts +5 -0
- package/dist/bin/serp-batch-cli.d.ts.map +1 -0
- package/dist/bin/serp-batch-cli.js +31 -0
- package/dist/bin/serp-batch-cli.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,6 +47,10 @@ npx fuse-browser probe 'https://www.booking.com/searchresults.html?ss=Tokyo' \
|
|
|
47
47
|
|
|
48
48
|
# Use the installed Chrome
|
|
49
49
|
npx fuse-browser probe https://example.com --channel chrome
|
|
50
|
+
|
|
51
|
+
# SEO rank tracking across many keywords (one session)
|
|
52
|
+
npx fuse-browser serp-batch "agence web vevey" "création site web lausanne" \
|
|
53
|
+
--rank-domain fusengine.ch --serp-pages 2 --hl fr --gl ch
|
|
50
54
|
```
|
|
51
55
|
|
|
52
56
|
Sensitive actions (`pay`, `book`, `checkout`, `confirm`, …) are **blocked** unless
|
package/dist/bin/cli.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* fuse-browser CLI entry point
|
|
3
|
+
* fuse-browser CLI entry point. Subcommands: `probe`, `serp-batch`.
|
|
4
4
|
* @module bin/cli
|
|
5
5
|
*/
|
|
6
6
|
import { parseArgs } from "node:util";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { GuardrailViolation } from "../lib/errors.js";
|
|
7
|
+
import { runProbeCli } from "./probe-cli.js";
|
|
8
|
+
import { runSerpBatch } from "./serp-batch-cli.js";
|
|
10
9
|
const { positionals, values } = parseArgs({
|
|
11
10
|
allowPositionals: true,
|
|
12
11
|
options: {
|
|
@@ -21,6 +20,9 @@ const { positionals, values } = parseArgs({
|
|
|
21
20
|
"extract-serp": { type: "boolean" },
|
|
22
21
|
"serp-pages": { type: "string" },
|
|
23
22
|
"rank-domain": { type: "string" },
|
|
23
|
+
hl: { type: "string" },
|
|
24
|
+
gl: { type: "string" },
|
|
25
|
+
"delay-ms": { type: "string" },
|
|
24
26
|
"human-mode": { type: "boolean" },
|
|
25
27
|
approved: { type: "boolean" },
|
|
26
28
|
replay: { type: "boolean" },
|
|
@@ -35,56 +37,16 @@ const { positionals, values } = parseArgs({
|
|
|
35
37
|
fill: { type: "string", multiple: true },
|
|
36
38
|
},
|
|
37
39
|
});
|
|
38
|
-
const [command,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
const actions = [];
|
|
44
|
-
for (const item of (values.fill ?? [])) {
|
|
45
|
-
const eq = item.indexOf("=");
|
|
46
|
-
if (eq < 0) {
|
|
47
|
-
process.stderr.write("--fill must be TARGET=VALUE\n");
|
|
48
|
-
process.exit(1);
|
|
49
|
-
}
|
|
50
|
-
actions.push({ type: "fill", target: item.slice(0, eq), value: item.slice(eq + 1) });
|
|
40
|
+
const [command, ...rest] = positionals;
|
|
41
|
+
const opts = values;
|
|
42
|
+
if (command === "serp-batch") {
|
|
43
|
+
await runSerpBatch(rest, opts);
|
|
51
44
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const agent = new BrowserAgent({
|
|
55
|
-
engine: values.engine,
|
|
56
|
-
countryCode: values.country,
|
|
57
|
-
currency: values.currency,
|
|
58
|
-
headless: !values.headed,
|
|
59
|
-
humanMode: Boolean(values["human-mode"]),
|
|
60
|
-
outputDir: values["output-dir"],
|
|
61
|
-
storageStatePath: values["storage-state"],
|
|
62
|
-
proxyUrl: values.proxy,
|
|
63
|
-
proxyMapPath: values["proxy-map"],
|
|
64
|
-
userDataDir: values["user-data-dir"],
|
|
65
|
-
replayEnabled: Boolean(values.replay),
|
|
66
|
-
siteMemoryDir: values["site-memory-dir"],
|
|
67
|
-
});
|
|
68
|
-
try {
|
|
69
|
-
const report = await agent.probe(url, {
|
|
70
|
-
actions,
|
|
71
|
-
humanApproved: Boolean(values.approved),
|
|
72
|
-
autoConsent: Boolean(values["auto-consent"]),
|
|
73
|
-
extractPrices: Boolean(values["extract-prices"]),
|
|
74
|
-
detectChallenges: Boolean(values["detect-challenges"]),
|
|
75
|
-
observeVisual: Boolean(values["observe-visual"]),
|
|
76
|
-
extractSerp: Boolean(values["extract-serp"]),
|
|
77
|
-
serpPages: values["serp-pages"] ? Number(values["serp-pages"]) : undefined,
|
|
78
|
-
rankDomain: values["rank-domain"],
|
|
79
|
-
waitMs: values["wait-ms"] ? Number(values["wait-ms"]) : 0,
|
|
80
|
-
});
|
|
81
|
-
process.stdout.write(`${JSON.stringify(compactReport(report), null, 2)}\n`);
|
|
45
|
+
else if (command === "probe" && rest[0]) {
|
|
46
|
+
await runProbeCli(rest[0], opts);
|
|
82
47
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
process.exit(2);
|
|
87
|
-
}
|
|
88
|
-
throw err;
|
|
48
|
+
else {
|
|
49
|
+
process.stderr.write("usage: fuse-browser probe <url> [...] | fuse-browser serp-batch <query...> --rank-domain <d> [--serp-pages N] [--hl fr] [--gl ch]\n");
|
|
50
|
+
process.exit(1);
|
|
89
51
|
}
|
|
90
52
|
//# sourceMappingURL=cli.js.map
|
package/dist/bin/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/bin/cli.ts"],"names":[],"mappings":";AACA;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/bin/cli.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|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `probe` subcommand handler: run one probe and print the compact report.
|
|
3
|
+
* @module bin/probe-cli
|
|
4
|
+
*/
|
|
5
|
+
import { BrowserAgent } from "../agent/browser-agent.js";
|
|
6
|
+
import { compactReport } from "../agent/compact.js";
|
|
7
|
+
import { GuardrailViolation } from "../lib/errors.js";
|
|
8
|
+
const str = (v) => (typeof v === "string" ? v : undefined);
|
|
9
|
+
function buildActions(values) {
|
|
10
|
+
const actions = [];
|
|
11
|
+
for (const item of values.fill ?? []) {
|
|
12
|
+
const eq = item.indexOf("=");
|
|
13
|
+
if (eq < 0) {
|
|
14
|
+
process.stderr.write("--fill must be TARGET=VALUE\n");
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
actions.push({ type: "fill", target: item.slice(0, eq), value: item.slice(eq + 1) });
|
|
18
|
+
}
|
|
19
|
+
for (const target of values.click ?? [])
|
|
20
|
+
actions.push({ type: "click", target });
|
|
21
|
+
return actions;
|
|
22
|
+
}
|
|
23
|
+
/** Run the `probe` subcommand against `url`. */
|
|
24
|
+
export async function runProbeCli(url, values) {
|
|
25
|
+
const agent = new BrowserAgent({
|
|
26
|
+
engine: str(values.engine),
|
|
27
|
+
countryCode: str(values.country),
|
|
28
|
+
currency: str(values.currency),
|
|
29
|
+
headless: !values.headed,
|
|
30
|
+
humanMode: Boolean(values["human-mode"]),
|
|
31
|
+
outputDir: str(values["output-dir"]),
|
|
32
|
+
storageStatePath: str(values["storage-state"]),
|
|
33
|
+
proxyUrl: str(values.proxy),
|
|
34
|
+
proxyMapPath: str(values["proxy-map"]),
|
|
35
|
+
userDataDir: str(values["user-data-dir"]),
|
|
36
|
+
replayEnabled: Boolean(values.replay),
|
|
37
|
+
siteMemoryDir: str(values["site-memory-dir"]),
|
|
38
|
+
});
|
|
39
|
+
try {
|
|
40
|
+
const report = await agent.probe(url, {
|
|
41
|
+
actions: buildActions(values),
|
|
42
|
+
humanApproved: Boolean(values.approved),
|
|
43
|
+
autoConsent: Boolean(values["auto-consent"]),
|
|
44
|
+
extractPrices: Boolean(values["extract-prices"]),
|
|
45
|
+
detectChallenges: Boolean(values["detect-challenges"]),
|
|
46
|
+
observeVisual: Boolean(values["observe-visual"]),
|
|
47
|
+
extractSerp: Boolean(values["extract-serp"]),
|
|
48
|
+
serpPages: values["serp-pages"] ? Number(values["serp-pages"]) : undefined,
|
|
49
|
+
rankDomain: str(values["rank-domain"]),
|
|
50
|
+
waitMs: values["wait-ms"] ? Number(values["wait-ms"]) : 0,
|
|
51
|
+
});
|
|
52
|
+
process.stdout.write(`${JSON.stringify(compactReport(report), null, 2)}\n`);
|
|
53
|
+
}
|
|
54
|
+
catch (err) {
|
|
55
|
+
if (err instanceof GuardrailViolation) {
|
|
56
|
+
process.stderr.write(`BLOCKED: ${err.message}\n`);
|
|
57
|
+
process.exit(2);
|
|
58
|
+
}
|
|
59
|
+
throw err;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=probe-cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"probe-cli.js","sourceRoot":"","sources":["../../src/bin/probe-cli.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGtD,MAAM,GAAG,GAAG,CAAC,CAAU,EAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAExF,SAAS,YAAY,CAAC,MAAc;IAClC,MAAM,OAAO,GAAoB,EAAE,CAAC;IACpC,KAAK,MAAM,IAAI,IAAK,MAAM,CAAC,IAA6B,IAAI,EAAE,EAAE,CAAC;QAC/D,MA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AAI,GAAG,YAAY,kBAAkB,EAAE,CAAC;YACtC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC;YAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QACD,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serp-batch-cli.d.ts","sourceRoot":"","sources":["../../src/bin/serp-batch-cli.ts"],"names":[],"mappings":"AAQA,KAAK,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAGtC,sDAAsD;AACtD,wBAAsB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAqBnF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `serp-batch` subcommand handler: run several Google searches, print JSON rows.
|
|
3
|
+
* @module bin/serp-batch-cli
|
|
4
|
+
*/
|
|
5
|
+
import { resolveConfig } from "../agent/config.js";
|
|
6
|
+
import { serpBatch } from "../agent/serp-batch.js";
|
|
7
|
+
const str = (v) => (typeof v === "string" ? v : undefined);
|
|
8
|
+
/** Run the `serp-batch` subcommand over `queries`. */
|
|
9
|
+
export async function runSerpBatch(queries, values) {
|
|
10
|
+
if (queries.length === 0) {
|
|
11
|
+
process.stderr.write("serp-batch needs at least one query\n");
|
|
12
|
+
process.exit(1);
|
|
13
|
+
}
|
|
14
|
+
const config = resolveConfig({
|
|
15
|
+
engine: str(values.engine),
|
|
16
|
+
countryCode: str(values.country),
|
|
17
|
+
headless: !values.headed,
|
|
18
|
+
outputDir: str(values["output-dir"]),
|
|
19
|
+
proxyUrl: str(values.proxy),
|
|
20
|
+
});
|
|
21
|
+
const rows = await serpBatch(config, {
|
|
22
|
+
queries,
|
|
23
|
+
rankDomain: str(values["rank-domain"]),
|
|
24
|
+
pages: values["serp-pages"] ? Number(values["serp-pages"]) : undefined,
|
|
25
|
+
hl: str(values.hl),
|
|
26
|
+
gl: str(values.gl),
|
|
27
|
+
delayMs: values["delay-ms"] ? Number(values["delay-ms"]) : undefined,
|
|
28
|
+
});
|
|
29
|
+
process.stdout.write(`${JSON.stringify(rows, null, 2)}\n`);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=serp-batch-cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serp-batch-cli.js","sourceRoot":"","sources":["../../src/bin/serp-batch-cli.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAInD,MAAM,GAAG,GAAG,CAAC,CAAU,EAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAExF,sDAAsD;AACtD,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,OAAiB,EAAE,MAAc;IAClE,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAC;QAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,MAAM,MAAM,GAAG,aAAa,CAAC;QAC3B,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,CAA2B;QACpD,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC;QAChC,QAAQ,EAAE,CAAC,MAAM,CAAC,MAAM;QACxB,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACpC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC;KAC5B,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,MAAM,EAAE;QACnC,OAAO;QACP,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QACtC,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;QACtE,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;QAClB,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;KACrE,CAAC,CAAC;IACH,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;AAC7D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusengine/browser-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "MCP server + CLI giving AI agents a real, stealth browser (Patchright/Playwright) — per-country identity, self-healing actions, snapshots, multi-step plans, structured extraction, CDP attach.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Fusengine",
|