context7
Fetch up-to-date library documentation. Use when user asks about libraries, frameworks, or needs current API references/code examples.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Fetch up-to-date library documentation. Use when user asks about libraries, frameworks, or needs current API references/code examples.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Manage Azure DevOps via CLI including repos, pull requests, pipelines, builds, work items, and boards. Use when working with Azure DevOps, az devops commands, CI/CD pipelines, PRs, or Azure Boards work items.
Closed-loop planning discipline for non-trivial changes. Use when creating implementation plans, reviewing plan completeness, or preparing PRs that require structured planning evidence.
Design and create portable Agent Skills with effective triggers, concise instructions, and reusable scripts, references, or assets. Use when adding a new skill or substantially restructuring an existing skill.
Dispatch parallel subagents for independent tasks without shared state. Use when facing 2+ independent failures, debugging unrelated subsystems, or researching separate topics concurrently.
Manage GitHub via CLI including pull requests, issues, workflows, actions, releases, and repositories. Use when working with GitHub, gh commands, GitHub Actions CI/CD, PRs, issues, releases, or repository management.
Manage Linear issues, teams, and projects via CLI including issue tracking, sprint workflows, branch creation, and PR generation. Use when working with Linear, tracking issues, starting work on tasks, creating PRs from Linear issues, or managing teams and projects.
| name | context7 |
| description | Fetch up-to-date library documentation. Use when user asks about libraries, frameworks, or needs current API references/code examples. |
Fetch current docs instead of relying on training data.
Context7 is configured via .mcp.json and provides MCP tools automatically:
Available MCP Tools:
mcp__context7__resolve-library-id - Search for library by namemcp__context7__query-docs - Fetch documentation for a libraryUsage:
Tool: mcp__context7__resolve-library-id
Parameters: { "libraryName": "react", "query": "hooks" }
Tool: mcp__context7__query-docs
Parameters: { "libraryId": "/websites/react_dev", "query": "useState hook" }
If MCP tools are unavailable, use the script matching the local environment:
# Bash
./scripts/search.sh react hooks
./scripts/fetch-docs.sh /websites/react_dev "useState hook"
# Python
python3 ./scripts/search.py react hooks
python3 ./scripts/fetch-docs.py /websites/react_dev "useState hook"
# PowerShell
./scripts/search.ps1 react hooks
./scripts/fetch-docs.ps1 /websites/react_dev "useState hook"
For higher rate limits, add your Context7 API key to .env:
CONTEXT7_API_KEY=your-key-here
Get your key at: https://context7.com/dashboard
Works without API key but with lower rate limits.