brave-real-browser-mcp-server 2.23.9 → 2.24.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.
package/README.md CHANGED
@@ -90,6 +90,31 @@ npm run dev
90
90
 
91
91
  ---
92
92
 
93
+ ## đŸ›Ąī¸ Ad Blocking & Stealth (brave-real-blocker)
94
+
95
+ **Auto-enabled on all pages via ecosystem chain:**
96
+
97
+ ```
98
+ brave-real-launcher
99
+ └── brave-real-puppeteer-core
100
+ └── brave-real-browser
101
+ └── brave-real-blocker (auto-enabled)
102
+ └── brave-real-browser-mcp-server
103
+ ```
104
+
105
+ | Feature | Description |
106
+ |---------|-------------|
107
+ | **AdBlocking** | Network-level ad/tracker blocking |
108
+ | **Stealth** | Native function masking (prompt, alert, confirm) |
109
+ | **RedirectBlocking** | Popup, window.open interception, tracking param removal |
110
+ | **ScriptletInjection** | Anti-adblock bypass |
111
+ | **CosmeticFiltering** | Element hiding |
112
+
113
+ > â„šī¸ No configuration needed - blocker activates automatically on browser launch.
114
+
115
+ ---
116
+
117
+
93
118
  ## đŸ› ī¸ All 33 MCP Tools
94
119
 
95
120
  ### Browser Management
@@ -297,31 +297,16 @@ export async function initializeBrowser(options) {
297
297
  else {
298
298
  // console.(' Mode: GUI (visible browser)');
299
299
  }
300
- // Brave-real-browser handles everything automatically
301
- // Enable uBlock Origin for ad/popup blocking
302
- // Add adblocker plugin for additional protection
303
- // Dynamically import adblocker plugin
304
- let adblockerPlugin = null;
305
- try {
306
- const adblockerModule = await import('puppeteer-extra-plugin-adblocker');
307
- const AdblockerPlugin = (adblockerModule.default || adblockerModule);
308
- if (typeof AdblockerPlugin === 'function') {
309
- adblockerPlugin = AdblockerPlugin({
310
- blockTrackers: true,
311
- blockTrackersAndAnnoyances: true,
312
- });
313
- }
314
- }
315
- catch (e) {
316
- // Adblocker plugin not available, continue without it
317
- }
300
+ // Note: brave-real-blocker is automatically loaded by brave-real-browser
301
+ // It provides: AdBlocking, Stealth, RedirectBlocking, Scriptlets, CosmeticFiltering
302
+ // No need for additional puppeteer-extra-plugin-adblocker
318
303
  const connectOptions = {
319
304
  headless: headlessMode,
320
305
  turnstile: true,
321
306
  connectOption: {
322
307
  defaultViewport: null // Full window content, no viewport restriction
323
308
  },
324
- plugins: adblockerPlugin ? [adblockerPlugin] : [], // Add adblocker plugin
309
+ plugins: [], // brave-real-blocker handles ad blocking internally
325
310
  customConfig: {
326
311
  autoLoadUBlock: true, // Enable uBlock Origin in brave-real-launcher
327
312
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brave-real-browser-mcp-server",
3
- "version": "2.23.9",
3
+ "version": "2.24.0",
4
4
  "description": "đŸĻ MCP server for Brave Real Browser - NPM Workspaces Monorepo with anti-detection features, SSE streaming, and LSP compatibility",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -50,7 +50,7 @@
50
50
  "dependencies": {
51
51
  "@modelcontextprotocol/sdk": "latest",
52
52
  "@types/turndown": "latest",
53
- "brave-real-browser": "^2.4.9",
53
+ "brave-real-browser": "^2.5.0",
54
54
  "turndown": "latest",
55
55
  "vscode-languageserver": "^9.0.1",
56
56
  "vscode-languageserver-textdocument": "^1.0.12"