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 分