← 返回 Skills 市场
jolestar

Context7 MCP Skill

作者 jolestar · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
417
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install context7-mcp-skill
功能描述
Query up-to-date library documentation and code examples using Context7 MCP. Use when you need current, version-specific documentation for npm packages, Pyth...
使用说明 (SKILL.md)

Context7 Skill

Use this skill to query library documentation and code examples.

Prerequisites

  • uxc skill is installed (see uxc skill for installation)
  • Network access to https://mcp.context7.com/mcp

Core Workflow

  1. Use fixed link command by default:

    • command -v context7-mcp-cli
    • If missing, create it: uxc link context7-mcp-cli mcp.context7.com/mcp
    • context7-mcp-cli -h
    • If command conflict is detected and cannot be safely reused, stop and ask skill maintainers to pick a different fixed command name.
  2. Resolve a library name to get library ID:

    • context7-mcp-cli resolve-library-id libraryName=react query='useState hook'
  3. Query documentation:

    • context7-mcp-cli query-docs libraryId=/reactjs/react.dev query='how to use useState'

Available Tools

  • resolve-library-id: Resolve a package/library name to Context7 library ID
  • query-docs: Query documentation and code examples for a specific library

Usage Examples

Find React documentation

# First resolve the library
context7-mcp-cli resolve-library-id libraryName=react query='React useState hook'

Query specific documentation

context7-mcp-cli query-docs '{"libraryId":"/reactjs/react.dev","query":"how to use useEffect"}'

Query Node.js documentation

context7-mcp-cli resolve-library-id libraryName=node query='file system'

Notes

  • Requires library name first, then use the returned libraryId for queries
  • Context7 provides version-specific, up-to-date documentation
  • Supports npm packages, Python libraries, and more
  • context7-mcp-cli \x3Coperation> ... is equivalent to uxc mcp.context7.com/mcp \x3Coperation> ....
  • If link setup is temporarily unavailable, use direct uxc mcp.context7.com/mcp ... calls as fallback.

Reference Files

  • Workflow details: references/usage-patterns.md
安全使用建议
This skill appears to do what it says: it uses the uxc tool to invoke Context7's MCP at mcp.context7.com/mcp to resolve library IDs and query docs. Before installing or invoking it: 1) Confirm you trust the external endpoint (mcp.context7.com) because queries (including code snippets or questions) will be sent there. 2) Check the 'uxc' tool/skill (a required dependency) for its own network/credential behaviors—uxc may require account credentials or other permissions not declared by this skill. 3) Avoid sending secrets or private code in queries to the external service. 4) If you need to restrict outbound network access, block calls to the MCP endpoint or avoid installing this skill. The included validate.sh is only a local repo lint/validation script (requires ripgrep) and is not executed by the agent at runtime.
功能分析
Type: OpenClaw Skill Name: context7-mcp-skill Version: 1.0.0 The skill bundle is designed to query library documentation via Context7 MCP. All instructions in `SKILL.md` and `references/usage-patterns.md` are directly related to this stated purpose, involving the `uxc` skill to set up a `context7-mcp-cli` alias and then use it. The `scripts/validate.sh` actively checks for and prevents potentially risky patterns like dynamic command renaming or specific JSON input methods, indicating a focus on secure and predictable agent behavior. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or prompt injection attempts to subvert the agent's core function.
能力评估
Purpose & Capability
Name/description match the instructions: SKILL.md shows how to resolve library IDs and query docs at mcp.context7.com/mcp via a fixed command (context7-mcp-cli) or the uxc fallback. The required behavior (calling an external documentation MCP) aligns with the stated purpose.
Instruction Scope
Runtime instructions are narrowly scoped to: check/create the fixed link command via the uxc skill, call context7-mcp-cli resolve-library-id and query-docs, and parse responses. The skill does not instruct reading arbitrary local files, harvesting system env vars, or exfiltrating data beyond calling the documented external endpoint. It does require network access to mcp.context7.com/mcp, which is expected for this purpose.
Install Mechanism
There is no install specification; the skill is instruction-only. The only script included (scripts/validate.sh) is a repo validation helper and is not executed at runtime by the agent. No downloads or archive extracts are present.
Credentials
The skill requests no environment variables or credentials itself, which is proportionate. It does depend on the external 'uxc' skill/tool being present; that tool may have its own network/credential requirements not declared here. Users should verify the trustworthiness and requirements of uxc before using this skill.
Persistence & Privilege
The skill does not request always:true, does not modify other skills' configs, and has no install-time persistence. The only operational side-effect is creating a fixed-link command via uxc (uxc link context7-mcp-cli ...), which is scoped to uxc's linking mechanism.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install context7-mcp-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /context7-mcp-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of context7-mcp-skill. - Enables querying up-to-date, version-specific documentation and code examples for libraries via Context7 MCP. - Supports npm packages, Python libraries, and others. - Requires the uxc skill and network access to mcp.context7.com. - Provides CLI tools to resolve library names and query documentation. - Includes usage instructions and example commands for quick reference.
元数据
Slug context7-mcp-skill
版本 1.0.0
许可证
累计安装 3
当前安装数 3
历史版本数 1
常见问题

Context7 MCP Skill 是什么?

Query up-to-date library documentation and code examples using Context7 MCP. Use when you need current, version-specific documentation for npm packages, Pyth... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 417 次。

如何安装 Context7 MCP Skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install context7-mcp-skill」即可一键安装,无需额外配置。

Context7 MCP Skill 是免费的吗?

是的,Context7 MCP Skill 完全免费(开源免费),可自由下载、安装和使用。

Context7 MCP Skill 支持哪些平台?

Context7 MCP Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Context7 MCP Skill?

由 jolestar(@jolestar)开发并维护,当前版本 v1.0.0。

💬 留言讨论