Nrxous/dsh-context72

dsh-context7

DSH 的 Context7 最新库文档检索插件,提供 context7_search 等模型工具。

AI 分析

核心用途是让 AI 模型获取最新的第三方库开发文档。适合需要编写最新 API 代码的开发者,支持配置 API Key 以获取更高的请求限额。

包名
dsh-context7
版本
0.1.0
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Nrxous/dsh-context7

配置 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