@vibebrowser/mcp 0.2.4 → 0.2.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
@@ -24,7 +24,7 @@ Vibe MCP is the **only solution that allows multiple AI agents to control the sa
24
24
  Claude Desktop Cursor VS Code OpenCode
25
25
  | | | |
26
26
  v v v v
27
- [vibe-mcp] [vibe-mcp] [vibe-mcp] [vibe-mcp]
27
+ [vibebrowser-mcp] [vibebrowser-mcp] [vibebrowser-mcp] [vibebrowser-mcp]
28
28
  | | | |
29
29
  +------------------+----------------+---------------+
30
30
  |
@@ -243,7 +243,7 @@ Claude / Cursor / VS Code (stdio)
243
243
  ```
244
244
 
245
245
  1. AI applications connect via MCP over stdio
246
- 2. `vibebrowser-mcp` (or `vibe-mcp`) connects to the local relay on port `19888`
246
+ 2. `vibebrowser-mcp` connects to the local relay on port `19888`
247
247
  3. The relay forwards commands to the extension on port `19889`
248
248
  4. Results flow back to the agent
249
249
 
@@ -256,12 +256,50 @@ When multiple agents connect, Vibe MCP automatically spawns a relay daemon:
256
256
  - Relay multiplexes all agent requests to the single extension connection
257
257
  - Each agent receives only its own responses
258
258
 
259
+ ### Cloud OpenClaw -> Local Browser
260
+
261
+ If your agent runs in the cloud but you want it to control the user's real local browser, run `vibebrowser-mcp` in HTTP mode and connect it to the Vibe extension in remote relay mode.
262
+
263
+ ```bash
264
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp start --transport http --remote <extension-uuid>
265
+ ```
266
+
267
+ This exposes a local MCP endpoint at `http://127.0.0.1:8788/mcp` by default.
268
+
269
+ You can print the exact OpenClaw-friendly setup with:
270
+
271
+ ```bash
272
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp openclaw --remote <extension-uuid>
273
+ ```
274
+
275
+ For the full walkthrough, see `docs/openclaw-local-browser.md`.
276
+
277
+ ### OpenClaw-Compatible Browser CLI
278
+
279
+ `vibebrowser-cli` mirrors the OpenClaw browser CLI shape for the real local-browser path:
280
+
281
+ ```bash
282
+ npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> status
283
+ npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> tabs
284
+ npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> open https://example.com
285
+ npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> snapshot
286
+ npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> click 12
287
+ npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> type 23 "hello" --submit
288
+ ```
289
+
290
+ The package now exposes two executables:
291
+
292
+ - `vibebrowser-mcp` for MCP server, HTTP bridge, and helper commands
293
+ - `vibebrowser-cli` for OpenClaw-inspired browser control against the real Vibe-connected session
294
+
295
+ `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
+
259
297
  ## Local LLM: `serve` Command
260
298
 
261
299
  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.
262
300
 
263
301
  ```bash
264
- npx @vibebrowser/mcp serve qwen3.5
302
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp serve qwen3.5
265
303
  ```
266
304
 
267
305
  That's it. Works on **macOS**, **Linux**, and **Windows**.
@@ -276,16 +314,16 @@ That's it. Works on **macOS**, **Linux**, and **Windows**.
276
314
  ### Recommended models
277
315
 
278
316
  ```bash
279
- npx @vibebrowser/mcp serve qwen3.5 # Best overall for agentic tasks
280
- npx @vibebrowser/mcp serve llama4 # Strong general reasoning
281
- npx @vibebrowser/mcp serve deepseek-r1 # Reasoning chains
282
- npx @vibebrowser/mcp serve mistral # Lightweight & fast (7B)
317
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp serve qwen3.5 # Best overall for agentic tasks
318
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp serve llama4 # Strong general reasoning
319
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp serve deepseek-r1 # Reasoning chains
320
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp serve mistral # Lightweight & fast (7B)
283
321
  ```
284
322
 
285
323
  ### Options
286
324
 
287
325
  ```bash
288
- npx @vibebrowser/mcp serve <model> [options]
326
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp serve <model> [options]
289
327
 
290
328
  Options:
291
329
  -p, --port <number> Ollama API port (default: 11434)
@@ -304,15 +342,33 @@ The extension connects to `http://localhost:11434/v1` automatically.
304
342
  ## CLI Options
305
343
 
306
344
  ```bash
307
- npx @vibebrowser/mcp --help
345
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp --help
346
+ npx -y --package @vibebrowser/mcp vibebrowser-cli --help
308
347
 
309
348
  # MCP server (default)
310
- npx @vibebrowser/mcp [start] [options]
349
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp [start] [options]
311
350
  -p, --port <number> WebSocket port for local relay (agent) connection (default: 19888)
312
351
  -d, --debug Enable debug logging
352
+ --transport <mode> MCP transport to expose: stdio or http (default: stdio)
353
+ --host <host> Host to bind the HTTP server to (default: 127.0.0.1)
354
+ --http-port <number> Port for streamable HTTP MCP transport (default: 8788)
355
+ --http-path <path> Path for streamable HTTP MCP transport (default: /mcp)
356
+ --allow-host <host> Allowed host header for HTTP transport (repeatable)
357
+ -r, --remote <uuid> Connect to a remote extension via public relay
358
+ --relay-url <url> Custom relay server URL
359
+
360
+ # OpenClaw helper
361
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp openclaw --remote <extension-uuid>
362
+
363
+ # OpenClaw-compatible browser CLI
364
+ npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> status
365
+ npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> tabs
366
+ npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> snapshot --json
367
+ npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> click 12
368
+ npx -y --package @vibebrowser/mcp vibebrowser-cli --remote <extension-uuid> type 23 "hello" --submit
313
369
 
314
370
  # Local LLM server
315
- npx @vibebrowser/mcp serve <model> [options]
371
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp serve <model> [options]
316
372
  -p, --port <number> Ollama API port (default: 11434)
317
373
  -y, --yes Skip confirmation prompts
318
374
  -d, --debug Enable debug logging
@@ -326,6 +382,13 @@ npx @vibebrowser/mcp serve <model> [options]
326
382
  2. Click the extension icon and enable "MCP External Control" in Settings
327
383
  3. Check that no firewall is blocking localhost connections
328
384
 
385
+ ### "OpenClaw cannot reach my local browser bridge"
386
+
387
+ 1. Start `vibebrowser-mcp` in HTTP mode instead of stdio
388
+ 2. Make sure the bridge process is still running on the user's machine
389
+ 3. Confirm the extension is in `Remote` mode and connected
390
+ 4. Verify the MCP URL in OpenClaw matches the bridge URL, usually `http://127.0.0.1:8788/mcp`
391
+
329
392
  ### Debug mode
330
393
 
331
394
  Enable debug logging to diagnose issues:
@@ -335,7 +398,7 @@ Enable debug logging to diagnose issues:
335
398
  "mcpServers": {
336
399
  "vibe": {
337
400
  "command": "npx",
338
- "args": ["-y", "@vibebrowser/mcp", "--debug"]
401
+ "args": ["-y", "--package", "@vibebrowser/mcp", "vibebrowser-mcp", "--debug"]
339
402
  }
340
403
  }
341
404
  }
@@ -0,0 +1,4 @@
1
+ import { Command } from 'commander';
2
+ export declare function registerBrowserCommand(program: Command): void;
3
+ export declare function registerStandaloneBrowserCli(program: Command): void;
4
+ //# sourceMappingURL=browser-cli.d.ts.map
@@ -0,0 +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;AAsEpC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAK7D;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAGnE"}