Agent skill

mcp-context7-docs

Query up-to-date documentation and code examples for any programming library or framework. Use when looking up API docs, finding code examples, or checking library usage. Triggers on "how to use [library]", "docs for [package]", "show me examples of [framework]", "Context7 lookup".

Stars 33
Forks 3

Install this agent skill to your Project

npx add-skill https://github.com/vaayne/agent-kit/tree/main/skills/mcp-context7-docs

SKILL.md

Context7 Documentation

MCP service at https://mcp.context7.com/mcp (http) with 2 tools.

Requirements

  • mh CLI must be installed. If not available, install with:
    bash
    curl -fsSL https://raw.githubusercontent.com/vaayne/mcphub/main/scripts/install.sh | sh
    

Usage

List tools: `mh list -u https://mcp.context7.com/mcp -t http`
Get tool details: `mh inspect -u https://mcp.context7.com/mcp -t http <tool-name>`
Invoke tool: `mh invoke -u https://mcp.context7.com/mcp -t http <tool-name> '{"param": "value"}'`

Notes

  • Run inspect before invoking unfamiliar tools to get full parameter schema
  • Timeout: 30s default, use --timeout <seconds> to adjust
  • Important: Always call resolveLibraryId first to get the Context7-compatible library ID before calling queryDocs, unless user provides ID in /org/project format
  • Do not call either tool more than 3 times per question

Tools

Tool Description
resolveLibraryId Resolves a package/product name to a Context7-compatible library ID. Must be called before queryDocs to get a valid library ID.
queryDocs Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. Requires a Context7-compatible library ID.

Tool Parameters

resolveLibraryId

Required:
  libraryName (string)  — library name to search for, e.g. "react", "nextjs"
  query (string)        — the question or task you need help with (used for ranking)

queryDocs

Required:
  libraryId (string)    — exact Context7 ID, e.g. "/vercel/next.js" or "/vercel/next.js/v14"
  query (string)        — specific question, e.g. "How to set up JWT authentication in Express.js"

Workflow

  1. Resolve library ID — get the Context7-compatible ID for the library:

    bash
    mh invoke -u https://mcp.context7.com/mcp -t http resolveLibraryId '{"libraryName": "react", "query": "useState hook examples"}'
    
  2. Query documentation — use the resolved ID to fetch docs:

    bash
    mh invoke -u https://mcp.context7.com/mcp -t http queryDocs '{"libraryId": "/facebook/react", "query": "how to use useState hook"}'
    

Expand your agent's capabilities with these related and highly-rated skills.

vaayne/agent-kit

pi-delegate

Delegate tasks to Pi subagents with preset roles (oracle, worker, reviewer, ui-engineer, librarian) or ad-hoc prompts. Use for fresh context, model specialization, second opinions, code review, isolated execution, or parallel task delegation.

33 3
Explore
vaayne/agent-kit

mcp-jetbrains-ide

Control JetBrains IDE (IntelliJ, WebStorm, PyCharm) via MCP. Use when manipulating IDE files, running configurations, searching code, or performing refactoring. Triggers on "open in IDE", "run configuration", "refactor code", "IDE search", "JetBrains".

33 3
Explore
vaayne/agent-kit

web-fetch

Fetch and extract clean content from URLs using Jina Reader API. Use when users need to read webpage content, extract article text, or fetch URL content for analysis. Triggers on "fetch this page", "read this URL", "extract content from", "get the content of", "what does this page say".

33 3
Explore
vaayne/agent-kit

tmux

Control interactive terminal sessions via tmux. Use when tasks need persistent REPLs, parallel CLI agents, or any process requiring a TTY that simple shell execution cannot handle.

33 3
Explore
vaayne/agent-kit

specs-dev

Plan-first development workflow with review gates. Use when implementing features, refactoring, or any task requiring structured planning, iterative implementation with reviews, and clean commits. Triggers on requests like "implement feature X", "plan and build", "spec-driven development", or when user wants disciplined, reviewed code changes.

33 3
Explore
vaayne/agent-kit

mcp-grep-code

Search real-world code examples from over a million public GitHub repositories. Use when finding code patterns, implementation examples, or how libraries are used in practice. Triggers on "find code examples", "how is [library] used", "search GitHub code", "grep.app search", "code pattern".

33 3
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results