Nrxous/dsh-context7

Plugin插件 Native原生 ⭐ 4 Apache-2.0 Docs & Writing文档与写作Sessions & Context会话与上下文

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生效。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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

← 上一个 Prev dsh-longbridge 下一个 Next dsh-mcp-diff →