Open Bug 2018268 Opened 7 months ago Updated 1 month ago

Add debugging support to firefox-devtools-mcp

Categories

(Developer Infrastructure :: Firefox MCP, task)

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: padenot, Assigned: jdescottes)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

No description provided.
Flags: needinfo?(jdescottes)

Going to start working on this now, as it seems to be the one of the most requested features.

Reviewing the current mcp + discussing with ochameau, there are 3 main options:

  • A. leverage chrome JS execution already possible with the MCP and point Claude to Spidermonkey APIs
  • B. add a webdriver bidi moz:-specific module for debugging
  • C. allow BiDi to talk to RDP and/or devtools frontend

Option A is going to be challenging because we don't have a setup to directly run chrome JS in content process, so we would either need to teach Claude how to do that and have it inject JSWindowActors every time it needs to handle debugging.
Option C is probably not worth doing if we are talking to RDP actors, as it only provides a thin layer above spidemontkey apis. If instead we drive the frontend it would give access to more advanced features (setting breakpoints on URLs, sourcemaps etc), but this is 1/ heavy 2/ would imply having the devtools UI opened on the tab.
For now I'll start with option B, small BiDi module at least making it easier to run chrome privileged JS in content processes, but ideally just being a small wrapper on spidermonkey. If that's a dead end, I'll use some variant of option C.

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Flags: needinfo?(jdescottes)

The severity field is not set for this bug.
:marco, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(mcastelluccio)
Type: defect → task
Flags: needinfo?(mcastelluccio)
Depends on: 2024788

Once the modules for debugging have landed in BiDi, we can update the MCP to expose debugging, repurposing the bug to do that.

Summary: Figure out what's needed to be able to use the js debugger from firefox-devtools-mcp → Add debugging support to firefox-devtools-mcp
Component: AI for Development → Firefox MCP
Depends on: 2024832
No longer depends on: 2024788
Blocks: 2047657
See Also: → 2062803
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: