Task to do:
Currently, the worker code uses Puppeteer targets directly. We could streamline the code and introduce an McpWorker abstraction that encapsulated worker related logic similar to McpPage.
For instance, there is ExtensionServiceWorker that is just a plain type https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/src/types.ts#L9 Other usages would have to audited to determine if they can be simplified. We can generalize dedicated and service workers into a single McpWorker abstraction.
Task to do:
Currently, the worker code uses Puppeteer targets directly. We could streamline the code and introduce an McpWorker abstraction that encapsulated worker related logic similar to McpPage.
For instance, there is ExtensionServiceWorker that is just a plain type https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/src/types.ts#L9 Other usages would have to audited to determine if they can be simplified. We can generalize dedicated and service workers into a single McpWorker abstraction.