mirror of
https://git.openapi.site/https://github.com/desirecore/registry.git
synced 2026-12-06 03:19:01 +08:00
8 lines
1.1 KiB
Markdown
8 lines
1.1 KiB
Markdown
# Context7 MCP
|
|
|
|
先用 `resolve-library-id` 定位公开软件库,再用 `query-docs` 查版本化文档。若检索失败或上游限流,可改查该库的官方文档。
|
|
|
|
请求会发送到 Upstash 托管的 Context7。只发送公开库名与经过筛选的非敏感查询;不发送私有代码、内部仓库信息、个人数据或令牌。默认不设置 API 密钥或启用实验功能。确需密钥时,使用受保护的本地环境变量 `CONTEXT7_API_KEY`,不要把密钥写入共享配置或命令参数。需要 Node.js ≥20.18.1、npm 和可访问 Context7 的网络。
|
|
|
|
Resolve a public library with `resolve-library-id`, then query its versioned documentation with `query-docs`. Fall back to the library's official documentation if Context7 is unavailable or rate-limited. Requests go to Upstash's hosted service. Send only public library names and nonsensitive queries. No API key or experimental tool is configured by default. If using a key, store it separately as the local `CONTEXT7_API_KEY` environment variable, not in a shared manifest or process arguments.
|