tianmingwan/dsh-balanced-search
Balanced web search plugin/MCP server for DeepSeek Harness: Keenable / Exa / Tavily round-robin with failover.
Project Overview项目介绍
This repository provides two deployment options: a native DeepSeek Harness (DSH) plugin and a standalone Model Context Protocol (MCP) server. The core functionality is to perform web search and URL fetching across three popular search API providers: Keenable (Keen Search), Exa, and Tavily. It uses a round-robin strategy to distribute requests across providers, and automatically fails over to the next available provider if the current one fails. All search results and fetched content are returned in a normalized format, with consistent structure across all providers. Installing the DSH native plugin requires only DSH and Node.js 20 or newer, and no extra Python dependencies are needed.
To install the plugin to your DSH profile, run the command dsh plugin --profile web add github:tianmingwan/dsh-balanced-search in your terminal. After installation completes, you just need to restart your DSH process for the changes to take effect. The plugin automatically registers two new tools, balanced_search and balanced_fetch, and also automatically takes over the built-in web_search and web_fetch tools. The plugin leverages DSH's bundle patch system to inject the provider override directly into your existing web profile configuration. No manual profile edits are required, which makes the setup process very straightforward for new users.
You need to configure at least one search provider API key via environment variables; any provider without a configured key will be skipped automatically. A document, API_KEYS.md, is included with step-by-step instructions for signing up for each provider, getting your API key, and outlines the free tier quotas for each service. Fetch operations are performed server-side by the search provider, so it works even in network environments where local DSH fetch fails because of non-public IP resolution issues. The project is released under the permissive MIT open source license, so you can use or modify it freely for any purpose.
这是一个为DeepSeek Harness(DSH)开发的原生插件,同时也提供通用MCP服务器形态供其他MCP客户端使用。核心能力是轮询调用Keenable(Keen Search)、Exa、Tavily三个搜索API,单个服务不可用时自动切换,统一返回搜索结果的标题、链接和摘要,还支持抓取指定URL的网页正文并输出干净的Markdown。作为DSH原生插件安装后无需Python依赖,自动注册工具并接管内置搜索功能,无需手动修改配置。
安装需要先安装DSH和Node.js ≥20,通过dsh命令行执行dsh plugin --profile web add github:tianmingwan/dsh-balanced-search,安装完成后重启DSH即可生效。用户至少需要配置一个搜索服务商的API密钥,未配置密钥的服务商将自动跳过,每个服务商的注册地址、免费额度和密钥获取方式都整理在API_KEYS.md中。搜索和抓取功能各自独立轮换,互不干扰,抓取操作由服务商端完成,解决了本地网络环境导致的抓取失败问题。
项目采用MIT许可证开源,完全免费使用。支持自定义轮换策略,目前默认是轮询加故障转移,未来可以扩展为加权或者健康感知策略。开发者也可以很方便地新增搜索服务商,只需要添加对应子类并注册即可。使用DSH原生插件形态时直接读取进程环境变量,使用MCP服务器形态时支持读取同目录下的.env文件配置密钥。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-balanced-search(tianmingwan/dsh-balanced-search)
仓库:https://github.com/tianmingwan/dsh-balanced-search
本站详情页:https://www.yhbd.top/plugins/tianmingwan-dsh-balanced-search/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-09-15 · 主语言 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:tianmingwan/dsh-balanced-search
把 tianmingwan/dsh-balanced-search 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-balanced-search
English: A balanced web search plugin / MCP server that round-robins across Keenable (Keen Search) / Exa / Tavily and automatically fails over to the next provider. Returns normalized titles, links, and content summaries.
中文: 均衡搜索插件 / MCP 服务器:把 Keenable(Keen Search)/ Exa / Tavily 三个搜索 API 轮流调用(round-robin),某个服务失败时自动切换下一个,统一返回标题 / 链接 / 摘要。
This repository provides two forms / 本仓库同时提供两种形态:
- DeepSeek Harness native plugin (recommended) / dsh 原生插件(推荐) — registers
balanced_search/balanced_fetchas dsh tools and automatically takes over the built-inweb_search/web_fetch, no Python required. / 既注册balanced_search/balanced_fetch两个 dsh 工具,同时自动接管内置的web_search/web_fetch,无需 Python。 - Generic MCP server / 通用 MCP 服务器 — exposes
search/fetchover stdio viaserver.pyfor any MCP client. / 通过server.py以 stdio 方式暴露search/fetch,可供任意 MCP 客户端使用。
Features / 功能
- Search the web and return titles, links, and content summaries. / 搜索网页,返回标题、链接和内容摘要。
- Fetch a URL and return clean markdown text. / 抓取指定 URL 的网页正文,返回 clean markdown。
- Round-robin across providers with automatic failover. / 三个服务轮流调用,单个服务失败时自动切换下一个。
- Configure API keys via environment variables; providers without a key are skipped. / 通过环境变量配置 API key;未配置的服务不会启用。
- Takes over the built-in
web_search/web_fetchautomatically — the bundle pins dsh'swebrow to this plugin'sbalancedprovider, so no manual profile edit is needed. / 自动接管内置的web_search/web_fetch:bundle 层把 dsh 的web行钉到本插件的balancedprovider,无需手工改任何配置。 - Fetch happens server-side, at the vendor — so it also works where the shipped local
httpfetch provider cannot. See Configuration Notes. / 抓取在厂商服务端完成,因此在 dsh 自带本地抓取 provider 无法工作的环境下依然可用,见配置说明。
Environment Variables / 环境变量
Configure at least one search provider API key / 至少配置一个搜索服务的 API key:
KEENABLE_API_KEY=...
EXA_API_KEY=...
TAVILY_API_KEY=...
👉 Where to register and get each key — sign-up links, where the key lives in each dashboard, free quotas, and what one call costs:
API_KEYS.md. 三家的注册入口、key 在各家后台的哪个页面、免费额度、以及单次调用消耗,见API_KEYS.md。
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