DeepSHPlugins
dsh-context7 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-context7

工具與整合JavaScriptApache-2.0

透過 context7_search 與 context7_get_docs 工具,為 DSH 智慧體從 context7.com 獲取最新、可鎖定版本的庫文件與程式碼示例。

5 StarsNrxous 更新時間 2026-08-19
訪問 GitHub 倉庫
dsh-context7 專案預覽

專案介紹

中文

透過 context7_search 與 context7_get_docs 工具,為 DSH 智慧體從 context7.com 獲取最新、可鎖定版本的庫文件與程式碼示例。

English

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.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
Nrxous
倉庫
Nrxous/dsh-context7
GitHub Stars
5
Forks
0
開發語言
JavaScript
許可證
Apache-2.0
最近推送
2026-08-19
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

62/ 100
維護活躍
85
文件與實用資訊
85
生態關注度
22
安裝便捷訊號
55
專案宣告訊號
100

近 23 天仍在更新;README 含完整安裝與使用說明;關注度尚低(5)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add dsh-context7

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

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:

ToolPurpose
context7_searchSearch 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_docsFetch 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

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案