dsh-free-search 0.9.60 → 0.9.61

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
@@ -543,7 +543,7 @@ Search engine test:
543
543
  npx -y -p dsh-free-search dsh-free-search-mcp
544
544
  ```
545
545
 
546
- `web_search` 默认只自动调用免 key 的 Bing / DuckDuckGo;在参数或 `MCP_SEARCH_ENGINE` 里显式点名 `google` / `baidu` / `brave` / `metaso` / `yandex` / `yuanbao` / `deepseek-tools` / `zhipu` 时才会使用付费引擎。支持 `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 配置示例:
546
+ `web_search` 默认只自动调用免 key 的 Bing / DuckDuckGo;在参数或 `MCP_SEARCH_ENGINE` 里显式点名 `google` / `baidu` / `brave` / `metaso` / `yandex` / `yuanbao` / `deepseek-tools` / `zhipu` 时才会使用付费引擎;`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 配置示例:
547
547
 
548
548
  ```json
549
549
  {
@@ -557,7 +557,7 @@ npx -y -p dsh-free-search dsh-free-search-mcp
557
557
  }
558
558
  ```
559
559
 
560
- 环境变量:`MCP_SEARCH_ENGINE`(默认 auto,也可指定任意引擎 id)、`MCP_MAX_RESULTS`、`MCP_SAFE_SEARCH`、`MCP_LANG`、`MCP_BING_MARKET`、`MCP_BROWSER_FETCH`、`MCP_ALLOW_FAKE_IP_CIDRS`。付费引擎按需读取:`GOOGLE_CSE_API_KEY` + `GOOGLE_CSE_ID`、`BAIDU_API_KEY`、`BRAVE_API_KEY`、`METASO_API_KEY` / `MCP_METASO_SCOPE`、`YANDEX_API_KEY` + `YANDEX_FOLDER_ID`、`TENCENTCLOUD_WSA_APIKEY` / `MCP_YUANBAO_MODE` / `MCP_YUANBAO_SITE`、`DEEPSEEK_TOOLS_API_KEY` 或 `DEEPSEEK_API_KEY`、`ZHIPU_API_KEY` / `MCP_ZHIPU_SEARCH_ENGINE`;抓取层可用 `EXA_API_KEY` / `FIRECRAWL_API_KEY`。
560
+ 环境变量:`MCP_SEARCH_ENGINE`(默认 auto,也可指定任意引擎 id)、`MCP_MAX_RESULTS`、`MCP_SAFE_SEARCH`、`MCP_LANG`、`MCP_BING_MARKET`、`MCP_BROWSER_FETCH`、`MCP_ALLOW_FAKE_IP_CIDRS`。付费/可选 key 引擎按需读取:`GOOGLE_CSE_API_KEY` + `GOOGLE_CSE_ID`、`BAIDU_API_KEY`、`BRAVE_API_KEY`、`METASO_API_KEY` / `MCP_METASO_SCOPE`、`YANDEX_API_KEY` + `YANDEX_FOLDER_ID`、`TENCENTCLOUD_WSA_APIKEY` / `MCP_YUANBAO_MODE` / `MCP_YUANBAO_SITE`、`DEEPSEEK_TOOLS_API_KEY` 或 `DEEPSEEK_API_KEY`、`ZHIPU_API_KEY` / `MCP_ZHIPU_SEARCH_ENGINE`;免 key 档可选 `ANYSEARCH_API_KEY`、`MCP_SEARXNG_INSTANCES` / `MCP_SEARXNG_BEARER_TOKEN`、`EXA_API_KEY`、`TAVILY_API_KEY`、`KEENABLE_API_KEY`、`FIRECRAWL_API_KEY`、`PARALLEL_API_KEY`、`YDC_API_KEY`(旧名 `YOUCOM_API_KEY` 亦可)。
561
561
 
562
562
  #### 平台搜索(platform_search)
563
563
 
@@ -1280,7 +1280,7 @@ The repo also ships a standalone stdio MCP server for Claude Desktop, Cursor, Co
1280
1280
  npx -y -p dsh-free-search dsh-free-search-mcp
1281
1281
  ```
1282
1282
 
1283
- `web_search` auto-runs only the keyless Bing / DuckDuckGo engines; a keyed engine (`google` / `baidu` / `brave` / `metaso` / `yandex` / `yuanbao` / `deepseek-tools` / `zhipu`) runs only when named in the argument or `MCP_SEARCH_ENGINE`. 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:
1283
+ `web_search` auto-runs only the keyless Bing / DuckDuckGo engines; a keyed engine (`google` / `baidu` / `brave` / `metaso` / `yandex` / `yuanbao` / `deepseek-tools` / `zhipu`) 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:
1284
1284
 
1285
1285
  ```json
1286
1286
  {
@@ -1294,7 +1294,7 @@ npx -y -p dsh-free-search dsh-free-search-mcp
1294
1294
  }
1295
1295
  ```
1296
1296
 
1297
- Environment: `MCP_SEARCH_ENGINE` (auto by default, or any explicit engine id), `MCP_MAX_RESULTS`, `MCP_SAFE_SEARCH`, `MCP_LANG`, `MCP_BING_MARKET`, `MCP_BROWSER_FETCH`, `MCP_ALLOW_FAKE_IP_CIDRS`. Keyed engines read their own env: `GOOGLE_CSE_API_KEY` + `GOOGLE_CSE_ID`, `BAIDU_API_KEY`, `BRAVE_API_KEY`, `METASO_API_KEY` / `MCP_METASO_SCOPE`, `YANDEX_API_KEY` + `YANDEX_FOLDER_ID`, `TENCENTCLOUD_WSA_APIKEY` / `MCP_YUANBAO_MODE` / `MCP_YUANBAO_SITE`, `DEEPSEEK_TOOLS_API_KEY` or `DEEPSEEK_API_KEY`, `ZHIPU_API_KEY` / `MCP_ZHIPU_SEARCH_ENGINE`; the fetch tiers can use `EXA_API_KEY` / `FIRECRAWL_API_KEY`.
1297
+ Environment: `MCP_SEARCH_ENGINE` (auto by default, or any explicit engine id), `MCP_MAX_RESULTS`, `MCP_SAFE_SEARCH`, `MCP_LANG`, `MCP_BING_MARKET`, `MCP_BROWSER_FETCH`, `MCP_ALLOW_FAKE_IP_CIDRS`. Keyed/optional engines read their own env: `GOOGLE_CSE_API_KEY` + `GOOGLE_CSE_ID`, `BAIDU_API_KEY`, `BRAVE_API_KEY`, `METASO_API_KEY` / `MCP_METASO_SCOPE`, `YANDEX_API_KEY` + `YANDEX_FOLDER_ID`, `TENCENTCLOUD_WSA_APIKEY` / `MCP_YUANBAO_MODE` / `MCP_YUANBAO_SITE`, `DEEPSEEK_TOOLS_API_KEY` or `DEEPSEEK_API_KEY`, `ZHIPU_API_KEY` / `MCP_ZHIPU_SEARCH_ENGINE`; keyless-capable engines can use `ANYSEARCH_API_KEY`, `MCP_SEARXNG_INSTANCES` / `MCP_SEARXNG_BEARER_TOKEN`, `EXA_API_KEY`, `TAVILY_API_KEY`, `KEENABLE_API_KEY`, `FIRECRAWL_API_KEY`, `PARALLEL_API_KEY`, `YDC_API_KEY` (the old `YOUCOM_API_KEY` alias also works).
1298
1298
 
1299
1299
  #### Platform Search (`platform_search`)
1300
1300
 
package/lib/client.js CHANGED
@@ -769,7 +769,7 @@ window.__ModuleLoader__.load({
769
769
  "cache_search",
770
770
  "domain_search",
771
771
  ];
772
- const PLUGIN_VERSION = "0.9.60";
772
+ const PLUGIN_VERSION = "0.9.61";
773
773
  const PLUGIN_REPO_URL = "https://github.com/DDDMUC/dsh-free-search";
774
774
  // 右侧浮动目录(#85):条目顺序即页面顺序,anchor 是页面里对应 field 的 id。
775
775
  const NAV_ITEMS = [
@@ -12,6 +12,14 @@ import { searchZhipu } from "./engines/zhipu.js";
12
12
  import { searchYandex } from "./engines/yandex.js";
13
13
  import { searchYuanbao } from "./engines/yuanbao.js";
14
14
  import { searchDeepSeekTools } from "./engines/deepseek-tools.js";
15
+ import { searchExa, searchExaMCP } from "./engines/exa.js";
16
+ import { searchTavily } from "./engines/tavily.js";
17
+ import { searchKeenable } from "./engines/keenable.js";
18
+ import { searchFirecrawl } from "./engines/firecrawl.js";
19
+ import { searchParallel, searchParallelMCP } from "./engines/parallel.js";
20
+ import { searchYoucom } from "./engines/you.js";
21
+ import { searchAnysearch } from "./engines/anysearch.js";
22
+ import { searchSearxng } from "./engines/searxng.js";
15
23
  import { parseTimeRange } from "./engines/shared.js";
16
24
 
17
25
  export const MCP_ENGINE_IDS = [
@@ -19,6 +27,14 @@ export const MCP_ENGINE_IDS = [
19
27
  "bing",
20
28
  "ddg",
21
29
  "ddg-lite",
30
+ "anysearch",
31
+ "searxng",
32
+ "exa",
33
+ "tavily",
34
+ "keenable",
35
+ "firecrawl",
36
+ "parallel",
37
+ "you",
22
38
  "google",
23
39
  "baidu",
24
40
  "brave",
@@ -30,6 +46,7 @@ export const MCP_ENGINE_IDS = [
30
46
  ];
31
47
 
32
48
  export const MCP_FREE_ENGINES = ["bing", "ddg", "ddg-lite"];
49
+ export const MCP_KEYLESS_ENGINES = ["anysearch", "searxng", "exa", "tavily", "keenable", "firecrawl", "parallel", "you"];
33
50
  export const MCP_KEYED_ENGINES = ["google", "baidu", "brave", "metaso", "yandex", "yuanbao", "deepseek-tools", "zhipu"];
34
51
 
35
52
  function env(name, fallback = "") {
@@ -83,6 +100,54 @@ export async function runMcpEngine(id, query, options = {}) {
83
100
  return { engine, ...(await searchDdgHtml(query, maxResults, { safeSearch, timeRange }, signal)) };
84
101
  case "ddg-lite":
85
102
  return { engine, ...(await searchDdgLite(query, maxResults, { safeSearch, timeRange }, signal)) };
103
+ case "anysearch":
104
+ return {
105
+ engine,
106
+ ...(await searchAnysearch(query, maxResults, signal, env("ANYSEARCH_API_KEY"))),
107
+ };
108
+ case "searxng": {
109
+ const instances = env("MCP_SEARXNG_INSTANCES")
110
+ .split(/[\s,]+/)
111
+ .map((entry) => entry.trim())
112
+ .filter(Boolean);
113
+ return {
114
+ engine,
115
+ ...(await searchSearxng(query, maxResults, {
116
+ timeRange,
117
+ ...(instances.length ? { searxngInstances: instances } : {}),
118
+ ...(env("MCP_SEARXNG_BEARER_TOKEN") ? { searxngBearerToken: env("MCP_SEARXNG_BEARER_TOKEN") } : {}),
119
+ }, signal)),
120
+ };
121
+ }
122
+ case "exa": {
123
+ const key = env("EXA_API_KEY");
124
+ return {
125
+ engine,
126
+ ...(key
127
+ ? await searchExa(query, maxResults, key, timeRange, signal)
128
+ : await searchExaMCP(query, maxResults, signal)),
129
+ };
130
+ }
131
+ case "tavily":
132
+ return { engine, ...(await searchTavily(query, maxResults, env("TAVILY_API_KEY"), timeRange, signal)) };
133
+ case "keenable":
134
+ return { engine, ...(await searchKeenable(query, maxResults, env("KEENABLE_API_KEY"), timeRange, signal)) };
135
+ case "firecrawl":
136
+ return { engine, ...(await searchFirecrawl(query, maxResults, env("FIRECRAWL_API_KEY"), timeRange, signal)) };
137
+ case "parallel": {
138
+ const key = env("PARALLEL_API_KEY");
139
+ return {
140
+ engine,
141
+ ...(key
142
+ ? await searchParallel(query, maxResults, key, timeRange, signal)
143
+ : await searchParallelMCP(query, maxResults, timeRange, signal)),
144
+ };
145
+ }
146
+ case "you":
147
+ return {
148
+ engine,
149
+ ...(await searchYoucom(query, maxResults, env("YDC_API_KEY") || env("YOUCOM_API_KEY"), signal)),
150
+ };
86
151
  case "google": {
87
152
  const key = requireEnv("GOOGLE_CSE_API_KEY", "Google");
88
153
  const cx = requireEnv("GOOGLE_CSE_ID", "Google");
package/lib/mcp_server.js CHANGED
@@ -25,7 +25,7 @@ const TOOLS = [
25
25
  properties: {
26
26
  query: { type: "string", description: "Search query." },
27
27
  max_results: { type: "integer", minimum: 1, maximum: 20, description: "Number of results, default 8." },
28
- engine: { type: "string", enum: MCP_ENGINE_IDS, description: "Engine id; auto tries Bing then DuckDuckGo. Keyed engines are explicit." },
28
+ engine: { type: "string", enum: MCP_ENGINE_IDS, description: "Engine id; auto tries Bing then DuckDuckGo. Other engines are explicit; several keyless-capable engines work without a key." },
29
29
  safe_search: { type: "string", enum: SAFE_SEARCH, description: "Safe-search level." },
30
30
  time_range: { type: "string", enum: ["day", "week", "month", "year"], description: "Optional freshness filter." },
31
31
  },
@@ -67,7 +67,7 @@ const TOOLS = [
67
67
  {
68
68
  name: "multi_search",
69
69
  description:
70
- "Search several engines in parallel and return merged, deduplicated results with the engines that found each source. Defaults to the free engines; keyed engines run only when listed.",
70
+ "Search several engines in parallel and return merged, deduplicated results with the engines that found each source. Defaults to the free engines; other engines run only when listed.",
71
71
  inputSchema: {
72
72
  type: "object",
73
73
  properties: {
@@ -78,7 +78,7 @@ const TOOLS = [
78
78
  minItems: 1,
79
79
  maxItems: 10,
80
80
  uniqueItems: true,
81
- description: "Engine ids; default Bing + DuckDuckGo HTML/Lite. Keyed engines are explicit.",
81
+ description: "Engine ids; default Bing + DuckDuckGo HTML/Lite. Other engines are explicit.",
82
82
  },
83
83
  max_results: { type: "integer", minimum: 1, maximum: 20, description: "Total merged results, default 8." },
84
84
  time_range: { type: "string", enum: ["day", "week", "month", "year"], description: "Optional freshness filter." },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-free-search",
3
- "version": "0.9.60",
3
+ "version": "0.9.61",
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",