Zen Devtools Mcp

io.github.sushruth由 GitHub 账号 sushruth 发布v1.0.0更新于 Nov 5, 2026

Attach firefox-devtools-mcp to your running Zen or Firefox, auto-restarting with Marionette.

已验证STDIO仅桌面浏览器自动化开发者工具

概览

AI 生成的概览

封装 firefox-devtools-mcp,连接到已在运行的 Zen 或 Firefox 浏览器,必要时以 Marionette 模式重启后再附加。

可以做什么
  • 把上游 firefox-devtools-mcp 的浏览器工具提供给助手,并指向你现有的 Zen 或 Firefox 会话,而不是新开实例。
  • 检测 Marionette 是否在监听;若未开启,则退出浏览器、带 Marionette 参数重新启动、等待端口就绪,再启动 MCP 服务。
  • 通过命令行参数指定目标应用、进程名和 Marionette 端口,以适配 Zen、Firefox 或其他分支。
  • 作为本地 stdio MCP 服务器运行,可在 OpenCode、Claude Code 等客户端中配置。
适用场景
当你希望助手操作或检查你当前已打开的 Zen 或 Firefox 浏览器,而不是另开一个临时浏览器实例,并且使用 macOS 时适用。
运行要求
仅支持 macOS,依赖 open、osascript 和 pgrep。需要 Node.js(npx)或 Bun(bunx)从 GitHub 直接运行;未声明需要安装包或任何凭据。浏览器需能以 Marionette 方式重启,且 Marionette 端口(默认 2828)可用。
安装前请注意
首次检测到 Marionette 未开启时,它会退出并重启你的浏览器,当前会话会被关闭;标签页预期通过会话恢复回来,但未保存的状态可能丢失。它会向底层 MCP 传入 --connectExisting --enableScript,使助手获得对所连接浏览器的脚本执行能力,页面内容和已登录会话都会暴露给助手。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Zen Devtools Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

zen-devtools-mcp

Wraps @mozilla/firefox-devtools-mcp so it attaches to your already-running Firefox-based browser — Zen Browser, Firefox, or any fork — instead of launching a throwaway instance.

The upstream --connectExisting mode requires the browser to have been launched with Marionette enabled. Plain relaunches (clicking the dock icon, open -a Zen) don't set that, so attaching fails. This wrapper fixes that: if Marionette isn't up, it gracefully quits the browser (session restore keeps your tabs), relaunches it with --marionette, waits for the port, then starts the MCP.

Install / run

No install needed — run it straight from GitHub:

npx github:sushruth/zen-devtools-mcpbunx github:sushruth/zen-devtools-mcp

Options

FlagDefaultWhat it controls
--appZenmacOS app name for open -a / quit
--processzenprocess name for pgrep -x
--port2828Marionette port to probe and listen on

Examples:

# Firefox instead of Zennpx github:sushruth/zen-devtools-mcp --app Firefox --process firefox
# Zen with a custom Marionette portnpx github:sushruth/zen-devtools-mcp --port 2829

MCP client config

OpenCode example:

jsonc
"zen-devtools": {  "type": "local",  "command": ["npx", "-y", "github:sushruth/zen-devtools-mcp"],  "enabled": true},"firefox-devtools": {  "type": "local",  "command": ["npx", "-y", "github:sushruth/zen-devtools-mcp",              "--app", "Firefox", "--process", "firefox", "--port", "2829"],  "enabled": true}

Claude Code (claude mcp add-json zen-devtools '<json>' or .mcp.json):

json
"zen-devtools": {  "command": "npx",  "args": ["-y", "github:sushruth/zen-devtools-mcp"]}

Notes

  • Session restore preserves tabs across wrapper-triggered restarts.
  • Marionette can't be enabled on a live browser process — a restart is unavoidable the first time.
  • macOS-only (open, osascript, pgrep).
  • Passes --connectExisting --enableScript to the underlying MCP; it inherits stdio from its parent.

来源:README.md,提交 c488048

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.0最新Oct 21, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分