@nimbus21.ai/chrome-devtools-mcp 0.17.3 → 0.17.4
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/build/src/browser.js +1 -1
- package/build/src/main.js +5 -2
- package/package.json +1 -1
package/build/src/browser.js
CHANGED
|
@@ -125,7 +125,7 @@ export async function launch(options) {
|
|
|
125
125
|
];
|
|
126
126
|
const ignoreDefaultArgs = options.stealth
|
|
127
127
|
? [...(options.ignoreDefaultChromeArgs ?? []), '--enable-automation']
|
|
128
|
-
: options.ignoreDefaultChromeArgs ?? false;
|
|
128
|
+
: (options.ignoreDefaultChromeArgs ?? false);
|
|
129
129
|
// Add stealth-enhancing arguments if stealth mode is enabled
|
|
130
130
|
if (options.stealth) {
|
|
131
131
|
args.push('--disable-blink-features=AutomationControlled', '--disable-features=IsolateOrigins,site-per-process', '--no-first-run', '--no-service-autorun', '--password-store=basic');
|
package/build/src/main.js
CHANGED
|
@@ -20,7 +20,7 @@ import { ToolCategory } from './tools/categories.js';
|
|
|
20
20
|
import { tools } from './tools/tools.js';
|
|
21
21
|
// If moved update release-please config
|
|
22
22
|
// x-release-please-start-version
|
|
23
|
-
const VERSION = '0.17.
|
|
23
|
+
const VERSION = '0.17.4';
|
|
24
24
|
// x-release-please-end
|
|
25
25
|
export const args = parseArguments(VERSION);
|
|
26
26
|
const logFile = args.logFile ? saveLogsToFile(args.logFile) : undefined;
|
|
@@ -53,7 +53,10 @@ server.server.setRequestHandler(SetLevelRequestSchema, () => {
|
|
|
53
53
|
});
|
|
54
54
|
let context;
|
|
55
55
|
async function getContext() {
|
|
56
|
-
const chromeArgs =
|
|
56
|
+
const chromeArgs = [
|
|
57
|
+
...(args.chromeArg ?? []).map(String),
|
|
58
|
+
...(args.chromeArgs ?? []).map(String),
|
|
59
|
+
];
|
|
57
60
|
const ignoreDefaultChromeArgs = (args.ignoreDefaultChromeArg ?? []).map(String);
|
|
58
61
|
if (args.proxyServer) {
|
|
59
62
|
chromeArgs.push(`--proxy-server=${args.proxyServer}`);
|