yuzi-ska/DSH-Chrome-devtools

Plugin插件 Native原生 ⭐ 6 Search & Web Access搜索与联网

用于DeepSeek Harness代理的真实Chrome浏览器控制,由Chrome DevTools MCP驱动

Project Overview项目介绍

This repository is a native plugin built exclusively for DeepSeek Harness (DSH), which enables DSH agents to control a locally installed Chrome-based browser via the Model Context Protocol (MCP). To install the plugin, users only need to run one command dsh plugin --profile web add github:yuzi-ska/DSH-Chrome-devtools in the terminal, and no manual cloning or extra configuration is required. After installation, you just need to restart the DSH host, and all 28 available browser tools will be automatically loaded for all your agent sessions, including parent agents and child sub-agents. On the first run, npx will automatically download the required chrome-devtools-mcp server, which takes about 30 to 60 seconds once.

The plugin supports cross-platform use on Windows, macOS, and Linux. It comes with an automatic reconnection mechanism that will restart the server with exponential backoff if it crashes, and it will stop retrying after 10 consecutive failures to avoid infinite loops. All sessions share the same browser instance by default, so the browser state like cookies, open tabs and console logs are accessible to all agents. If you need an isolated browser environment for specific tasks, you can configure a separate instance with custom parameters such as user data directory and proxy.

Before installing the plugin, you need to prepare the required dependencies on your local machine. You must have Node.js version 20 or higher installed, with npx available in your system PATH. You also need to install the pnpm package manager, which is the underlying tool DSH uses to manage plugins. Finally, you need to have Chrome, Chromium, or Edge installed locally, and you can specify which browser to use via the plugin configuration. When using the plugin, be careful not to open pages with sensitive information, because page content will be sent to the LLM for processing.

这是一个专为 DeepSeek Harness 开发的原生插件,可让 DSH Agent 通过 MCP 协议驱动本地真实 Chrome 浏览器,支持页面导航、点击输入、截图、DOM 快照、控制台日志获取、网络请求抓取、性能轨迹录制、Cookie 管理等能力。官方仅提供一键安装方式,通过 dsh plugin 命令即可完成安装,无需手动克隆仓库,安装后开箱即用。

用户安装后需要重启 DSH 宿主才能生效,首次使用时会通过 npx 自动下载 chrome-devtools-mcp 服务器,耗时约 30 到 60 秒,之后会命中缓存实现秒级启动。该插件支持 Windows、macOS 和 Linux 全平台,所有会话(包含子 Agent)都能共享同一个浏览器实例,工具崩溃后会自动重连恢复。

该插件对运行环境有一定要求,需要提前安装 Node.js 20 及以上版本、pnpm 包管理器,同时本地需要安装 Chrome、Chromium 或 Edge 浏览器。用户可通过修改配置指定浏览器渠道、无头模式、视口大小等选项,使用时需要注意敏感页面信息,避免内容被模型获取造成泄露。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
  • Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:yuzi-ska/DSH-Chrome-devtools

把 yuzi-ska/DSH-Chrome-devtools 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-chrome-devtools — DeepSeek Harness × Chrome DevTools 集成

English | 中文

让 DeepSeek Harness 的 Agent 通过 chrome-devtools-mcp 驱动一个真实 Chrome 浏览器:导航、点击、输入、截图、DOM 快照、控制台、网络请求、性能轨迹、Cookie。

唯一安装方式:官方 dsh plugin 一键安装(GitHub 源,无需克隆本仓库)。 本仓库根目录就是官方 bundle 插件包(package.json 声明 dsh.bundle, cordis.patch.yml 是补丁层):MCP 服务器行由插件自带,安装后开箱即用, 不需要安装任何附加组件、不需要自己配置 MCP。

特性

  • 一键安装:dsh plugin add github:... 一条命令,自动进入 profile 补丁层栈,零手工配置
  • npx 开箱即用:服务器经 npx -y chrome-devtools-mcp@latest 首次自动下载 (与 Claude Code / Claude Desktop / Cursor 的 chrome-devtools-mcp 用法一致), 之后命中 npx 缓存秒级启动——不需要全局安装、不需要任何前置步骤
  • 全局可用:宿主重启后,所有会话(含子 agent)都能用 mcp__chrome-devtools__* 工具
  • 真实浏览器:有头或无头 Chrome、多标签、Cookie、网络拦截、性能轨迹,一应俱全
  • 自动重连:服务器崩溃由 dsh-mcp-client 指数退避重启,失败预算防无限重启
  • 跨平台:Windows / macOS / Linux;仓库自带零依赖安装脚本(纯 Node 标准库)

环境要求

依赖 说明
DeepSeek Harness 随官方发布,自带 @deepseek-ai/dsh-mcp-client 桥接插件
Node.js ≥ 20 npx 在 PATH 上(Node 自带)
pnpm dsh plugin 的底层包管理器(npm i -g pnpm 或 corepack enable)
Chrome / Chromium / Edge 本机安装;可在插件 args 用 --channel 指定

安装

dsh plugin --profile web add github:yuzi-ska/DSH-Chrome-devtools

(非 web 界面可把 web 换成你的 profile 名,如 tui / headless。)

安装后重启宿主(dsh web / 你的启动方式)。重启后所有会话都会出现 mcp__chrome-devtools__navigate_page、take_snapshot、take_screenshot、 list_console_messages、get_network_request、performance_start_trace 等工具(以服务器实际声明为准),无需任何额外配置。

首次使用会经 npx 下载服务器(约 30-60 秒)+ 启动 Chrome;之后常驻、秒级启动。

卸载:

dsh plugin --profile web remove dsh-chrome-devtools

仓库一键脚本(开发/本机场景)

git clone https://github.com/yuzi-ska/DSH-Chrome-devtools.git
cd DSH-Chrome-devtools

node scripts/install.mjs            # 安装到 web profile(本地 link,改代码重启即生效)
node scripts/install.mjs --check    # 环境自检(只读)
node scripts/install.mjs --uninstall
node scripts/install.mjs [options]
  --check             环境自检:node/pnpm/dsh/浏览器/DSH_HOME,不写任何文件
  --uninstall         卸载(dsh plugin remove)
  --profile <name>    目标 profile(默认 web)
  --dsh-home <path>   覆盖 DSH_HOME(默认 $DSH_HOME 或 ~/.dsh)
  --harness <path>    harness 仓库/安装路径(dsh 不在 PATH 时用 node 直接跑 CLI)
  --plugin-spec <s>   插件源(默认本仓库根目录;可填 npm 包名、git 源或本地路径)
  --package-name <n>  卸载时按此包名移除(默认 dsh-chrome-devtools)

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-remote-tunnel 下一个 Next dsh-im-gateway →