Setup Context7 Mcp

NeoLabHQ/context-engineering-kit/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 伺服器,先詢問使用者設定要放在專案層級(共用或個人)還是使用者層級。它會檢查 Context7 是否已可使用,若否,則引導使用者查閱專案 README 中適用於其代理與作業系統的安裝步驟。接著它會在 Context7 中搜尋與專案所用語言和框架相關的說明文件,並把建議的程式庫 ID 寫入選定的 CLAUDE.md 檔案。
適用情境
當專案希望啟用 Context7 MCP,讓代理能取得附程式碼範例的最新程式庫說明文件時使用。適合專案初始建置或上手階段,需要把說明文件來源登錄到 CLAUDE.md 的情境。
執行需求
需要存取 Context7 MCP 伺服器,並在設定過程中連網取得 Context7 的 README。它會讀取專案結構以推斷所用技術,並寫入 CLAUDE.md 或 CLAUDE.local.md 檔案。不含指令碼,僅為說明性指示。

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位於skills/setup-context7-mcp提交23e2428

授權條款: 無授權條款

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

檢舉或申請下架