brave-real-browser-mcp-server 2.12.9 → 2.12.11

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.
@@ -113,7 +113,17 @@ export class SseTransport {
113
113
  error: errorMessage,
114
114
  timestamp: new Date().toISOString(),
115
115
  });
116
- res.status(500).json({ success: false, error: errorMessage });
116
+ // Return errors in MCP format (status 200 with isError flag)
117
+ res.json({
118
+ success: true,
119
+ result: {
120
+ isError: true,
121
+ content: [{
122
+ type: 'text',
123
+ text: errorMessage
124
+ }]
125
+ }
126
+ });
117
127
  }
118
128
  });
119
129
  // Browser automation endpoints with SSE notifications
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brave-real-browser-mcp-server",
3
- "version": "2.12.9",
3
+ "version": "2.12.11",
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",