brave-real-browser-mcp-server 2.17.6 → 2.17.7
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 +1 -1
- package/dist/browser-manager.js +16 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/browser-manager.js
CHANGED
|
@@ -514,6 +514,14 @@ export async function initializeBrowser(options) {
|
|
|
514
514
|
if (options?.proxy) {
|
|
515
515
|
connectOptions.customConfig.chromeFlags.push(`--proxy-server=${options.proxy}`);
|
|
516
516
|
}
|
|
517
|
+
// Explicitly enforce headless mode via flags if enabled
|
|
518
|
+
// This fixes issues where brave-real-browser might default to GUI
|
|
519
|
+
if (connectOptions.headless) {
|
|
520
|
+
if (!connectOptions.customConfig.chromeFlags) {
|
|
521
|
+
connectOptions.customConfig.chromeFlags = [];
|
|
522
|
+
}
|
|
523
|
+
connectOptions.customConfig.chromeFlags.push('--headless=new');
|
|
524
|
+
}
|
|
517
525
|
if (options?.plugins && Array.isArray(options.plugins)) {
|
|
518
526
|
connectOptions.plugins = options.plugins;
|
|
519
527
|
}
|
|
@@ -537,7 +545,7 @@ export async function initializeBrowser(options) {
|
|
|
537
545
|
...braveConfig,
|
|
538
546
|
...modifications.customConfig,
|
|
539
547
|
chromeFlags: [
|
|
540
|
-
...(modifications.customConfig?.chromeFlags || braveConfig.chromeFlags),
|
|
548
|
+
...(modifications.customConfig?.chromeFlags || braveConfig.chromeFlags || []),
|
|
541
549
|
...(availablePort ? [`--remote-debugging-port=${availablePort}`] : ['--remote-debugging-port=0'])
|
|
542
550
|
]
|
|
543
551
|
}
|
|
@@ -564,6 +572,13 @@ export async function initializeBrowser(options) {
|
|
|
564
572
|
},
|
|
565
573
|
}
|
|
566
574
|
};
|
|
575
|
+
// Fix: Ensure headless flag is present in primary strategy args if needed
|
|
576
|
+
if (primaryStrategy.strategy.headless) {
|
|
577
|
+
if (!primaryStrategy.strategy.args) {
|
|
578
|
+
primaryStrategy.strategy.args = [];
|
|
579
|
+
}
|
|
580
|
+
primaryStrategy.strategy.args.push('--headless=new');
|
|
581
|
+
}
|
|
567
582
|
const connectionStrategies = [
|
|
568
583
|
primaryStrategy,
|
|
569
584
|
// Fallback strategies only if primary fails
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brave-real-browser-mcp-server",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.7",
|
|
4
4
|
"description": "Universal AI IDE MCP Server - Auto-detects and supports all AI IDEs (Claude Desktop, Cursor, Windsurf, Cline, Zed, VSCode, Qoder AI, etc.) with Brave browser automation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|