chrome-bridge-mcp 1.31.0 → 1.31.1

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Chrome Bridge for Claude Code",
4
- "version": "1.31.0",
4
+ "version": "1.31.1",
5
5
  "description": "Bridge your browser to Claude Code: 69 token-efficient web-dev automation tools over a local WebSocket. ChromeOS included.",
6
6
  "homepage_url": "https://github.com/frsorrentino/chrome-bridge",
7
7
  "minimum_chrome_version": "135",
@@ -283,11 +283,14 @@
283
283
  } else {
284
284
  throw new Error('this WebMCP version has no executeTool and the tool was registered before chrome-bridge could see it');
285
285
  }
286
- const out = await Promise.race([run, timedOut]);
286
+ let out = await Promise.race([run, timedOut]);
287
+ // executeTool di Chrome restituisce il risultato come stringa JSON.
288
+ if (typeof out === 'string') { try { out = JSON.parse(out); } catch {} }
287
289
  settle(entry, t0, out);
288
290
  return { status: 'ok', result: entry.output, ms: entry.ms };
289
291
  } catch (err) {
290
- settle(entry, t0, undefined, err);
292
+ // Chrome rifiuta con l'AbortError del segnale prima del nostro timer.
293
+ settle(entry, t0, undefined, ac.signal.aborted && !err?.timeout ? Object.assign(new Error(`timed out after ${timeout} ms`), { timeout: true }) : err);
291
294
  return { status: entry.status, error: entry.error, ms: entry.ms };
292
295
  } finally {
293
296
  clearTimeout(timer);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "chrome-bridge-mcp",
3
- "version": "1.31.0",
3
+ "version": "1.31.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "chrome-bridge-mcp",
9
- "version": "1.31.0",
9
+ "version": "1.31.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@jridgewell/trace-mapping": "^0.3.31",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "chrome-bridge-mcp",
3
3
  "mcpName": "io.github.frsorrentino/chrome-bridge",
4
- "version": "1.31.0",
4
+ "version": "1.31.1",
5
5
  "type": "module",
6
6
  "description": "Chrome Bridge by frsorrentino: MCP server that lets Claude Code borrow a tab from your own logged-in Chrome and hand it back — logins, 2FA and CAPTCHAs stay with you (handoff). 69 tools; 2.8-4.3× cheaper and up to 9.3× fewer turns than Claude in Chrome, measured; ChromeOS included.",
7
7
  "main": "server/index.js",
@@ -105,7 +105,7 @@ export const MessageType = Object.freeze({
105
105
  });
106
106
 
107
107
  // Versione
108
- export const VERSION = '1.31.0';
108
+ export const VERSION = '1.31.1';
109
109
 
110
110
  // Configurazione
111
111
  export const DEFAULT_PORT = 8765;