Nrxous/dsh-context7
Project Overview项目介绍
dsh-context7 is a native plugin built exclusively for DeepSeek Harness (DSH) that connects the DSH agent to the official Context7 Public API v2, enabling DSH to fetch up-to-date, version-pinned software library documentation and code examples. It can be installed two official ways: either from the public npm registry via the dsh plugin --profile web add dsh-context7 command, or directly from the source GitHub repository using dsh plugin --profile web add github:Nrxous/dsh-context7. After installation completes, you will need to restart your DSH instance for the plugin to load and activate its two registered tools for use.
Once activated, the plugin runs automatically whenever the DSH agent needs current documentation for a third-party software library, pulling relevant code snippets and doc excerpts directly into the agent’s working context. You can also manually trigger either of the two tools if you want to look up documentation for a specific library or specific version on demand. It is designed for DSH users who regularly work with third-party libraries in their development or documentation tasks, ensuring they always get accurate, up-to-date reference material.
The plugin is written entirely in JavaScript and requires no build step to run, with its only runtime dependency @deepseek-ai/schemastery already provided by the DSH host environment. You can use the plugin for free without an API key, though keyless usage is subject to low rate limits set by Context7. If you need higher rate limits, you can add a Context7 API key to your DSH profile’s patch config file and restart DSH to apply the change. The plugin is released under the open-source Apache 2.0 license.
这是一款专为DeepSeek Harness(DSH)开发的原生插件,用于连接DSH与Context7公共API v2,帮助DSH代理获取最新的、带版本锁定的软件库文档和代码示例。它提供两个工具:context7_search可按名称搜索库获取Context7库ID,context7_get_docs可获取匹配自然语言问题的重排后文档片段。插件支持通过npm或GitHub直接安装,安装后重启DSH即可启用。
日常使用中,当DSH代理需要调用某个第三方软件库的接口时,会自动触发该插件获取对应文档,用户也可以主动调用工具查询指定库对应版本的文档。它适合需要开发涉及第三方库项目的DSH用户,解决了内置文档过时、找不到对应版本代码示例的问题,需要更高速率的用户可自行配置API密钥。
该插件采用纯JavaScript编写,无需额外构建步骤,运行依赖的@deepseek-ai/schemastery由DSH宿主提供,开发者可通过热挂载完成本地开发调试。它以Apache-2.0许可证开源,无API密钥即可使用,仅受低速率限制,配置密钥后可解除该限制,安装和配置后都需要重启DSH生效。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-context7(Nrxous/dsh-context7)
仓库:https://github.com/Nrxous/dsh-context7
本站详情页:https://www.yhbd.top/plugins/nrxous-dsh-context7/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 Apache-2.0 · ⭐ 4 · 最近提交 2026-08-19 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-context7
把 Nrxous/dsh-context7 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-context7
Up-to-date library documentation for DeepSeek Harness, powered by Context7.
This host-only plugin connects DSH to the official Context7 Public API v2, so your agent can always fetch current, version-pinned documentation and code examples for software libraries. It registers two model tools:
| Tool | Purpose |
|---|---|
context7_search |
Search libraries by name (optionally with a natural-language question for LLM ranking). Returns matches with their Context7 library IDs (e.g. /vercel/next.js). |
context7_get_docs |
Fetch LLM-reranked documentation for one library by ID (or bare name, auto-resolved) plus a natural-language question: code snippets, doc snippets, library rules and source URLs. Supports version pinning (e.g. v15.1.8) and a fast low-latency mode. |
No API key is required — Context7 allows keyless access with low rate limits. For higher limits, get a ctx7sk-prefixed key from the Context7 dashboard.
Installing
From npm (published):
dsh plugin --profile web add dsh-context7
From GitHub:
dsh plugin --profile web add github:Nrxous/dsh-context7
Restart DSH after installing. The tools are called automatically whenever the model needs current library docs, or you can trigger them by asking directly.
Configuring the API key (optional)
Set config.apiKey in your profile patch layer — ~/.dsh/profiles/<name>/cordis.patch.yml — which is applied after every bundle layer and survives plugin updates:
- id: dsh-context7
config:
apiKey: ctx7sk_your-key-here
Save and restart DSH. With a key set, requests carry an Authorization: Bearer header for higher rate limits. Without one, the plugin keeps working at keyless limits.
Development
Pure JS plugin, no build step — main: src/index.js, runtime dependency @deepseek-ai/schemastery (provided by the host).
# Hot-mount into the web profile (no restart)
dev_install_package <this-directory>
# or inside the injector environment
dev_inject_plugin <this-directory>
License
Apache-2.0
ZSeven-W/dsh-openpencil
joeseesun/qiaomu-rss-dsh
LAU-MARS/dsh-cad
penguin-oo/dsh-bookmarks
tylina/dsh-tylina
SherUnlocked-4869/dsh-plugin-msg-nav