Mcp context7 docs

From Dicklesworthstone/pi_agent_rust · View interactive version

Mcp context7 docs is an AI agent skill from the GitHub repository Dicklesworthstone/pi_agent_rust. 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".

How to use this skill

Skill file

Context7 Documentation

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

Requirements

```bash

curl -fsSL https://raw.githubusercontent.com/vaayne/mcphub/main/scripts/install.sh | sh

```

Usage

List tools: mh -u https://mcp.context7.com/mcp -t http list

Get tool details: mh -u https://mcp.context7.com/mcp -t http inspect <tool-name>

Invoke tool: mh -u https://mcp.context7.com/mcp -t http invoke <tool-name> '{"param": "value"}'

Notes

Tools

| Tool | Description |

| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

| 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 obtained from resolveLibraryId. |

| resolveLibraryId | Resolves a package/product name to a Context7-compatible library ID. Must be called before queryDocs to get a valid library ID. |

Workflow

  1. Resolve library ID: First, resolve the library name to a Context7 ID

```bash

mh -u https://mcp.context7.com/mcp -t http invoke resolveLibraryId '{"libraryName": "react"}'

```

  1. Query documentation: Use the resolved ID to fetch docs

```bash

mh -u https://mcp.context7.com/mcp -t http invoke queryDocs '{"context7CompatibleLibraryID": "/facebook/react", "topic": "hooks"}'

```

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.