@vibebrowser/mcp 0.2.5 → 0.2.6
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 +47 -0
- package/dist/browser-cli.d.ts.map +1 -1
- package/dist/browser-cli.js +493 -369
- package/dist/browser-cli.js.map +1 -1
- package/dist/cli.js +2 -0
- package/dist/cli.js.map +1 -1
- package/dist/connection.d.ts +14 -7
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +108 -20
- package/dist/connection.js.map +1 -1
- package/dist/relay.d.ts +11 -3
- package/dist/relay.d.ts.map +1 -1
- package/dist/relay.js +238 -78
- package/dist/relay.js.map +1 -1
- package/dist/server.d.ts +4 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +185 -4
- package/dist/server.js.map +1 -1
- package/dist/types.d.ts +14 -10
- package/dist/types.d.ts.map +1 -1
- package/docs/eval.md +101 -16
- package/docs/openclaw-local-browser.md +111 -20
- package/openclaw/{vibe-local-browser → vibebrowser}/SKILL.md +22 -1
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -279,6 +279,7 @@ For the full walkthrough, see `docs/openclaw-local-browser.md`.
|
|
|
279
279
|
`vibebrowser-cli` mirrors the OpenClaw browser CLI shape for the real local-browser path:
|
|
280
280
|
|
|
281
281
|
```bash
|
|
282
|
+
npx -y --package @vibebrowser/mcp vibebrowser-cli sessions
|
|
282
283
|
npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> status
|
|
283
284
|
npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> tabs
|
|
284
285
|
npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> open https://example.com
|
|
@@ -294,6 +295,52 @@ The package now exposes two executables:
|
|
|
294
295
|
|
|
295
296
|
`vibebrowser-cli` accepts the OpenClaw-style `--browser-profile` flag for compatibility and supports `--json` for machine-readable output. Unlike OpenClaw's managed `openclaw` browser profile, this CLI always targets the real Vibe-connected browser session.
|
|
296
297
|
|
|
298
|
+
Local-session selection:
|
|
299
|
+
|
|
300
|
+
- `vibebrowser-cli sessions` lists connected local browser sessions.
|
|
301
|
+
- `vibebrowser-cli --session <id> ...` targets a specific local session.
|
|
302
|
+
- If `--session` is omitted in local mode, the CLI uses the first connected session.
|
|
303
|
+
- In remote mode, `--remote <extension-uuid>` remains the explicit browser selector.
|
|
304
|
+
|
|
305
|
+
Snapshot behavior is tool-only (no legacy snapshot RPC shortcut):
|
|
306
|
+
|
|
307
|
+
- `snapshot` (default) resolves via `take_md_snapshot`
|
|
308
|
+
- `snapshot --format aria` resolves via `take_a11y_snapshot`
|
|
309
|
+
|
|
310
|
+
This keeps CLI behavior aligned with extension-supported tools and ensures page targeting works consistently with `--page-id`/`--pageId`.
|
|
311
|
+
|
|
312
|
+
For navigation-style operations, responses now include page content when page state changes:
|
|
313
|
+
|
|
314
|
+
- CLI `open` / `navigate` include `pageContent` in JSON output.
|
|
315
|
+
- MCP tool calls for navigation-style tools return text content that includes current page state (with snapshot fallback when needed).
|
|
316
|
+
|
|
317
|
+
### OpenClaw Integration
|
|
318
|
+
|
|
319
|
+
There are two ways to use Vibe with OpenClaw:
|
|
320
|
+
|
|
321
|
+
**Option A: Cloud OpenClaw controlling local browser**
|
|
322
|
+
|
|
323
|
+
If OpenClaw runs in the cloud but you want it to control your local browser:
|
|
324
|
+
|
|
325
|
+
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>`
|
|
327
|
+
3. Register the MCP URL in OpenClaw
|
|
328
|
+
|
|
329
|
+
**Option B: OpenClaw skill for local agents**
|
|
330
|
+
|
|
331
|
+
For OpenClaw agents that need your real browser context (logged-in sessions, existing tabs):
|
|
332
|
+
|
|
333
|
+
1. Copy the Vibe skill from this package to your OpenClaw skills folder
|
|
334
|
+
2. Set `VIBE_EXTENSION_UUID` environment variable
|
|
335
|
+
3. Use `vibebrowser-cli` commands in your agent prompts
|
|
336
|
+
|
|
337
|
+
The skill is located at [`openclaw/vibebrowser/SKILL.md`](openclaw/vibebrowser/SKILL.md) and provides:
|
|
338
|
+
- Full OpenClaw-compatible CLI commands (`status`, `tabs`, `snapshot`, `click`, `type`, etc.)
|
|
339
|
+
- `--json` output for machine parsing
|
|
340
|
+
- Environment-based configuration
|
|
341
|
+
|
|
342
|
+
See [docs/openclaw-local-browser.md](docs/openclaw-local-browser.md) for the complete walkthrough.
|
|
343
|
+
|
|
297
344
|
## Local LLM: `serve` Command
|
|
298
345
|
|
|
299
346
|
Run a local LLM with one command — no cloud API keys required. Automatically installs [Ollama](https://ollama.com), downloads the model, and starts serving an OpenAI-compatible API.
|
|
@@ -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;AA+EpC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAK7D;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAGnE"}
|