DeepSeek Harness Plugin

LWJ007/dsh-browser-tabs

Stars ★ 1 Category Browser & Web Added 2026-08-28

Type /tabs to pick a browser tab (via chrome-devtools-mcp) and auto-fill its URL into the composer.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:LWJ007/dsh-browser-tabs

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

在 DeepSeek Harness 里直接选择浏览器标签页 —— 输入 /tabs 弹出标签页选择器,点选后链接自动填入输入框。

A DeepSeek Harness (DSH) plugin that adds a /tabs slash command: typing /tabs opens a picker listing your browser tabs (via chrome-devtools-mcp); selecting one writes its URL into the composer.


✨ 功能 / Features

  • /tabs — 弹出标签页选择器,列出当前浏览器所有标签页。
  • 点选即填 — 选中某个标签页后,它的 URL 自动写入输入框(composer)。
  • 操作你已登录的浏览器 — 通过 chrome-devtools-mcp(--autoConnect)读取真实浏览器标签页,无需另起无头浏览器。

📦 安装 / Install

dsh plugin --profile web add github:LWJ007/dsh-browser-tabs

或通过 git 地址安装:

dsh plugin --profile web add https://github.com/LWJ007/dsh-browser-tabs.git

安装后重启一次 dsh(bundle 层在启动时组合)。

🔧 安装排错 / Troubleshooting

错误 1:ERR_PNPM_UNEXPECTED_STORE(pnpm store 路径不一致)

这是 pnpm 的 store 路径问题,与插件本身无关。在 C:\Users\lee.li\.dsh\profiles\web 目录下重新安装依赖即可:

cd C:\Users\lee.li\.dsh\profiles\web
pnpm install

或统一 store 路径:

pnpm config set store-dir C:\Users\lee.li\.dsh\.pnpm-store\v11 --global

错误 2:allowBuilds 需要配置(git 托管插件构建被 pnpm 阻止)

在 C:\Users\lee.li\.dsh\profiles\web\pnpm-workspace.yaml 的 allowBuilds 下添加你的插件包名:

allowBuilds:
  node-pty: false
  dsh-browser-tabs: true

然后重新执行安装命令。

前置条件 / Prerequisites

  1. DeepSeek Harness(dsh)web profile。
  2. 在 DSH 的 MCP 管理器(dsh-mcp-manager)中配置 chrome-devtools-mcp 为 MCP server(stdio,--autoConnect)。插件通过 mcp__chrome-devtools-mcp__list_pages 工具读取标签页列表。

🚀 使用 / Usage

  1. 在输入框输入 /tabs。
  2. 弹出标签页选择器,列出所有浏览器标签页(标题 + URL)。
  3. 点选某个标签页 —— 它的 URL 自动填入输入框。

🛠 工作原理 / How it works

  • 宿主端(lib/index.js):注册 GET /api/dsh-browser-tabs/pages 路由,调用 mcp__chrome-devtools-mcp__list_pages 获取标签页列表,返回 JSON。
  • 客户端(lib/client.js):把 /tabs 注册为 popupSelect 命令。options 从宿主路由拉取标签页;onSelect 通过 conversation.input.setDraft 把选中的 URL 写入输入框。

📄 许可证 / License

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.