dsh-search-mcp
Replace dsh's built-in web search with search MCP servers (Tavily / Brave / Exa / Perplexity / DuckDuckGo / custom), configured from the web Settings page. When this plugin is enabled the built-in DeepSeek search provider is disabled.
AI 分析
核心用途是扩展和自定义 DSH 的联网搜索源。适合对默认搜索结果不满意、需要使用专业学术或隐私搜索服务的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:gxpppp/dsh-search-mcpドキュメント
README 全文を読む ↗3. 配置搜索服务器的 API key(密钥不入仓库):
配置搜索服务器(设置页)
打开 Web 界面 → 设置 → Plugins → search-mcp,维护 servers 列表:
| 字段 | 说明 |
|---|---|
id | 服务器唯一标识,defaultServer 用它引用 |
kind | tavily / brave / exa / perplexity / duckduckgo / custom,自动补全默认端点、鉴权方式和工具名 |
transport | http(streamable-http,默认)或 stdio(本机命令,如 duckduckgo) |
url | http 端点,如 https://mcp.tavily.com/mcp/ |
command / args | stdio 启动命令,如 npx + ["-y", "duckduckgo-mcp-server"] |
apiKey | 密钥(secret 字段,界面按密码框显示、落盘脱敏) |
apiKeyEnv | 或填环境变量/凭证名(如 TAVILY_API_KEY),运行时经 dsh 凭证服务解析 |
authStyle / authParam | key 的注入方式:http 用 query(如 tavilyApiKey)或 header(如 x-api-key);stdio 时 authParam 即注入的环境变量名(如 BRAVE_API_KEY) |
toolName | 该 MCP 的搜索工具名,如 tavily_search / brave_web_search / web_search_exa / pplx_search / ddg_web_search |
maxResults | 单服务器结果数上限(可选,默认取全局 maxResults) |
全局字段:defaultServer(默认走哪个服务器)、maxResults(默认 8)、searchTimeoutMs(默认 30000)。
设置页保存的内容写入 $DSH_HOME/settings.yaml 的 search-mcp: 段,优先于行配置;provider 每次搜索重新读取快照,改完立即生效。