dsh-free-search 0.9.64 → 0.9.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -548,7 +548,7 @@ Search engine test:
548
548
  npx -y -p dsh-free-search dsh-free-search-mcp
549
549
  ```
550
550
 
551
- `web_search` 默认只自动调用免 key 的 Bing / DuckDuckGo;在参数或 `MCP_SEARCH_ENGINE` 里显式点名 `google` / `baidu` / `brave` / `metaso` / `yandex` / `yuanbao` / `deepseek-tools` / `zhipu` / `perplexity` / `serpbase` / `serply` / `outcrawl` / `tinyfish` / `jina` / `kimi` / `aliyun` / `doubao` / `zhihu-global` / `zhihu-site` / `specstream` / `deepseek-official` 时才会使用付费引擎;`anysearch` / `searxng` / `exa` / `tavily` / `keenable` / `firecrawl` / `parallel` / `you` 可显式选择,且有免 key 档。支持 `time_range`(day/week/month/year)。`advanced_search` 是同一后端的兼容别名,便于按宿主工具名调用。`web_fetch` 仍走直连 / 浏览器 / Exa / Firecrawl。`multi_search` 并行合并多个引擎(默认只跑免费引擎),`domain_search` 直查包/论文/CVE/财报/金融/法律等垂直源,`platform_search` 直查 GitHub/HN/Reddit/npm/Wikipedia/Bilibili/V2EX/掘金/豆瓣/Qiita/YouTube/Vimeo/X,`video_search` 查 Bing/DDG 视频,`research` 做轻量多引擎检索 + 抓取 + 证据摘要,`weather` 查询 1–7 天天气;不监听端口。Claude Desktop 配置示例:
551
+ `web_search` 默认只自动调用免 key 的 Bing / DuckDuckGo;在参数或 `MCP_SEARCH_ENGINE` 里显式点名 `google` / `baidu` / `brave` / `metaso` / `yandex` / `yuanbao` / `deepseek-tools` / `zhipu` / `perplexity` / `serpbase` / `serply` / `outcrawl` / `tinyfish` / `jina` / `kimi` / `aliyun` / `doubao` / `zhihu-global` / `zhihu-site` / `specstream` / `deepseek-official` / `openai` / `gemini` / `claude` 时才会使用付费引擎;`anysearch` / `searxng` / `exa` / `tavily` / `keenable` / `firecrawl` / `parallel` / `you` 可显式选择,且有免 key 档;`degoog` 需要 `MCP_DEGOOG_INSTANCES`。支持 `time_range`(day/week/month/year)。`advanced_search` 是同一后端的兼容别名,便于按宿主工具名调用。`web_fetch` 仍走直连 / 浏览器 / Exa / Firecrawl。`multi_search` 并行合并多个引擎(默认只跑免费引擎),`domain_search` 直查包/论文/CVE/财报/金融/法律等垂直源,`platform_search` 直查 GitHub/HN/Reddit/npm/Wikipedia/Bilibili/V2EX/掘金/豆瓣/Qiita/YouTube/Vimeo/X,`video_search` 查 Bing/DDG 视频,`research` 做轻量多引擎检索 + 抓取 + 证据摘要,`weather` 查询 1–7 天天气;不监听端口。Claude Desktop 配置示例:
552
552
 
553
553
  ```json
554
554
  {
@@ -1292,7 +1292,7 @@ The repo also ships a standalone stdio MCP server for Claude Desktop, Cursor, Co
1292
1292
  npx -y -p dsh-free-search dsh-free-search-mcp
1293
1293
  ```
1294
1294
 
1295
- `web_search` auto-runs only the keyless Bing / DuckDuckGo engines; a keyed engine (`google` / `baidu` / `brave` / `metaso` / `yandex` / `yuanbao` / `deepseek-tools` / `zhipu` / `perplexity` / `serpbase` / `serply` / `outcrawl` / `tinyfish` / `jina` / `kimi` / `aliyun` / `doubao` / `zhihu-global` / `zhihu-site` / `specstream` / `deepseek-official`) runs only when named in the argument or `MCP_SEARCH_ENGINE`; `anysearch` / `searxng` / `exa` / `tavily` / `keenable` / `firecrawl` / `parallel` / `you` can also be named explicitly and have keyless tiers. It supports `time_range` (day/week/month/year). `advanced_search` is a compatibility alias over the same backend for hosts that call that tool name. `web_fetch` still uses direct / browser / Exa / Firecrawl. `multi_search` merges several engines in parallel (free engines by default), `domain_search` queries structured package/paper/CVE/filing/finance/law sources, `platform_search` queries GitHub/HN/Reddit/npm/Wikipedia/Bilibili/V2EX/Juejin/Douban/Qiita/YouTube/Vimeo/X, `video_search` queries Bing/DDG videos, `research` runs a lightweight multi-engine search + fetch + evidence brief, and `weather` returns a 1-7 day forecast; the server does not listen on a port. Claude Desktop example:
1295
+ `web_search` auto-runs only the keyless Bing / DuckDuckGo engines; a keyed engine (`google` / `baidu` / `brave` / `metaso` / `yandex` / `yuanbao` / `deepseek-tools` / `zhipu` / `perplexity` / `serpbase` / `serply` / `outcrawl` / `tinyfish` / `jina` / `kimi` / `aliyun` / `doubao` / `zhihu-global` / `zhihu-site` / `specstream` / `deepseek-official` / `openai` / `gemini` / `claude`) runs only when named in the argument or `MCP_SEARCH_ENGINE`; `anysearch` / `searxng` / `exa` / `tavily` / `keenable` / `firecrawl` / `parallel` / `you` can also be named explicitly and have keyless tiers; `degoog` needs `MCP_DEGOOG_INSTANCES`. It supports `time_range` (day/week/month/year). `advanced_search` is a compatibility alias over the same backend for hosts that call that tool name. `web_fetch` still uses direct / browser / Exa / Firecrawl. `multi_search` merges several engines in parallel (free engines by default), `domain_search` queries structured package/paper/CVE/filing/finance/law sources, `platform_search` queries GitHub/HN/Reddit/npm/Wikipedia/Bilibili/V2EX/Juejin/Douban/Qiita/YouTube/Vimeo/X, `video_search` queries Bing/DDG videos, `research` runs a lightweight multi-engine search + fetch + evidence brief, and `weather` returns a 1-7 day forecast; the server does not listen on a port. Claude Desktop example:
1296
1296
 
1297
1297
  ```json
1298
1298
  {
package/lib/client.js CHANGED
@@ -777,7 +777,7 @@ window.__ModuleLoader__.load({
777
777
  "cache_search",
778
778
  "domain_search",
779
779
  ];
780
- const PLUGIN_VERSION = "0.9.64";
780
+ const PLUGIN_VERSION = "0.9.65";
781
781
  const PLUGIN_REPO_URL = "https://github.com/DDDMUC/dsh-free-search";
782
782
  // 右侧浮动目录(#85):条目顺序即页面顺序,anchor 是页面里对应 field 的 id。
783
783
  const NAV_ITEMS = [
@@ -33,6 +33,10 @@ import { searchZhihuGlobal } from "./engines/zhihu_global.js";
33
33
  import { searchZhihuSite } from "./engines/zhihu_site.js";
34
34
  import { searchSpecStream } from "./engines/specstream.js";
35
35
  import { searchDeepSeekOfficial } from "./engines/deepseek-official.js";
36
+ import { searchDegoog } from "./engines/degoog.js";
37
+ import { searchOpenai } from "./engines/openai.js";
38
+ import { searchGemini } from "./engines/gemini.js";
39
+ import { searchClaude } from "./engines/claude.js";
36
40
  import { parseTimeRange } from "./engines/shared.js";
37
41
 
38
42
  export const MCP_ENGINE_IDS = [
@@ -69,6 +73,10 @@ export const MCP_ENGINE_IDS = [
69
73
  "zhihu-site",
70
74
  "specstream",
71
75
  "deepseek-official",
76
+ "degoog",
77
+ "openai",
78
+ "gemini",
79
+ "claude",
72
80
  ];
73
81
 
74
82
  export const MCP_FREE_ENGINES = ["bing", "ddg", "ddg-lite"];
@@ -77,7 +85,9 @@ export const MCP_KEYED_ENGINES = [
77
85
  "google", "baidu", "brave", "metaso", "yandex", "yuanbao", "deepseek-tools", "zhipu",
78
86
  "perplexity", "serpbase", "serply", "outcrawl", "tinyfish", "jina", "kimi", "aliyun", "doubao",
79
87
  "zhihu-global", "zhihu-site", "specstream", "deepseek-official",
88
+ "openai", "gemini", "claude",
80
89
  ];
90
+ export const MCP_HOSTED_ENGINES = ["degoog"];
81
91
 
82
92
  function env(name, fallback = "") {
83
93
  return String(process.env[name] ?? fallback).trim();
@@ -265,6 +275,46 @@ export async function runMcpEngine(id, query, options = {}) {
265
275
  return { engine, ...(await searchSpecStream(query, maxResults, requireEnv("SPECSTREAM_API_KEY", "SpecStream"), signal)) };
266
276
  case "deepseek-official":
267
277
  return { engine, ...(await searchDeepSeekOfficial(query, maxResults, requireEnv("DEEPSEEK_API_KEY", "DeepSeek"), signal)) };
278
+ case "degoog": {
279
+ const instances = env("MCP_DEGOOG_INSTANCES")
280
+ .split(/[\s,]+/)
281
+ .map((entry) => entry.trim())
282
+ .filter(Boolean);
283
+ if (instances.length === 0) throw new Error("Degoog requires MCP_DEGOOG_INSTANCES (comma-separated base URLs)");
284
+ return {
285
+ engine,
286
+ ...(await searchDegoog(query, maxResults, {
287
+ timeRange,
288
+ lang,
289
+ degoogInstances: instances,
290
+ ...(env("MCP_DEGOOG_API_KEY") ? { degoogApiKey: env("MCP_DEGOOG_API_KEY") } : {}),
291
+ }, signal)),
292
+ };
293
+ }
294
+ case "openai":
295
+ return {
296
+ engine,
297
+ ...(await searchOpenai(query, maxResults, requireEnv("OPENAI_API_KEY", "OpenAI"), {
298
+ openaiModel: env("MCP_OPENAI_MODEL"),
299
+ openaiBaseUrl: env("MCP_OPENAI_BASE_URL"),
300
+ }, signal)),
301
+ };
302
+ case "gemini":
303
+ return {
304
+ engine,
305
+ ...(await searchGemini(query, maxResults, env("GEMINI_API_KEY") || requireEnv("GOOGLE_API_KEY", "Gemini"), {
306
+ geminiModel: env("MCP_GEMINI_MODEL"),
307
+ geminiBaseUrl: env("MCP_GEMINI_BASE_URL"),
308
+ }, signal)),
309
+ };
310
+ case "claude":
311
+ return {
312
+ engine,
313
+ ...(await searchClaude(query, maxResults, requireEnv("ANTHROPIC_API_KEY", "Claude"), {
314
+ claudeModel: env("MCP_CLAUDE_MODEL"),
315
+ claudeBaseUrl: env("MCP_CLAUDE_BASE_URL"),
316
+ }, signal)),
317
+ };
268
318
  default:
269
319
  throw new Error(`unknown engine "${engine}"`);
270
320
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-free-search",
3
- "version": "0.9.64",
3
+ "version": "0.9.65",
4
4
  "description": "Free web search for DeepSeek Harness: 42 engines (Bing/DuckDuckGo/AnySearch/SearXNG/Exa/Tavily/Keenable/Firecrawl/Parallel/Brave/Zhipu/You.com keyless; Zhihu global/site via MCP and Perplexity/SerpBase/DeepSeek (official + native tools/search)/Baidu/Kimi/Aliyun/Doubao/Google CSE/Metaso/Yandex/Yuanbao/SpecStream with key; OpenAI/Gemini/Claude model built-in search, explicit-only) + auto smart routing + global engine enable/disable & fallback priority + editable zh/en language pools + multi mode (parallel full language-pool merge) + multi_search cross-source tool + failure-aware fallback (quota/auth cooldown, transient retry, fallbackOn) + time filtering + platform search + domain blocklist (blockedDomains) + web_fetch, with web settings UI, plus a standalone stdio MCP server.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",