gxpppp/dsh-search-mcp 预览 preview

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 原始的内置网页搜索配置,不会残留修改。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 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

  1. 点击 Tavily、Brave、Exa、Perplexity 或 DuckDuckGo 快捷按钮。
  2. 展开服务器行。
  3. 对需要凭据的 provider 填写 CDKey/API key,然后保存。
  4. 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 →

← 上一个 Prev Catppuccin-dsh-theme 下一个 Next dafy-whale-theme →