Context7 Mcp

upstash/context7/plugins/copilot/context7/skills/context7-mcp

作者 upstashfeef1b2f6078ac8a33acd38d76817000af001373无许可证62K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库今天更新

This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.

AI 生成的概览

通过 Context7 MCP 工具获取最新的库与框架文档,而不是依赖训练数据。

功能
该技能指导智能体使用 Context7 MCP 工具获取库、框架和 API 的最新文档。它描述了一套流程:先用 resolve-library-id 解析库 ID,再根据名称、基准评分和版本选择最佳匹配,然后用 query-docs 获取文档,每次调用只针对一个概念。智能体随后依据获取的文档回答问题,并附上代码示例和版本引用。
适用场景
当用户询问库或框架的安装与配置问题、请求涉及 Prisma 或 Supabase 等库的代码、需要 API 参考,或提到具体框架或版本时使用。
运行要求
需要智能体可用的 Context7 MCP 服务器及其 resolve-library-id 和 query-docs 工具,并需要访问该服务的网络连接。不包含脚本,仅为说明性指令。

When the user asks about libraries, frameworks, or needs code examples, use Context7 to fetch current documentation instead of relying on training data.

When to Use This Skill

Activate this skill when the user:

  • Asks setup or configuration questions ("How do I configure Next.js middleware?")
  • Requests code involving libraries ("Write a Prisma query for...")
  • Needs API references ("What are the Supabase auth methods?")
  • Mentions specific frameworks (React, Vue, Svelte, Express, Tailwind, etc.)

How to Fetch Documentation

Step 1: Resolve the Library ID

Call resolve-library-id with:

  • libraryName: The library name extracted from the user's question
  • query: What to look up in the library's documentation (improves relevance ranking)

Step 2: Select the Best Match

From the resolution results, choose based on:

  • Exact or closest name match to what the user asked for
  • Higher benchmark scores indicate better documentation quality
  • If the user mentioned a version (e.g., "React 19"), prefer version-specific IDs

Step 3: Fetch the Documentation

Call query-docs with:

  • libraryId: The selected Context7 library ID (e.g., /vercel/next.js)
  • query: What to look up in the library's documentation, scoped to a single concept

If the user's question spans multiple distinct concepts (e.g. routing and auth and caching), make a separate query-docs call per concept with the same library ID, unless the question is about how the concepts interact — combined queries dilute ranking and return shallow results for each topic.

Step 4: Use the Documentation

Incorporate the fetched documentation into your response:

  • Answer the user's question using current, accurate information
  • Include relevant code examples from the docs
  • Cite the library version when relevant

Guidelines

  • Be specific: Describe what to look up in the library's documentation, but keep each query to a single concept
  • One topic per query: Split multi-topic questions into separate query-docs calls — resolve the library ID once, then query per concept, unless the question is about how the concepts interact
  • Version awareness: When users mention versions ("Next.js 15", "React 19"), use version-specific library IDs if available from the resolution step
  • Prefer official sources: When multiple matches exist, prefer official/primary packages over community forks

来源与署名

来源:upstash/context7位于plugins/copilot/context7/skills/context7-mcp提交feef1b2

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架

更多来自 upstash/context7 的技能

Context7 Mcp

upstash

通过 Context7 MCP 工具获取最新的库与框架文档,用于回答 API 和代码问题。

Software Development62K今天更新

Context7 Mcp

upstash

通过 Context7 MCP 工具获取最新的库与框架文档,用于回答 API 和配置问题。

Software Development62K今天更新

Context7 Mcp

upstash

通过 Context7 MCP 工具获取最新的库与框架文档,而不是依赖训练数据。

AI & Agents62K今天更新

Context7 Mcp

upstash

通过 Context7 MCP 工具获取最新的库与框架文档,而不是依赖训练数据。

Software Development62K今天更新

Context7 Mcp

upstash

通过 Context7 MCP 工具获取最新的库与框架文档,而不是依赖训练数据。

Software Development62K今天更新

Find Docs

upstash

Retrieves up-to-date documentation, API references, and code examples for any developer technology. Use this skill whenever the user asks about a specific library, framework, SDK, CLI tool, or cloud service — even for well-known ones like React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot. Your training data may not reflect recent API changes or version updates. Always use for: API syntax questions, configuration options, version migration issues, "how do I" questions mentioning a library name, debugging that involves library-specific behavior, setup instructions, and CLI tool usage. Use even when you think you know the answer — do not rely on training data for API details, signatures, or configuration options as they are frequently outdated. Always verify against current docs. Prefer this over web search for library documentation and API details.

待分类62K今天更新
Context7 Mcp · plugins/copilot/context7/skills/context7-mcp 智能体技能 | SourceWeft