Setup Context7 Mcp

NeoLabHQ/context-engineering-kit/plugins/mcp/skills/setup-context7-mcp

作者 NeoLabHQ23e2428e809d77717f8acc9659c374a3a1fcb93e無授權條款收錄於 2026年10月9日更新於 2026年10月9日

Guide for setup Context7 MCP server to load documentation for specific technologies.

僅含說明AI & Agents
AI 產生的概覽

引導設定 Context7 MCP 伺服器,並將建議的說明文件庫 ID 寫入 CLAUDE.md 檔案。

功能
此技能會引導完成 Context7 MCP 伺服器的設定:先詢問設定要存放的位置(專案共用、專案本機或使用者全域),再檢查伺服器是否已可連線。若尚未可用,會引導使用者查閱上游 README,依其代理與作業系統完成設定。接著解析所需的語言與框架,在 Context7 中搜尋對應說明文件,並將建議的函式庫 ID 寫入所選的 CLAUDE.md 檔案。
適用情境
當代理需要透過 Context7 取得最新的函式庫說明文件,而 MCP 伺服器尚未設定時使用。也適合希望專案或使用者的 CLAUDE.md 列出所用技術對應 Context7 說明文件 ID 的情況。
執行需求
需要 Context7 MCP 伺服器,以及取得上游 README 與查詢 Context7 的網路連線。不含指令碼,僅編輯 CLAUDE.md 或 CLAUDE.local.md 檔案,可能還需更新 .gitignore。

User Input:

text
$ARGUMENTS

Guide for setup Context7 MCP server

1. Determine setup context

Ask the user where they want to store the configuration:

Options:

  1. Project level (shared via git) - Configuration tracked in version control, shared with team

    • CLAUDE.md updates go to: ./CLAUDE.md
  2. 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 .gitignore, add them if not
  3. User level (global) - Configuration applies to all projects for this user

    • CLAUDE.md updates go to: ~/.claude/CLAUDE.md

Store the user's choice and use the appropriate paths in subsequent steps.

2. Check if Context7 MCP server is already setup

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.

3. Update CLAUDE.md file

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
### Use Context7 MCP for Loading Documentation
Context7 MCP is available to fetch up-to-date documentation with code examples.
**Recommended library IDs**:
- `[doc-id]` - short description of documentation

來源與署名

來源:NeoLabHQ/context-engineering-kit位於plugins/mcp/skills/setup-context7-mcp提交23e2428

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架