Fetches up-to-date, version-pinned library documentation and code examples from context7.com for DSH agents via context7_search and context7_get_docs tools.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-context7
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Nrxous/dsh-context7
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time. Only install sources you trust, and pin a commit (github:owner/repo#sha).
README
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
Links
More in this category
superdesigndev/treg★ 477
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
zhaoolee/notes#dsh-plugin★ 147
Export DSH conversations as Smartisan Notes-style PNGs, or create and update Markdown notes in a configured account-scoped workspace.
taxueseek/argo#dsh-plugin★ 101
Search built for agents: multilingual coverage across web, academic, code, shopping, finance, news, and encyclopedias.
omdsh-dev/dsh-data-agent★ 55
Let the AI connect to databases and write SQL for you.
heartleo/hn-cli#hacker-news★ 50
Hacker News tools for feeds, discussion threads, search, and user profiles.
geml-spec/geml#integrations/dsh-plugin★ 24
Block-addressed document editing: an MCP server exposing geml_get / geml_set / geml_check and friends, so an agent reads or rewrites one addressed block of a Markdown or GEML document instead of the whole file. Ships the GEML authoring skill and a code-graph skill that builds and navigates a project call graph as GEML codemaps.