@vibebrowser/mcp 0.2.3 → 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,15 +256,122 @@ 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
- ## CLI Options
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:
260
270
 
261
271
  ```bash
262
- npx @vibebrowser/mcp --help
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
+
297
+ ## Local LLM: `serve` Command
298
+
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.
300
+
301
+ ```bash
302
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp serve qwen3.5
303
+ ```
304
+
305
+ That's it. Works on **macOS**, **Linux**, and **Windows**.
306
+
307
+ ### What it does
308
+
309
+ 1. **Detects Ollama** → installs it if missing (via `brew`, `curl`, or `winget`)
310
+ 2. **Starts the server** → launches `ollama serve` in the background
311
+ 3. **Downloads the model** → streams download progress to your terminal
312
+ 4. **Prints connection info** → ready to use with VibeBrowser or any OpenAI-compatible client
313
+
314
+ ### Recommended models
315
+
316
+ ```bash
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)
321
+ ```
322
+
323
+ ### Options
324
+
325
+ ```bash
326
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp serve <model> [options]
263
327
 
264
328
  Options:
329
+ -p, --port <number> Ollama API port (default: 11434)
330
+ -y, --yes Skip install confirmation prompts
331
+ -d, --debug Enable debug logging
332
+ ```
333
+
334
+ ### Using with VibeBrowser extension
335
+
336
+ After `serve` completes, configure the extension:
337
+ - **Model provider** → `ollama`
338
+ - **Model name** → the model you served (e.g., `qwen3.5`)
339
+
340
+ The extension connects to `http://localhost:11434/v1` automatically.
341
+
342
+ ## CLI Options
343
+
344
+ ```bash
345
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp --help
346
+ npx -y --package @vibebrowser/mcp vibebrowser-cli --help
347
+
348
+ # MCP server (default)
349
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp [start] [options]
265
350
  -p, --port <number> WebSocket port for local relay (agent) connection (default: 19888)
266
351
  -d, --debug Enable debug logging
267
- -h, --help Show help
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
369
+
370
+ # Local LLM server
371
+ npx -y --package @vibebrowser/mcp vibebrowser-mcp serve <model> [options]
372
+ -p, --port <number> Ollama API port (default: 11434)
373
+ -y, --yes Skip confirmation prompts
374
+ -d, --debug Enable debug logging
268
375
  ```
269
376
 
270
377
  ## Troubleshooting
@@ -275,6 +382,13 @@ Options:
275
382
  2. Click the extension icon and enable "MCP External Control" in Settings
276
383
  3. Check that no firewall is blocking localhost connections
277
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
+
278
392
  ### Debug mode
279
393
 
280
394
  Enable debug logging to diagnose issues:
@@ -284,7 +398,7 @@ Enable debug logging to diagnose issues:
284
398
  "mcpServers": {
285
399
  "vibe": {
286
400
  "command": "npx",
287
- "args": ["-y", "@vibebrowser/mcp", "--debug"]
401
+ "args": ["-y", "--package", "@vibebrowser/mcp", "vibebrowser-mcp", "--debug"]
288
402
  }
289
403
  }
290
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"}