Chrome DevTools for coding agents
chore: work around the SDK's MCP client issues (#1137)
Alex Rudenko06c295278d26
diff --git a/src/daemon/daemon.ts b/src/daemon/daemon.tsindex 8402a9fd..35af3cb7 100644--- a/src/daemon/daemon.ts+++ b/src/daemon/daemon.ts@@ -54,6 +54,10 @@ async function setupMCPClient() {console.log('Setting up MCP client connection...');// Create stdio transport for chrome-devtools-mcp+ // Workaround for https://github.com/modelcontextprotocol/typescript-sdk/blob/v1.x/src/client/stdio.ts#L128+ // which causes the console window to show on Windows.+ // @ts-expect-error no types for type.+ process.type = 'mcp-client';mcpTransport = new StdioClientTransport({command: process.execPath,args: [INDEX_SCRIPT_PATH, ...mcpServerArgs],