|
|
7 months ago | |
|---|---|---|
| .. | ||
| .claude-plugin | 22d3def39e Merge pull request #2 from anthropics/noahz/official_language | 9 months ago |
| agents | 32f2cdbe0c feat: update tools with better skill/agent format prompt | 7 months ago |
| commands | 32f2cdbe0c feat: update tools with better skill/agent format prompt | 7 months ago |
| skills | 32f2cdbe0c feat: update tools with better skill/agent format prompt | 7 months ago |
| .mcp.json | 24cec23cf1 Switch Context7 MCP to remote HTTP server | 7 months ago |
| README.md | 42d7afb1f0 fix: installation guide | 7 months ago |
Context7 solves a common problem with AI coding assistants: outdated training data and hallucinated APIs. Instead of relying on stale knowledge, Context7 fetches current documentation directly from source repositories.
This plugin provides:
docs-researcher agent for focused lookups/context7:docs for manual documentation queriesInstall the plugin from the official marketplace:
claude plugin install context7@claude-plugins-official
Searches for libraries and returns Context7-compatible identifiers.
Input: "next.js"
Output: { id: "/vercel/next.js", name: "Next.js", versions: ["v15.1.8", "v14.2.0", ...] }
Fetches documentation for a specific library, ranked by relevance to your question.
Input: { libraryId: "/vercel/next.js", query: "app router middleware" }
Output: Relevant documentation snippets with code examples
The plugin works automatically when you ask about libraries:
For manual lookups, use the command:
/context7:docs next.js app router
/context7:docs /vercel/next.js/v15.1.8 middleware
Or spawn the docs-researcher agent when you want to keep your main context clean:
spawn docs-researcher to look up Supabase auth methods
To get documentation for a specific version, include the version in the library ID:
/vercel/next.js/v15.1.8
/supabase/supabase/v2.45.0
The resolve-library-id tool returns available versions, so you can pick the one that matches your project.