gxpppp/dsh-search-mcp
将dsh内置的网页搜索替换为搜索MCP服务器(Tavily/Brave/Exa/Perplexity/DuckDuckGo/自定义),并通过网页设置页面进行配置。启用时禁用内置的DeepSeek搜索提供商。
Project Overview项目介绍
This is a DSH-native plugin that replaces the built-in web search functionality of DeepSeek Harness with a search provider powered by the Model Context Protocol (MCP). To install the plugin, you first clone the repository to your local machine, run npm install to install all required dependencies, then add the local plugin link to your DSH web profile via the dsh plugin --profile web add link: command. After installation completes, you can access the plugin configuration panel through DSH’s local settings menu to set up your own preferred search providers.
For pre-configured public providers like Tavily, Brave, Exa, Perplexity, and DuckDuckGo, you only need to select the provider from the menu and enter your personal API key to get started. No additional manual configuration of endpoints, transport methods, or authentication settings is required for these officially supported providers. DuckDuckGo works without any API key, so you can enable it immediately after installation without any extra setup steps. Custom private MCP servers are also supported for users that want to connect their own self-hosted or third-party search services.
The plugin requires Node.js 20 or higher and is built specifically for DSH version 0.1.1-rc.2 and newer. It is released under the open-source MIT license, so you can use, modify, and distribute it for free with no legal restrictions. The plugin enforces a strict URL security policy that blocks non-public routable addresses like localhost, private network ranges, and reserved test addresses to prevent common security risks. If you uninstall the plugin completely, it automatically restores DSH’s original built-in web search configuration with no leftover changes to your setup.
这是一个专为 DeepSeek Harness (DSH) 开发的原生插件,用于替换 DSH 内置的网页搜索功能,改用基于 MCP 协议的搜索服务提供底层搜索能力。插件保留 DSH 原生 web_search 调用接口,仅替换底层搜索提供者,支持 Tavily、Brave、Exa、Perplexity、DuckDuckGo 等多个常用搜索服务商,也支持用户自定义 MCP 搜索服务。
用户安装后可通过 DSH 设置界面进入插件配置页,只需选择服务商并填写 API Key 即可完成主流搜索服务的配置,无需手动填写 URL、命令、鉴权参数等额外信息。API Key 会通过 DSH 的凭据系统安全管理,不会明文存储在设置文件中。该插件适合需要替换默认搜索、使用第三方搜索服务的 DSH 用户。
该插件要求 Node.js 20 及以上版本,兼容 DSH 0.1.1-rc.2 及以上基线,采用 MIT 许可开源免费使用。插件自带 URL 安全策略,会拒绝内网、保留地址等非公开可路由地址,避免安全风险。卸载后会自动恢复 DSH 原始的内置网页搜索配置,不会残留修改。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-search-mcp(gxpppp/dsh-search-mcp)
仓库:https://github.com/gxpppp/dsh-search-mcp
本站详情页:https://www.yhbd.top/plugins/gxpppp-dsh-search-mcp/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 10 · 最近提交 2026-08-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 更稳。
- 10 stars - an early-stage project星标 10,属于早期项目
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:gxpppp/dsh-search-mcp
把 gxpppp/dsh-search-mcp 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-search-mcp
用搜索类 MCP 服务器完整替代 DeepSeek Harness(DSH)内置网页搜索的独立插件。
当前兼容基线:DeepSeek Harness
0.1.1-rc.2,Node.js 20 或更高版本。
功能
- 模型侧继续使用原生
web_search,插件只替换底层 search provider。 - 支持 Tavily、Brave、Exa、Perplexity、DuckDuckGo 和自定义 HTTP/stdio MCP。
- 已知 provider 只需选择服务商并填写 CDKey/API key,不需要填写 URL、命令、鉴权参数或工具名。
- 自定义 MCP 保留 URL、stdio 命令、鉴权方式和工具名等高级配置。
- 密钥通过 DSH credentials domain 写入;设置读取接口只返回是否已配置,不返回密钥值。
- DSH RC2 支持一次
web_search提交多个查询,默认上限为 4。 - 卸载插件后 bundle 覆盖层随之移除,DSH 内置搜索组合恢复。
安装
git clone https://github.com/gxpppp/dsh-search-mcp.git
cd dsh-search-mcp
npm install
dsh plugin --profile web add link:<dsh-search-mcp 的绝对路径>
dsh web
link: 会让源码更新直接作用于 profile。修改或升级浏览器 bundle 后需要重启 DSH Web 并刷新页面。
如果 profile 中已有独立搜索 MCP 行,建议先移除重复入口,避免同时暴露 mcp__... 工具和本插件提供的 web_search。
配置
打开:
设置 → 插件 → 插件配置 → 搜索 MCP
已知 provider
- 点击 Tavily、Brave、Exa、Perplexity 或 DuckDuckGo 快捷按钮。
- 展开服务器行。
- 对需要凭据的 provider 填写 CDKey/API key,然后保存。
- DuckDuckGo 无需 key。
已知 provider 的 endpoint、transport、鉴权方式、工具名和结果参数由 Host catalog 固定管理,设置页不会自动填入或显示链接。保存 CDKey 后,客户端先调用 credentials.set,再将生成的 credential reference 写入服务器设置;密钥本身不会写回普通 settings 字段。
也可以预先在 $DSH_HOME/.credentials.yaml 中保存凭据,再在设置页填写引用名:
TAVILY_API_KEY: <your-key>
EXA_API_KEY: <your-key>
PERPLEXITY_API_KEY: <your-key>
BRAVE_API_KEY: <your-key>
RC2 的 credentials/reference-updated 事件会刷新设置卡片中的“已配置/未配置”状态,但不会传输密钥值。卡片按 RC2 每批最多 64 个引用的限制分批读取状态。保存多个字段失败时会逆序恢复已写入的 settings,并清理本次新建的 credential reference;由于 RC2 不允许读回已有密钥,覆盖一个此前已配置的引用后无法跨 credentials/settings 做值级回滚。
自定义 MCP
添加 custom 服务器后,可配置:
| 字段 | 说明 |
|---|---|
id |
服务器唯一标识,供 defaultServer 引用 |
transport |
http(Streamable HTTP)或 stdio |
url |
仅 HTTP 自定义 MCP 使用 |
command / args |
仅 stdio 自定义 MCP 使用 |
apiKey |
写入方向的 CDKey/API key 输入 |
apiKeyEnv |
环境变量或 DSH credential reference |
authStyle |
HTTP 的 query 或 header |
authParam |
query/header 参数名;stdio 下作为环境变量名 |
toolName |
MCP 搜索工具名称 |
maxResults |
单服务器结果数覆盖 |
全局选项
| 字段 | 说明 |
|---|---|
defaultServer |
默认服务器 id;留空时使用第一行 |
maxResults |
全局结果数上限,默认 8,可选 1–50 |
searchTimeoutMs |
每次 MCP 搜索超时,默认 30000 ms;界面以秒显示 |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
anysearch-team/anysearch-dsh
DDDMUC/dsh-free-search
wxkingstar/SpecFusion
A3Boy/dsh-web-tools
UncleK/dsh-think-translate
cyijun/dsh-surfing-plugin
phoenixlucky/zerotoken-skill