dsh-context7
DSH 的 Context7 最新库文档检索插件,提供 context7_search 等模型工具。
AI 分析
核心用途是让 AI 模型获取最新的第三方库开发文档。适合需要编写最新 API 代码的开发者,支持配置 API Key 以获取更高的请求限额。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Nrxous/dsh-context7说明文档
阅读完整 README ↗配置 API key(可选)
在插件自身目录的 cordis.patch.yml(安装后位于 ~/.dsh/profiles/web/node_modules/dsh-context7/cordis.patch.yml)里给插件行填 config.apiKey:
- insert:
- id: dsh-context7
name: dsh-context7
config:
apiKey: "ctx7sk-..."
保存后重启 DSH 生效。填了 key 后请求会带 Authorization: Bearer 头,获得更高限额。
⚠️ 注意:
node_modules内是 pnpm 安装副本,执行dsh plugin --profile web update dsh-context7会覆盖此文件、丢失 key 配置;如需不被更新覆盖,可将同样的config.apiKey覆盖写到 profile 层~/.dsh/profiles/web/cordis.patch.yml。