brave-real-browser-mcp-server 2.19.4 → 2.19.6
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/dist/index.js +10 -9
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -247,7 +247,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
247
247
|
}
|
|
248
248
|
catch (error) {
|
|
249
249
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
250
|
-
|
|
250
|
+
debug(`Tool ${name} failed:`, errorMessage);
|
|
251
251
|
return {
|
|
252
252
|
content: [
|
|
253
253
|
{
|
|
@@ -277,10 +277,11 @@ async function main() {
|
|
|
277
277
|
debug('Attempting to connect server to transport...');
|
|
278
278
|
await server.connect(transport);
|
|
279
279
|
debug('Server connected to transport successfully');
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
280
|
+
// Startup messages - only in debug mode to avoid MCP protocol interference
|
|
281
|
+
debug('🚀 Brave Real Browser MCP Server started successfully');
|
|
282
|
+
debug('📋 Available tools:', TOOLS.map(t => t.name).join(', '));
|
|
283
|
+
debug('🔧 Workflow validation: Active');
|
|
284
|
+
debug('💡 Content priority mode: Enabled (use get_content for better reliability)');
|
|
284
285
|
debug('Server is now ready and waiting for requests...');
|
|
285
286
|
// Keep the process alive by maintaining the connection
|
|
286
287
|
debug('Maintaining process alive - server will wait for requests');
|
|
@@ -300,13 +301,13 @@ async function main() {
|
|
|
300
301
|
debug('Setting up error handlers...');
|
|
301
302
|
process.on('uncaughtException', (error) => {
|
|
302
303
|
debug(`Uncaught exception at ${new Date().toISOString()}`);
|
|
303
|
-
|
|
304
|
+
debug('❌ Uncaught exception:', error);
|
|
304
305
|
debug(`Stack trace:`, error.stack);
|
|
305
306
|
process.exit(1);
|
|
306
307
|
});
|
|
307
308
|
process.on('unhandledRejection', (reason, promise) => {
|
|
308
309
|
debug(`Unhandled rejection at ${new Date().toISOString()}`);
|
|
309
|
-
|
|
310
|
+
debug('❌ Unhandled rejection:', reason);
|
|
310
311
|
debug(`Promise:`, promise);
|
|
311
312
|
process.exit(1);
|
|
312
313
|
});
|
|
@@ -339,7 +340,7 @@ if (isMain) {
|
|
|
339
340
|
debug('Module is main - starting server...');
|
|
340
341
|
main().catch((error) => {
|
|
341
342
|
debug(`Main function failed at ${new Date().toISOString()}`);
|
|
342
|
-
|
|
343
|
+
debug('❌ Failed to start server:', error);
|
|
343
344
|
debug(`Error stack:`, error.stack);
|
|
344
345
|
process.exit(1);
|
|
345
346
|
});
|
|
@@ -349,7 +350,7 @@ else {
|
|
|
349
350
|
debug('FORCE STARTING - This is likely an npx execution');
|
|
350
351
|
main().catch((error) => {
|
|
351
352
|
debug(`Forced main function failed at ${new Date().toISOString()}`);
|
|
352
|
-
|
|
353
|
+
debug('❌ Failed to start server:', error);
|
|
353
354
|
debug(`Error stack:`, error.stack);
|
|
354
355
|
process.exit(1);
|
|
355
356
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brave-real-browser-mcp-server",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.6",
|
|
4
4
|
"description": "🦁 MCP server for Brave Real Browser - NPM Workspaces Monorepo with anti-detection features",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@modelcontextprotocol/sdk": "latest",
|
|
41
41
|
"@types/turndown": "latest",
|
|
42
|
-
"brave-real-browser": "^2.1.
|
|
42
|
+
"brave-real-browser": "^2.1.6",
|
|
43
43
|
"dotenv": "latest",
|
|
44
44
|
"turndown": "latest"
|
|
45
45
|
},
|