brave-real-browser-mcp-server 2.17.5 → 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 CHANGED
@@ -6,13 +6,13 @@
6
6
 
7
7
  ![Version](https://img.shields.io/badge/version-2.15.5-blue.svg)
8
8
  ![Node](https://img.shields.io/badge/node-%3E%3D18.0.0-green.svg)
9
- ![Tools](https://img.shields.io/badge/tools-48-purple.svg)
9
+ ![Tools](https://img.shields.io/badge/tools-49-purple.svg)
10
10
  ![IDEs](https://img.shields.io/badge/AI_IDEs-15+-orange.svg)
11
11
  ![License](https://img.shields.io/badge/license-MIT-red.svg)
12
12
 
13
- **सभी AI IDEs के लिए Universal MCP Server | 48 Tools | Browser Automation | Web Scraping | CAPTCHA Solving**
13
+ **सभी AI IDEs के लिए Universal MCP Server | 49 Tools | Browser Automation | Web Scraping | CAPTCHA Solving**
14
14
 
15
- [Installation](#-installation) | [Quick Start](#-quick-start) | [Features](#-key-features) | [Tools](#-available-tools-48) | [IDE Configurations](#-ide-configurations)
15
+ [Installation](#-installation) | [Quick Start](#-quick-start) | [Features](#-key-features) | [Tools](#-available-tools-49) | [IDE Configurations](#-ide-configurations)
16
16
 
17
17
  </div>
18
18
 
@@ -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.5",
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",