秘塔AI搜索 providers for ctx.web:web_search 返回网页摘要,web_fetch 读取网页全文 markdown,多范围搜索(网页/文库/论文/图片/视频/播客)。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-web-search-metaso
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:TZHR-invest/dsh-plugins#path:/packages/dsh-web-search-metaso
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
Metaso (秘塔AI搜索) providers for the DeepSeek Harness web seam (ctx.web).
Upgrades the built-in web_search / web_fetch tools with Metaso's search API — no new tool names to learn:
web_searchreturns page summaries: Metaso'ssummary(long) /snippet(short) map to each source's snippet field — the model gets excerpts plus cited URLs, not just a link list.web_fetchreads full pages: Metaso/readerconverts any web page to markdown.- Dedicated retrieval endpoint: one search = one HTTP call (≈ ¥0.03), no model turn consumed.
- Multi-scope search: webpage / document / paper / image / video / podcast, via the
scopeconfig or ascope:paper keywordsquery prefix.
Registers
WebSearchProvider(idmetaso) andWebFetchProvider(idmetaso-reader) on the samectx.webseam as@deepseek-ai/dsh-web-search-deepseek— switch backends anytime.
Install
tar xzf dsh-web-search-metaso-install.tar.gz && cd dsh-web-search-metaso-install
bash install.sh --restart # interactive: enter your Metaso API key
- Get an API key: https://metaso.cn/search-api/api-keys (
mk-prefix) - Non-interactive:
bash install.sh --metaso-api-key mk-xxx --restart - Env-var based:
bash install.sh --metaso-api-key-env METASO_API_KEY - Install without switching the search backend:
bash install.sh --no-switch - The installer runs contract preflight + headless boot smoke test before
--restart; a plugin problem aborts the restart automatically.
Uninstall
bash install.sh --uninstall # removes wiring and copies, then restart dsh
Config
Written to the profile's cordis.patch.yml by the installer:
- insert:
- id: web-search-metaso
name: 'dsh-web-search-metaso'
config:
apiKey: 'mk-xxx' # or apiKeyEnv: 'METASO_API_KEY'
scope: 'webpage'
- id: web
config:
searchProvider: metaso # delete this block to keep deepseek-official
fetchProvider: metaso-reader # ⚠️ 必写,见下方说明
⚠️
fetchProvider必须一起写(2026-09-11 四台机器实测)profile patch 的
config块对基础层是整体替换而非合并。基础层本身设有fetchProvider: http,若这里只写searchProvider,fetchProvider会被吞掉 →http与metaso-reader两个 fetch provider 同时可用 → 运行时抛:multiple usable web providers are registered (http, metaso-reader); configure one explicitly结果是
web_fetch完全不可用(工具调用直接失败,与目标 URL 无关)。 二者择一:metaso-reader(秘塔服务端抓取,返回干净 markdown,不受本地 DNS / fake-ip 影响)或http(本地直连,免费,但会拒绝解析到非公网 IP 的域名—— 在 OpenClash fake-ip 网络下境外站点基本都取不到)。
Optional: apiKeyEnv (default METASO_API_KEY, also resolved via the credentials domain), baseURL (default https://metaso.cn/api/v1), scope (default webpage), includeSummary (default true), includeRawContent (default false), maxResults (default 10, 1-100).
会话遥测事件(web/metaso-search-request)为何要判断宿主词汇表
本插件每次搜索会向会话日志追加一条遥测事件 web/metaso-search-request。dsh 的会话
格式迁移器只认识宿主内置的事件类型白名单,遇到白名单外的类型会拒绝整段会话:
format v0 contains unknown historical event type "web/metaso-search-request" at seq N;
migration refuses unknown historical events even when ignorable
→ 后果是凡是用过本插件搜索的历史会话都打不开(2026-09-11 实发:某机 10 个会话受影响)。
且 session.append 不校验类型,所以写入时一切正常,故障只在读回时才暴露。
(ignorable 也救不了:v0 迁移路径下 allowLegacySteering 恒为 true。)
因此 recordRequest 会先用动态 import 取宿主的 KNOWN_SESSION_EVENT_TYPES,
宿主不认识就跳过这条遥测 —— 宁可少一条日志,也不让会话读不出来。
用动态 import 而非静态:静态 import 解析失败会直接毁掉整个插件;动态失败只跳过遥测。 已打开的旧会话(日志里已含该事件)需要宿主侧补丁才能读回, 见 meshdeck 仓
scripts/dsh-reapply-session-event-patch.py。
链接
同类插件
Tencent/BrowserSkill#dsh-plugin-browserskill★ 7907
BrowserSkill 的 DeepSeek Harness 浏览器自动化桥接插件,通过原生浏览器工具控制可见的 Chrome 和 Edge Agent Window,支持可访问性与 VOM 页面观察、截图、隔离的多会话控制和 Web UI 实时观察浮层。
omdsh-dev/dsh-browser#packages/browser/bridge-browser★ 746
Chrome 侧边栏扩展,让 DSH 直接操控你的浏览器,无需视觉能力。
liustack/modsearch★ 572
纯文本 agent 的联网搜索桥:搜索网页与 X,返回结构化 JSON 证据(search/fetch/引用)。
DDDMUC/dsh-free-search★ 281
DSH 免费搜索插件:7 个引擎(DuckDuckGo/Bing/SearXNG 免费 + Exa/Perplexity/DeepSeek 付费)、自动回退、设置页 UI(API key 输入 + 官网链接)、web_fetch、引擎测试工具。
Tabbit-Browser/dsh-tabbit★ 101
让 DeepSeek Harness 能够控制 Tabbit 浏览器:安装即自动加载 tabbit-browser skill,检测国际版 Tabbit 与国内版 Tabbit Browser 正式版(>= 1.9.0),检查 tabbit-cli 常驻运行时,按平台诊断调用 CLI 所需的 DSH sandbox 模式,并在没有合格版本时通过后台任务下载与系统地区匹配的正式版安装包。
wqty123/dsh-browser★ 84
共享真实浏览器:用户可观看并随时接管的原生 Electron 窗口,agent 通过 CDP 驱动,内置 20 个 browser_* 工具(打开/快照/执行/填表/截图/下载/登录态);任务级会话隔离、登录态持久化、人机验证识别,纯 `dsh web` 无需桌面外壳即可自托管。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。