@mehmoodqureshi/chrome-mcp 0.2.0 → 0.3.0

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.
@@ -35,7 +35,9 @@ function readPolicyFile(path) {
35
35
  */
36
36
  function parseArgs(argv) {
37
37
  let wsPort = envInt('CHROME_MCP_WS_PORT') ?? protocol_1.DEFAULT_WS_PORT;
38
- let cdpFallback = true;
38
+ // Extension-only by default: never launch/attach a Chromium of our own unless
39
+ // the operator explicitly opts in with --cdp-fallback (or --prefer cdp / --cdp-endpoint).
40
+ let cdpFallback = false;
39
41
  let cdpEndpoint;
40
42
  let prefer = 'extension';
41
43
  let headless = false;
@@ -85,7 +87,10 @@ function parseArgs(argv) {
85
87
  case '--allow-all-tabs':
86
88
  policyFlags.allowAllTabs = true;
87
89
  break;
88
- case '--no-cdp-fallback':
90
+ case '--cdp-fallback':
91
+ cdpFallback = true;
92
+ break;
93
+ case '--no-cdp-fallback': // still accepted; fallback is already off by default
89
94
  cdpFallback = false;
90
95
  break;
91
96
  case '--cdp-endpoint':
@@ -174,7 +179,10 @@ Connection:
174
179
  CHROME_MCP_TOKEN env, if set, pins the token explicitly.
175
180
 
176
181
  Backend:
177
- --no-cdp-fallback Do not launch/attach Chromium when no extension is paired
182
+ --cdp-fallback Opt in to launching/attaching Chromium when no extension
183
+ is paired. OFF by default — extension-only, never opens
184
+ a browser of its own.
185
+ --no-cdp-fallback Explicitly disable the fallback (already the default).
178
186
  --cdp-endpoint <url> Attach to an existing Chrome (e.g. http://127.0.0.1:9222)
179
187
  --prefer <which> "extension" (default) or "cdp"
180
188
  --headless Run the CDP-fallback Chromium headless
@@ -6,7 +6,7 @@
6
6
  "minimum_chrome_version": "116",
7
7
  "background": { "service_worker": "background.js" },
8
8
  "permissions": ["tabs", "scripting", "activeTab", "downloads", "storage", "alarms", "cookies", "debugger"],
9
- "host_permissions": ["http://*/*", "https://*/*"],
9
+ "host_permissions": ["<all_urls>"],
10
10
  "options_page": "options.html",
11
11
  "action": { "default_title": "Chrome MCP — open options to pair" }
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mehmoodqureshi/chrome-mcp",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Drive a real Chrome browser over MCP. A stdio MCP server (CLI) plus an MV3 extension, behind one pluggable Executor (extension via chrome.scripting, or a Playwright CDP fallback).",
5
5
  "author": "Mehmood Ur Rehman Qureshi",
6
6
  "license": "MIT",