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 +25 -0
- package/dist/browser-manager.js +4 -19
- package/package.json +2 -2
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
|
package/dist/browser-manager.js
CHANGED
|
@@ -297,31 +297,16 @@ export async function initializeBrowser(options) {
|
|
|
297
297
|
else {
|
|
298
298
|
// console.(' Mode: GUI (visible browser)');
|
|
299
299
|
}
|
|
300
|
-
//
|
|
301
|
-
//
|
|
302
|
-
//
|
|
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:
|
|
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.
|
|
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.
|
|
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"
|