Skip to content

Bug 2032055 - feature: add support for connecting to Firefox for Android#88

Merged
juliandescottes merged 1 commit into
mozilla:mainfrom
juliandescottes:bug2032055-android-support
May 26, 2026
Merged

Bug 2032055 - feature: add support for connecting to Firefox for Android#88
juliandescottes merged 1 commit into
mozilla:mainfrom
juliandescottes:bug2032055-android-support

Conversation

@juliandescottes

@juliandescottes juliandescottes commented May 22, 2026

Copy link
Copy Markdown
Collaborator

This PR adds support for connecting to Firefox for Android via 2 new command line arguments: --android-device and --android-package.

@juliandescottes

Copy link
Copy Markdown
Collaborator Author

@titooan Here's a PR adding support for Android.

If you can test it with your workflow that would be interesting.
Basically pull the PR, npm run build, then add the following in your claude json, in the section corresponding to your mozilla-central / firefox-main folder.

      "mcpServers": {
        "firefox-devtools": {
          "type": "stdio",
          "command": "./mach",
          "args": [
            "node",
            "/PATH/TO/YOUR/CLONE/dist/index.js", <--- so that you use your locally built mcp
            "--android-device",
            "auto",
            "--android-package",
            "org.mozilla.geckoview_example" <--- I don't know which package you typically use
          ]
        }
      },

@juliandescottes juliandescottes force-pushed the bug2032055-android-support branch from f90f14f to f7596eb Compare May 22, 2026 10:28
@juliandescottes

Copy link
Copy Markdown
Collaborator Author

I tested both with emulator + geckoviewexample and real device with fenix, and in both cases I could open tabs, navigate, execute script, take screenshots etc... so I think this is ready for review.

Comment thread README.md Outdated
@juliandescottes juliandescottes force-pushed the bug2032055-android-support branch from f7596eb to 878cbf2 Compare May 26, 2026 13:35
@juliandescottes juliandescottes merged commit c1fc487 into mozilla:main May 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants