Skip to content

[Task]: Extract worker related logic into McpWorker #2434

Description

@OrKoN

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions