rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:LJH-snow/dsh-tool-context7
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Context7 up-to-date documentation integration for DeepSeek Harness (dsh) as a Cordis plugin. The agent can search libraries, pull current documentation snippets for a library ID, and search docs across libraries — so answers use current APIs instead of outdated training data.
npm install @libai168/dsh-tool-context7
Requires @deepseek-ai/cordis (^4.0.1) and @deepseek-ai/dsh-tools (^0.1.0-rc.6) as peer dependencies.
- name: 'github:LJH-snow/dsh-tool-context7'
config:
# baseUrl: 'https://context7.com/api'
# apiKeyEnv: 'CONTEXT7_API_KEY'
# timeoutMs: 30000
The API key is optional: without one, requests run in Context7's public mode with lower rate limits. When configured, the plugin reads the key (format ctx7sk-...) from the environment variable named by apiKeyEnv (default: CONTEXT7_API_KEY). Do not put a usable key in source, examples, tests, or committed configuration. Create the key in the Context7 dashboard.
The baseUrl override must be an absolute http:// or https:// root URL. Only publicly reachable hosts are allowed: localhost, loopback, private, link-local, CGNAT, multicast, reserved/documentation/benchmark ranges, and every IANA special-purpose block are rejected, and a hostname whose DNS results contain any such address fails closed before the request is sent. Credentials, query strings, fragments, and non-root paths are not allowed.
| Tool | Description | Write |
|---|---|---|
context7_auth_test |
Verify access and report whether a key is configured | No |
context7_search_libraries |
Search libraries by name and return library IDs | No |
context7_get_library_docs |
Get documentation snippets for one library ID | No |
context7_search_docs |
Search docs across libraries with optional library/version/language hints | No |
truncated.fetch and uses a 30-second timeout by default.{ ok: false, reason } or { found: false, reason } tool results.This version uses the Context7 v2/v3 endpoints verified against the official SDK source: GET /v2/libs/search, GET /v2/context, and GET /v3/search (repeated library params for up to four library hints). There is no documented write surface, so none is implemented.
npm install
npm run typecheck
npm test
npm run build
npm pack --dry-run
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。