mirror of
https://git.openapi.site/https://github.com/desirecore/registry.git
synced 2026-12-05 11:39:08 +08:00
18 lines
838 B
Markdown
18 lines
838 B
Markdown
---
|
|
title: 安装 Context7 MCP
|
|
---
|
|
|
|
# 安装 Context7 MCP 4.9.1
|
|
|
|
仅声明已验证的 Linux 路径。需要 Node.js 20.18.1 或更高版本、npm,以及可访问 npm 和 Context7 的网络。不需要 API 密钥即可查询公开文档。
|
|
|
|
使用目录清单所固定的 stdio 配置:
|
|
|
|
```sh
|
|
npx --yes --ignore-scripts @upstash/context7-mcp@4.9.1 --transport stdio
|
|
```
|
|
|
|
先完成 MCP 连接测试,再按 DesireCore 的安装流程登记。成功时可发现 `resolve-library-id` 和 `query-docs`。连接测试失败时不要登记。npm 包来源、版本、SHA-256 与 MIT 许可证见 [第三方声明](./THIRD_PARTY_NOTICES.md)。
|
|
|
|
库名、检索文本及请求元数据会发送到 Upstash。不要发送私有代码、内部仓库信息、个人数据或令牌。匿名调用受上游限流,不在此目录配置凭据。
|