brave-real-browser-mcp-server 2.32.8 → 2.33.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 +5 -4
- package/dist/handlers/advanced-tools.js +21 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ npm run dev
|
|
|
96
96
|
|
|
97
97
|
| Feature | Description |
|
|
98
98
|
|---------|-------------|
|
|
99
|
-
| **
|
|
99
|
+
| **28 MCP Tools** | Complete browser automation toolkit |
|
|
100
100
|
| **Unified Server** | MCP + SSE + LSP in one command |
|
|
101
101
|
| **Stealth Mode** | 50+ anti-detection features |
|
|
102
102
|
| **Captcha Solving** | reCAPTCHA, hCaptcha, Turnstile |
|
|
@@ -284,7 +284,7 @@ npm run dev
|
|
|
284
284
|
... and 24 more tools
|
|
285
285
|
|
|
286
286
|
🔗 SharedEventBus: Auto-syncing MCP ↔ LSP ↔ SSE
|
|
287
|
-
📋 Total:
|
|
287
|
+
📋 Total: 28 MCP tools | TypeScript Analyzer Active
|
|
288
288
|
✅ Ready! All protocols unified and auto-synced.
|
|
289
289
|
```
|
|
290
290
|
|
|
@@ -353,7 +353,7 @@ brave-real-launcher
|
|
|
353
353
|
---
|
|
354
354
|
|
|
355
355
|
|
|
356
|
-
## 🛠️ All
|
|
356
|
+
## 🛠️ All 28 MCP Tools
|
|
357
357
|
|
|
358
358
|
### Browser Management
|
|
359
359
|
| Tool | Description |
|
|
@@ -397,7 +397,7 @@ brave-real-launcher
|
|
|
397
397
|
| `link_harvester` | Harvest links with auto-pagination |
|
|
398
398
|
| `network_recorder` | Record traffic with API interception |
|
|
399
399
|
| `extract_json` | Extract embedded JSON with AES decryption |
|
|
400
|
-
| `search_regex` | Regex search like regex101.com |
|
|
400
|
+
| `search_regex` | Regex search like regex101.com + **inline flags** `(?i)`, `(?m)`, `(?s)`, `(?u)` support |
|
|
401
401
|
|
|
402
402
|
### Advanced
|
|
403
403
|
| Tool | Description |
|
|
@@ -409,6 +409,7 @@ brave-real-launcher
|
|
|
409
409
|
| `cookie_manager` | Manage cookies |
|
|
410
410
|
| `file_downloader` | Download files |
|
|
411
411
|
| `execute_js` | Run custom JavaScript |
|
|
412
|
+
| `form_automator` | Auto-fill forms with human-like typing |
|
|
412
413
|
|
|
413
414
|
---
|
|
414
415
|
|
|
@@ -337,6 +337,27 @@ export async function handleSearchRegex(page, args) {
|
|
|
337
337
|
// Process pattern based on mode
|
|
338
338
|
let processedPattern = args.pattern;
|
|
339
339
|
const originalPattern = args.pattern;
|
|
340
|
+
// ============================================================
|
|
341
|
+
// INLINE FLAG PREPROCESSING: Convert (?i), (?m), (?s), (?u) to JS flags
|
|
342
|
+
// JavaScript doesn't support inline flags, so we extract and convert them
|
|
343
|
+
// Supported: (?i) -> ignoreCase, (?m) -> multiline, (?s) -> dotAll, (?u) -> unicode
|
|
344
|
+
// ============================================================
|
|
345
|
+
const inlineFlagMatch = processedPattern.match(/^\(\?([imsu]+)\)/);
|
|
346
|
+
if (inlineFlagMatch && !isSimpleSearch) {
|
|
347
|
+
const inlineFlags = inlineFlagMatch[1];
|
|
348
|
+
// Remove inline flags from pattern
|
|
349
|
+
processedPattern = processedPattern.replace(/^\(\?[imsu]+\)/, '');
|
|
350
|
+
// Apply inline flags to flagString
|
|
351
|
+
if (inlineFlags.includes('i') && !flagString.includes('i'))
|
|
352
|
+
flagString += 'i';
|
|
353
|
+
if (inlineFlags.includes('m') && !flagString.includes('m'))
|
|
354
|
+
flagString += 'm';
|
|
355
|
+
if (inlineFlags.includes('s') && !flagString.includes('s'))
|
|
356
|
+
flagString += 's';
|
|
357
|
+
if (inlineFlags.includes('u') && !flagString.includes('u'))
|
|
358
|
+
flagString += 'u';
|
|
359
|
+
tracker.setProgress(5, `🔧 Converted inline flags (?${inlineFlags}) to JS flags`);
|
|
360
|
+
}
|
|
340
361
|
if (isSimpleSearch) {
|
|
341
362
|
// Escape all regex special characters for literal search
|
|
342
363
|
processedPattern = escapeRegex(args.pattern);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brave-real-browser-mcp-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.33.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.13.0",
|
|
54
54
|
"puppeteer-core": "^24.35.0",
|
|
55
55
|
"turndown": "latest",
|
|
56
56
|
"vscode-languageserver": "^9.0.1",
|