dsh-free-search 0.9.65 → 0.9.66
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 +2 -2
- package/lib/client.js +1 -1
- package/lib/mcp_engines.js +28 -5
- package/package.json +1 -1
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` / `
|
|
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` / `agy` 时才会使用付费或有额度限制的引擎;`anysearch` / `searxng` / `exa` / `tavily` / `keenable` / `firecrawl` / `parallel` / `you` 可显式选择,且有免 key 档;`degoog` 需要 `MCP_DEGOOG_INSTANCES`;`baidu-html` / `so360` / `sogou` / `wechat` / `toutiao` 是默认关闭的 HTML SERP 抓取引擎。支持 `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` / `
|
|
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` / `agy`) 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`; `baidu-html` / `so360` / `sogou` / `wechat` / `toutiao` are opt-in HTML SERP scrapers. 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.
|
|
780
|
+
const PLUGIN_VERSION = "0.9.66";
|
|
781
781
|
const PLUGIN_REPO_URL = "https://github.com/DDDMUC/dsh-free-search";
|
|
782
782
|
// 右侧浮动目录(#85):条目顺序即页面顺序,anchor 是页面里对应 field 的 id。
|
|
783
783
|
const NAV_ITEMS = [
|
package/lib/mcp_engines.js
CHANGED
|
@@ -37,6 +37,8 @@ import { searchDegoog } from "./engines/degoog.js";
|
|
|
37
37
|
import { searchOpenai } from "./engines/openai.js";
|
|
38
38
|
import { searchGemini } from "./engines/gemini.js";
|
|
39
39
|
import { searchClaude } from "./engines/claude.js";
|
|
40
|
+
import { searchSerpEngine, SERP_ENGINE_IDS } from "./serp_engines.js";
|
|
41
|
+
import { searchAgy, agyAvailable } from "./agy.js";
|
|
40
42
|
import { parseTimeRange } from "./engines/shared.js";
|
|
41
43
|
|
|
42
44
|
export const MCP_ENGINE_IDS = [
|
|
@@ -69,22 +71,26 @@ export const MCP_ENGINE_IDS = [
|
|
|
69
71
|
"kimi",
|
|
70
72
|
"aliyun",
|
|
71
73
|
"doubao",
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
+
"zhihu_global",
|
|
75
|
+
"zhihu_site",
|
|
74
76
|
"specstream",
|
|
75
77
|
"deepseek-official",
|
|
76
78
|
"degoog",
|
|
77
79
|
"openai",
|
|
78
80
|
"gemini",
|
|
79
81
|
"claude",
|
|
82
|
+
"agy",
|
|
80
83
|
];
|
|
81
84
|
|
|
85
|
+
export const MCP_SERP_ENGINES = [...SERP_ENGINE_IDS];
|
|
86
|
+
MCP_ENGINE_IDS.push(...MCP_SERP_ENGINES);
|
|
87
|
+
|
|
82
88
|
export const MCP_FREE_ENGINES = ["bing", "ddg", "ddg-lite"];
|
|
83
89
|
export const MCP_KEYLESS_ENGINES = ["anysearch", "searxng", "exa", "tavily", "keenable", "firecrawl", "parallel", "you"];
|
|
84
90
|
export const MCP_KEYED_ENGINES = [
|
|
85
91
|
"google", "baidu", "brave", "metaso", "yandex", "yuanbao", "deepseek-tools", "zhipu",
|
|
86
92
|
"perplexity", "serpbase", "serply", "outcrawl", "tinyfish", "jina", "kimi", "aliyun", "doubao",
|
|
87
|
-
"
|
|
93
|
+
"zhihu_global", "zhihu_site", "specstream", "deepseek-official",
|
|
88
94
|
"openai", "gemini", "claude",
|
|
89
95
|
];
|
|
90
96
|
export const MCP_HOSTED_ENGINES = ["degoog"];
|
|
@@ -267,9 +273,9 @@ export async function runMcpEngine(id, query, options = {}) {
|
|
|
267
273
|
return { engine, ...(await searchAliyun(query, maxResults, requireEnv("DASHSCOPE_API_KEY", "Aliyun"), timeRange, signal)) };
|
|
268
274
|
case "doubao":
|
|
269
275
|
return { engine, ...(await searchDoubao(query, maxResults, requireEnv("DOUBAO_SEARCH_API_KEY", "Doubao"), timeRange, signal)) };
|
|
270
|
-
case "
|
|
276
|
+
case "zhihu_global":
|
|
271
277
|
return { engine, ...(await searchZhihuGlobal(query, maxResults, requireEnv("ZHIHU_API_KEY", "Zhihu"), timeRange, signal)) };
|
|
272
|
-
case "
|
|
278
|
+
case "zhihu_site":
|
|
273
279
|
return { engine, ...(await searchZhihuSite(query, maxResults, requireEnv("ZHIHU_API_KEY", "Zhihu"), signal)) };
|
|
274
280
|
case "specstream":
|
|
275
281
|
return { engine, ...(await searchSpecStream(query, maxResults, requireEnv("SPECSTREAM_API_KEY", "SpecStream"), signal)) };
|
|
@@ -315,7 +321,24 @@ export async function runMcpEngine(id, query, options = {}) {
|
|
|
315
321
|
claudeBaseUrl: env("MCP_CLAUDE_BASE_URL"),
|
|
316
322
|
}, signal)),
|
|
317
323
|
};
|
|
324
|
+
case "agy": {
|
|
325
|
+
if (!agyAvailable()) throw new Error("Antigravity CLI is not installed (install Antigravity or set AGY_BIN)");
|
|
326
|
+
return {
|
|
327
|
+
engine,
|
|
328
|
+
...(await searchAgy(query, maxResults, {
|
|
329
|
+
signal,
|
|
330
|
+
...(env("MCP_AGY_MODEL") ? { model: env("MCP_AGY_MODEL") } : {}),
|
|
331
|
+
})),
|
|
332
|
+
};
|
|
333
|
+
}
|
|
318
334
|
default:
|
|
335
|
+
if (SERP_ENGINE_IDS.includes(engine)) {
|
|
336
|
+
return { engine, ...(await searchSerpEngine(engine, query, {
|
|
337
|
+
maxResults,
|
|
338
|
+
timeRange,
|
|
339
|
+
lang,
|
|
340
|
+
})) };
|
|
341
|
+
}
|
|
319
342
|
throw new Error(`unknown engine "${engine}"`);
|
|
320
343
|
}
|
|
321
344
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-free-search",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.66",
|
|
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",
|