setup-context7-mcp
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUser Input:
text
$ARGUMENTS用户输入:
text
$ARGUMENTSGuide for setup Context7 MCP server
Context7 MCP服务器设置指南
1. Determine setup context
1. 确定设置上下文
Ask the user where they want to store the configuration:
Options:
-
Project level (shared via git) - Configuration tracked in version control, shared with team
- CLAUDE.md updates go to:
./CLAUDE.md
- CLAUDE.md updates go to:
-
Project level (personal preferences) - Configuration stays local, not tracked in git
- CLAUDE.md updates go to:
./CLAUDE.local.md - Verify these files are listed in , add them if not
.gitignore
- CLAUDE.md updates go to:
-
User level (global) - Configuration applies to all projects for this user
- CLAUDE.md updates go to:
~/.claude/CLAUDE.md
- CLAUDE.md updates go to:
Store the user's choice and use the appropriate paths in subsequent steps.
询问用户希望将配置存储在何处:
选项:
-
项目级(通过Git共享) - 配置受版本控制跟踪,与团队共享
- CLAUDE.md更新将保存至:
./CLAUDE.md
- CLAUDE.md更新将保存至:
-
项目级(个人偏好) - 配置保留在本地,不被Git跟踪
- CLAUDE.md更新将保存至:
./CLAUDE.local.md - 确认这些文件已列在中,若未添加则补充
.gitignore
- CLAUDE.md更新将保存至:
-
用户级(全局) - 配置适用于该用户的所有项目
- CLAUDE.md更新将保存至:
~/.claude/CLAUDE.md
- CLAUDE.md更新将保存至:
保存用户的选择,并在后续步骤中使用相应的路径。
2. Check if Context7 MCP server is already setup
2. 检查Context7 MCP服务器是否已设置
Check whether you have access to Context7 MCP server by making request.
if no, load https://raw.githubusercontent.com/upstash/context7/refs/heads/master/README.md file and guide user through setup process that applicable to agent/operation system.
通过发送请求检查是否可访问Context7 MCP服务器。
若无法访问,加载https://raw.githubusercontent.com/upstash/context7/refs/heads/master/README.md文件,并引导用户完成适用于Agent/操作系统的设置流程。
3. Update CLAUDE.md file
3. 更新CLAUDE.md文件
Use the path determined in step 1:
- Parse user input, if it empty read current project structure and used technologies, if project empty ask user to provide list of languages and frameworks that planned to be used in this project.
- Search through context7 MCP for relevant technologies documentation
- Update the appropriate CLAUDE.md file with following content:
markdown
undefined使用步骤1中确定的路径:
- 解析用户输入,若输入为空则读取当前项目结构及所使用的技术;若项目为空,则请用户提供该项目计划使用的语言和框架列表。
- 在Context7 MCP中搜索相关技术文档
- 使用以下内容更新对应的CLAUDE.md文件:
markdown
undefinedUse Context7 MCP for Loading Documentation
Use Context7 MCP for Loading Documentation
Context7 MCP is available to fetch up-to-date documentation with code examples.
Recommended library IDs:
- - short description of documentation
[doc-id]
undefinedContext7 MCP is available to fetch up-to-date documentation with code examples.
Recommended library IDs:
- - short description of documentation
[doc-id]
undefined