@vibebrowser/mcp 0.2.6 → 0.2.7
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 +26 -5
- package/dist/browser-cli.d.ts.map +1 -1
- package/dist/browser-cli.js +343 -58
- package/dist/browser-cli.js.map +1 -1
- package/dist/browser-main.js +1 -0
- package/dist/browser-main.js.map +1 -1
- package/dist/cli.js +50 -4
- package/dist/cli.js.map +1 -1
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +0 -3
- package/dist/connection.js.map +1 -1
- package/dist/devtools-fallback.d.ts +22 -0
- package/dist/devtools-fallback.d.ts.map +1 -0
- package/dist/devtools-fallback.js +172 -0
- package/dist/devtools-fallback.js.map +1 -0
- package/dist/relay.d.ts +12 -0
- package/dist/relay.d.ts.map +1 -1
- package/dist/relay.js +233 -48
- package/dist/relay.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +67 -12
- package/dist/server.js.map +1 -1
- package/dist/types.d.ts +13 -0
- package/dist/types.d.ts.map +1 -1
- package/docs/chrome-devtools-relay.md +7 -0
- package/docs/openclaw-local-browser.md +11 -1
- package/openclaw/vibebrowser/SKILL.md +70 -4
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -47,6 +47,7 @@ Claude Desktop Cursor VS Code OpenCode
|
|
|
47
47
|
- **Fast & Local** - Automation happens on your machine, no cloud latency
|
|
48
48
|
- **Private** - Your browsing data never leaves your device
|
|
49
49
|
- **Stable** - Content script based, no flaky CDP connections
|
|
50
|
+
- **Chrome DevTools Fallback** - Extension tools stay primary by default; use `--devtools` to force chrome-devtools-only mode
|
|
50
51
|
|
|
51
52
|
## Quick Start
|
|
52
53
|
|
|
@@ -210,6 +211,15 @@ Add to your Codex configuration:
|
|
|
210
211
|
3. Go to Settings and enable "MCP External Control"
|
|
211
212
|
4. The status should show "Connected"
|
|
212
213
|
|
|
214
|
+
If the extension is not connected, `vibebrowser-mcp` can optionally fall back to
|
|
215
|
+
`chrome-devtools-mcp` (started in `--autoConnect` mode) when that package is installed.
|
|
216
|
+
This fallback runs once in the shared local relay daemon (multi-agent safe), so
|
|
217
|
+
both `vibebrowser-mcp` and `vibebrowser-cli` use the same backend instance.
|
|
218
|
+
When extension is connected, extension tools are authoritative. Chrome DevTools
|
|
219
|
+
fallback tools are exposed only when extension is unavailable/disconnected.
|
|
220
|
+
Pass `--devtools` to either CLI to bypass relay/extension routing and use only
|
|
221
|
+
the chrome-devtools backend.
|
|
222
|
+
|
|
213
223
|
## Available Tools
|
|
214
224
|
|
|
215
225
|
| Tool | Description |
|
|
@@ -266,6 +276,12 @@ npx -y --package @vibebrowser/mcp vibebrowser-mcp start --transport http --remot
|
|
|
266
276
|
|
|
267
277
|
This exposes a local MCP endpoint at `http://127.0.0.1:8788/mcp` by default.
|
|
268
278
|
|
|
279
|
+
When OpenClaw runs on a different machine (for example cloud-hosted), provide a reachable URL:
|
|
280
|
+
|
|
281
|
+
```bash
|
|
282
|
+
npx -y --package @vibebrowser/mcp vibebrowser-mcp openclaw --remote <extension-uuid> --public-url https://<reachable-host>/mcp
|
|
283
|
+
```
|
|
284
|
+
|
|
269
285
|
You can print the exact OpenClaw-friendly setup with:
|
|
270
286
|
|
|
271
287
|
```bash
|
|
@@ -286,6 +302,7 @@ npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> open
|
|
|
286
302
|
npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> snapshot
|
|
287
303
|
npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> click 12
|
|
288
304
|
npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> type 23 "hello" --submit
|
|
305
|
+
npx -y --package @vibebrowser/mcp vibebrowser-cli --devtools status
|
|
289
306
|
```
|
|
290
307
|
|
|
291
308
|
The package now exposes two executables:
|
|
@@ -304,8 +321,8 @@ Local-session selection:
|
|
|
304
321
|
|
|
305
322
|
Snapshot behavior is tool-only (no legacy snapshot RPC shortcut):
|
|
306
323
|
|
|
307
|
-
- `snapshot` (default) resolves via `take_md_snapshot`
|
|
308
|
-
- `snapshot --format aria` resolves via `take_a11y_snapshot`
|
|
324
|
+
- `snapshot` (default, `--format ai`) resolves via `take_md_snapshot` — uses the content script's in-page markdown extractor. Fast and readable, but **may return empty for background tabs or complex SPAs** (Notion, Gmail) where the content script is unreachable or layout is not computed.
|
|
325
|
+
- `snapshot --format aria` resolves via `take_a11y_snapshot` — uses Chrome DevTools Protocol `Accessibility.getFullAXTree` directly. **Reliable for all tabs including background tabs and SPAs.** Use this as a fallback when the default format returns empty or only a page title.
|
|
309
326
|
|
|
310
327
|
This keeps CLI behavior aligned with extension-supported tools and ensures page targeting works consistently with `--page-id`/`--pageId`.
|
|
311
328
|
|
|
@@ -323,7 +340,7 @@ There are two ways to use Vibe with OpenClaw:
|
|
|
323
340
|
If OpenClaw runs in the cloud but you want it to control your local browser:
|
|
324
341
|
|
|
325
342
|
1. Install the Vibe extension and enable **Remote** mode (see [docs/openclaw-local-browser.md](docs/openclaw-local-browser.md))
|
|
326
|
-
2. Start the local HTTP bridge: `vibebrowser-mcp openclaw --remote <extension-uuid
|
|
343
|
+
2. Start the local HTTP bridge: `vibebrowser-mcp openclaw --remote <extension-uuid> [--public-url <url>]`
|
|
327
344
|
3. Register the MCP URL in OpenClaw
|
|
328
345
|
|
|
329
346
|
**Option B: OpenClaw skill for local agents**
|
|
@@ -336,6 +353,7 @@ For OpenClaw agents that need your real browser context (logged-in sessions, exi
|
|
|
336
353
|
|
|
337
354
|
The skill is located at [`openclaw/vibebrowser/SKILL.md`](openclaw/vibebrowser/SKILL.md) and provides:
|
|
338
355
|
- Full OpenClaw-compatible CLI commands (`status`, `tabs`, `snapshot`, `click`, `type`, etc.)
|
|
356
|
+
- Fallback-safe commands for DevTools-backed flows (`resize`, `upload`, `dialog`)
|
|
339
357
|
- `--json` output for machine parsing
|
|
340
358
|
- Environment-based configuration
|
|
341
359
|
|
|
@@ -402,17 +420,20 @@ npx -y --package @vibebrowser/mcp vibebrowser-mcp [start] [options]
|
|
|
402
420
|
--http-path <path> Path for streamable HTTP MCP transport (default: /mcp)
|
|
403
421
|
--allow-host <host> Allowed host header for HTTP transport (repeatable)
|
|
404
422
|
-r, --remote <uuid> Connect to a remote extension via public relay
|
|
423
|
+
--devtools Use only chrome-devtools backend (bypasses extension relay)
|
|
405
424
|
--relay-url <url> Custom relay server URL
|
|
406
425
|
|
|
407
426
|
# OpenClaw helper
|
|
408
|
-
npx -y --package @vibebrowser/mcp vibebrowser-mcp openclaw --remote <extension-uuid>
|
|
427
|
+
npx -y --package @vibebrowser/mcp vibebrowser-mcp openclaw --remote <extension-uuid> [--public-url <url>]
|
|
409
428
|
|
|
410
429
|
# OpenClaw-compatible browser CLI
|
|
411
430
|
npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> status
|
|
431
|
+
npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> status --wait-for-extension --wait-timeout 10000
|
|
412
432
|
npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> tabs
|
|
413
433
|
npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> snapshot --json
|
|
414
434
|
npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> click 12
|
|
415
435
|
npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> type 23 "hello" --submit
|
|
436
|
+
npx -y --package @vibebrowser/mcp vibebrowser-cli --devtools tabs
|
|
416
437
|
|
|
417
438
|
# Local LLM server
|
|
418
439
|
npx -y --package @vibebrowser/mcp vibebrowser-mcp serve <model> [options]
|
|
@@ -434,7 +455,7 @@ npx -y --package @vibebrowser/mcp vibebrowser-mcp serve <model> [options]
|
|
|
434
455
|
1. Start `vibebrowser-mcp` in HTTP mode instead of stdio
|
|
435
456
|
2. Make sure the bridge process is still running on the user's machine
|
|
436
457
|
3. Confirm the extension is in `Remote` mode and connected
|
|
437
|
-
4. Verify the MCP URL in OpenClaw matches the bridge URL,
|
|
458
|
+
4. Verify the MCP URL in OpenClaw matches the bridge URL. If OpenClaw is cloud-hosted, do not use `127.0.0.1`; use `openclaw --public-url` with a reachable host.
|
|
438
459
|
|
|
439
460
|
### Debug mode
|
|
440
461
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-cli.d.ts","sourceRoot":"","sources":["../src/browser-cli.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"browser-cli.d.ts","sourceRoot":"","sources":["../src/browser-cli.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmGpC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAK7D;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAGnE"}
|