brave-real-browser-mcp-server 2.17.2 → 2.17.3

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.
Files changed (2) hide show
  1. package/dist/index.js +0 -12
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,25 +1,14 @@
1
1
  #!/usr/bin/env node
2
- // Debug logging setup - Log process start
3
2
  import 'dotenv/config';
4
- console.error(`🔍 [DEBUG] Process starting - PID: ${process.pid}, Node: ${process.version}, Platform: ${process.platform}`);
5
- console.error(`🔍 [DEBUG] Working directory: ${process.cwd()}`);
6
- console.error(`🔍 [DEBUG] Command args: ${process.argv.join(" ")}`);
7
3
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
8
4
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
9
5
  import { CallToolRequestSchema, ListToolsRequestSchema, ListResourcesRequestSchema, ListPromptsRequestSchema, InitializeRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
10
- console.error("🔍 [DEBUG] MCP SDK imports completed successfully");
11
- // Import extracted modules
12
- console.error("🔍 [DEBUG] Loading tool definitions...");
13
6
  import { TOOLS, SERVER_INFO, CAPABILITIES, TOOL_NAMES, } from "./tool-definitions.js";
14
- console.error("🔍 [DEBUG] Loading system utils...");
15
7
  import { withErrorHandling } from "./system-utils.js";
16
8
  import { validateMCPResponse } from "./mcp-response-validator.js";
17
- console.error("🔍 [DEBUG] Loading browser manager...");
18
9
  import { closeBrowser, forceKillAllBraveProcesses } from "./browser-manager.js";
19
- console.error("🔍 [DEBUG] Loading core infrastructure...");
20
10
  import { setupProcessCleanup, } from "./core-infrastructure.js";
21
11
  // Import handlers
22
- console.error("🔍 [DEBUG] Loading handlers...");
23
12
  import { handleBrowserInit, handleBrowserClose, } from "./handlers/browser-handlers.js";
24
13
  import { handleNavigate, handleWait } from "./handlers/navigation-handlers.js";
25
14
  import { handleClick, handleType, handleSolveCaptcha, handleRandomScroll, handlePressKey, } from "./handlers/interaction-handlers.js";
@@ -53,7 +42,6 @@ import { handleVideoPlayerFinder, handleStreamDetector, handleVideoDownloadLinkF
53
42
  import { handleAdvancedVideoExtraction, handleDeobfuscateJS, handleMultiLayerRedirectTrace, handleAdProtectionDetector, } from "./handlers/advanced-extraction-handlers.js";
54
43
  console.error("🔍 [DEBUG] All modules loaded successfully");
55
44
  console.error(`🔍 [DEBUG] Server info: ${JSON.stringify(SERVER_INFO)}`);
56
- console.error(`🔍 [DEBUG] Available tools: ${TOOLS.length} tools loaded`);
57
45
  // Initialize MCP server
58
46
  console.error("🔍 [DEBUG] Creating MCP server instance...");
59
47
  const server = new Server(SERVER_INFO, { capabilities: CAPABILITIES });
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "brave-real-browser-mcp-server",
3
- "version": "2.17.2",
3
+ "version": "2.17.3",
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",
7
7
  "scripts": {
8
8
  "preinstall": "npm view brave-real-puppeteer-core version > .latest-version 2>&1 || echo 'Version check skipped'",
9
- "postinstall": "node scripts/patch-puppeteer-screen-recorder.cjs && node scripts/update-to-latest.cjs || echo 'Auto-update skipped'",
9
+ "postinstall": "node scripts/patch-puppeteer-screen-recorder.cjs",
10
10
  "clean": "rimraf dist",
11
11
  "clean:cache": "npm cache clean --force",
12
12
  "fix-cache-permissions": "echo 'Run: sudo chown -R $(whoami):$(id -gn) ~/.npm' && echo 'This fixes npm cache permission issues'",