tianmingwan/dsh-balanced-search

Plugin插件 Native原生 ⭐ 3 MIT Search & Web Access搜索与联网

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文件配置密钥。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 / 本仓库同时提供两种形态:

  1. DeepSeek Harness native plugin (recommended) / dsh 原生插件(推荐) — registers balanced_search / balanced_fetch as dsh tools and automatically takes over the built-in web_search / web_fetch, no Python required. / 既注册 balanced_search / balanced_fetch 两个 dsh 工具,同时自动接管内置的 web_search / web_fetch,无需 Python。
  2. Generic MCP server / 通用 MCP 服务器 — exposes search / fetch over stdio via server.py for 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_fetch automatically — the bundle pins dsh's web row to this plugin's balanced provider, so no manual profile edit is needed. / 自动接管内置的 web_search / web_fetch:bundle 层把 dsh 的 web 行钉到本插件的 balanced provider,无需手工改任何配置。
  • Fetch happens server-side, at the vendor — so it also works where the shipped local http fetch 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 →

← 上一个 Prev whale-persona 下一个 Next dsh-model-picker-augmented →