chrome-devtools-mcp icon indicating copy to clipboard operation
chrome-devtools-mcp copied to clipboard

Chrome 147 + supergateway streamableHttp causes Target closed error

Open spamobile opened this issue 6 months ago • 2 comments

Problem

chrome-devtools-mcp 0.24.0 with Chrome 147 fails when used via supergateway streamableHttp transport.

Error: Protocol error (Target.setDiscoverTargets): Target closed

Direct stdio works fine - issue is supergateway bridge.

Workaround

Custom MCP bridge or use --stateful flag.

CC not affected (uses --autoConnect + direct stdio)

spamobile avatar May 05 '26 20:05 spamobile

Direct stdio works - issue is supergateway bridge. CC not affected (uses --autoConnect + direct stdio). Reproduction in issue description.

spamobile avatar May 05 '26 20:05 spamobile

UPDATE: Tested Puppeteer Chrome

Tested with Puppeteer's bundled Chrome (147.0.772.57):

  • Direct stdio: list_pages works ✅
  • Via supergateway streamableHttp: Target closed error ❌

Confirmed: The issue is supergateway's streamableHttp bridge, NOT Chrome version. Same behavior with both Puppeteer Chrome 147.0.772.57 and system Chrome 147.0.7727.101.

Working workaround: Custom stdio→HTTP bridge that properly handles CDP's stateful session lifecycle.

CC not affected because it uses direct stdio with --autoConnect, never routing through supergateway.

spamobile avatar May 05 '26 20:05 spamobile