SciF-Lin/dsh-browsercontrol-mcp
Real browser control for DeepSeek Harness: mounts Playwright MCP as native tools so the agent drives a browser you actually use.
Project Overview项目介绍
dsh-browsercontrol-mcp is a DeepSeek Harness plugin that mounts the official @playwright/mcp server into a profile so a model can drive a real browser. Once installed, the bundle participates in the cordis loader at process start, contributes a row for @deepseek-ai/dsh-mcp-client, and exposes tools under the mcp__playwright__* prefix covering navigation, clicks, form fills, key presses, drag-and-drop, file uploads, snapshots, screenshots, console capture, network requests, and arbitrary JS evaluation. Installation uses dsh plugin --profile web add github:<owner>/dsh-browsercontrol-mcp for released builds or add link:<path> for local development, and a profile restart is mandatory because patchReload: live does not pick up newly added bundles.
Three operating modes are supported. The launch mode reuses an already-installed system browser (Chrome, Edge, Firefox, or WebKit) without downloading Chromium and exposes persistence through userDataDir. The cdp mode attaches to an already running browser instance via Chrome DevTools Protocol, preserving the live login state, which requires enabling "Allow remote debugging for this browser instance" once per profile in chrome://inspect or edge://inspect because Chromium 136 disabled --remote-debugging-port for the default profile as an anti-cookie-theft measure. The extension mode requires installing the official Playwright Extension and lets the plugin connect to a named profile directory such as Profile 1.
Configuration is structured as a single row written into cordis.patch.yml or a profile patch, with keys including serverName, mode, browser, cdpEndpoint, cdpTimeoutMs, headless, userDataDir, profileDirName, cwd, env, cliPath, executablePath, extraArgs, toolCallTimeoutMs, failOnStartupError, guideSetup, probeTimeoutMs, and browserExe. Unknown keys are rejected loudly so misconfigurations do not silently degrade behavior. Runtime dependencies are @playwright/mcp plus @playwright/test, and @deepseek-ai/* packages are listed as peer dependencies; on first run the profile must execute npm i @playwright/mcp, and Firefox or WebKit modes additionally require npx playwright install firefox|webkit. The plugin tolerates missing dependencies and bad configuration by printing not mounting: ... and contributing zero tools rather than crashing the loader, and it auto-skips mounting if a hand-written mcp-playwright row with the same serverName already exists. Slash commands /bw and /bw-setup expose status and authorization helpers. The license is MIT; tests run with npm test and, where sub-process forks are blocked by a sandbox, fall back to npm run test:direct.
dsh-browsercontrol-mcp 是面向 DeepSeek Harness 的浏览器自动化插件,核心能力是把官方 @playwright/mcp 服务挂进当前 profile,使智能体可以直接操作真实浏览器。工具以 mcp__playwright__* 前缀出现在模型工具表里,覆盖导航、点击、填表、按键、拖拽、上传、快照、截图、控制台、网络请求以及任意 JS 执行。插件通过 dsh plugin --profile web add github:<owner>/dsh-browsercontrol-mcp 安装,本地开发可用 add link:...;它依赖 @deepseek-ai/dsh-mcp-client,并把 @playwright/mcp 声明为运行时依赖。
插件提供 launch、cdp、extension 三种模式。launch 模式直接复用系统已安装的 Chrome、Edge、Firefox 或 WebKit,不需要下载 Chromium;cdp 模式接管用户当前浏览器实例,登录态完整保留,但需要先在浏览器里勾选远程调试选项;extension 模式需要先安装官方 Playwright 扩展,再由插件发起连接。配置项包含 serverName、browser、cdpEndpoint、headless、userDataDir、executablePath、extraArgs、toolCallTimeoutMs 等;未知键会被直接拒绝并跳过挂载。安装后必须重启一次 profile,否则新插件不会生效。
插件以 cordis 插件形式组织代码:在 apply() 阶段解析 @playwright/mcp 的 cli.js 绝对路径,再以 process.execPath 启动 MCP 子进程,并把对应行挂到 loader 上,卸载时随 fiber 一起释放。Windows 下需要用 npx.cmd;配置错误或依赖缺失时打印 dsh-browsercontrol-mcp: not mounting: ... 并选择不贡献工具,避免拖垮整个插件树。首运行需 npm i @playwright/mcp;firefox 与 webkit 模式还需额外执行 npx playwright install。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-browsercontrol-mcp(SciF-Lin/dsh-browsercontrol-mcp)
仓库:https://github.com/SciF-Lin/dsh-browsercontrol-mcp
本站详情页:https://www.yhbd.top/plugins/scif-lin-dsh-browsercontrol-mcp/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-09-30 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
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:SciF-Lin/dsh-browsercontrol-mcp
把 SciF-Lin/dsh-browsercontrol-mcp 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-browsercontrol-mcp
简体中文 | English
把 Playwright MCP 挂进 DeepSeek Harness,让智能体直接操作真实浏览器。
安装后自动挂载官方 @deepseek-ai/dsh-mcp-client 行,工具以 mcp__playwright__* 出现在模型工具表里:
导航、点击、填表、按键、拖拽、上传、快照、截图、控制台、网络请求、执行 JS。
为什么是插件而不是一段 YAML
三个只有运行时才知道的事实:
@playwright/mcp的exports不导出./cli.js,直接 resolve 子路径会ERR_PACKAGE_PATH_NOT_EXPORTED; 正确做法是从它导出的./package.json读bin字段再拼接。- Windows 上
npx是npx.cmd,Node 的spawn不加 shell 起不来。 cli.js的绝对路径与node的绝对路径都要等安装完成后才能确定。
所以本插件在 apply() 里解析出绝对路径,用 process.execPath(当前 node)启动 MCP 服务进程,并把生成的
行挂到 loader 上;插件被卸载时随 fiber 一起回收,不留孤儿配置。
插件不会因为配置错误而拖垮 Harness:参数不合法、或找不到 @playwright/mcp 时,它打印一条
dsh-browsercontrol-mcp: not mounting: ... 并选择"不贡献任何工具",而不是让整个插件树加载失败。
安装
# 从 GitHub(发布后)
dsh plugin --profile web add github:<owner>/dsh-browsercontrol-mcp
# 本地开发(改代码即时生效)
dsh plugin --profile web add link:C:\Users\you\Desktop\dsh-browsercontrol-mcp
装完必须重启一次 profile。 patchReload: live 只覆盖 patch 文件的改动,新装的 bundle 要到进程启动时才参与组合,不重启不会生效(重启 dsh web 即可,配置本身不会丢)。
验证方式:问智能体"列出你有哪些浏览器工具",或走 Inspect:host / Tool / listTools,应出现 mcp__playwright__*;
用 /bw 可直接查看浏览器状态。
卸载:
dsh plugin --profile web remove dsh-browsercontrol-mcp
配置
改本插件那一行的 config(写在自己的 cordis.patch.yml 里,或 profile patch 里用同一个 id 定点覆盖):
| 键 | 默认 | 说明 |
|---|---|---|
serverName |
playwright |
工具名前缀:mcp__<serverName>__browser_navigate |
mode |
launch |
launch 自己开浏览器 / cdp 接管正在运行的浏览器 / extension 走浏览器扩展 |
browser |
msedge |
launch 模式取值:chrome | msedge | firefox | webkit;cdp 模式下作为默认通道名 |
cdpEndpoint |
空 | cdp 目标:Chromium 通道名(msedge、msedge-beta、chrome-dev…)或 CDP URL(http://localhost:9222);空则用 browser |
cdpTimeoutMs |
30000 |
cdp 连接超时(毫秒) |
headless |
false |
launch 模式是否无窗口 |
userDataDir |
空 | launch 模式的持久化 profile 目录,登录态可留存 |
profileDirName |
空 | extension 模式下要连接的 profile 目录名,如 Profile 1 |
cwd |
空 | MCP 服务进程工作目录,决定截图/快照落在哪 |
env |
{} |
传给 MCP 服务进程的额外环境变量 |
cliPath |
空 | 显式指定 cli.js,绕过模块解析 |
executablePath |
空 | launch 模式指定浏览器可执行文件(如便携版 Chrome),会覆盖通道查找 |
extraArgs |
[] |
追加原始 CLI 参数,如 ['--caps', 'vision,devtools'] |
toolCallTimeoutMs |
120000 |
单次工具调用超时 |
failOnStartupError |
false |
首次连接失败时是否让该行激活失败(默认只记录日志) |
guideSetup |
open |
cdp 授权引导:off 不引导 / auto 只提示与拦截 / open 额外在回合收尾时自动打开设置页 |
probeTimeoutMs |
1500 |
就绪探测的单次超时(毫秒) |
browserExe |
空 | 打开设置页所用的浏览器可执行文件;空则按通道自动查找 |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Tencent/BrowserSkill
YaoApp/yao
anbeime/skill
Jesseovo/last30days-skill-cn
bowenliang123/dsh-context
platonai/Browser4
liustack/modsearch