360 Secure SkillHub
360 安全技能中心

DeepWiki MCP Skill

该技能基于DeepWiki MCP,需先安装uxc工具并将GitHub仓库在DeepWiki索引。核心功能包括AI回答代码库问题、获取仓库文档主题列表、查看仓库完整文档。典型场景为理解陌生代码库、查找特定API、获取仓库上下文。通过命令行传入仓库路径及参数调用,输出为MCP JSON信封,需从指定路径提取内容。

jolestar
jolestar
热度 72.41
最近更新 2026-05-17 13:14:45
分类:知识依赖:代码执行 / MCP 服务应用场景:研究 / 概念解释

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add deepwiki-mcp-skill
Metadata
name
deepwiki-mcp-skill
description
Ask questions and read documentation about any GitHub repository using DeepWiki MCP. Use when you need to understand a codebase, find specific APIs, or get context about a repository.
metadata
{"short-description":"Query GitHub repo docs via DeepWiki"}

DeepWiki Skill

Use this skill to query GitHub repository documentation and ask questions about codebases.

Prerequisites

  • uxc is installed and available in PATH.
  • Network access to mcp.deepwiki.com/mcp

Note: Repositories must be indexed on DeepWiki first. Visit https://deepwiki.com to index a repository.

Install uxc

Choose one of the following methods:

Homebrew (macOS/Linux):

brew tap holon-run/homebrew-tap
brew install uxc

Install Script (macOS/Linux, review before running):

curl -fsSL https://raw.githubusercontent.com/holon-run/uxc/main/scripts/install.sh -o install-uxc.sh
less install-uxc.sh
bash install-uxc.sh

Cargo:

cargo install uxc

Core Workflow

  1. Use fixed link command by default:

    • command -v deepwiki-mcp-cli
    • If missing, create it: uxc link deepwiki-mcp-cli mcp.deepwiki.com/mcp
    • deepwiki-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. Ask a question about a repository:

    • deepwiki-mcp-cli ask_question repoName=owner/repo question='your question'
  3. Read wiki structure:

    • deepwiki-mcp-cli read_wiki_structure repoName=owner/repo
  4. Read wiki contents:

    • deepwiki-mcp-cli read_wiki_contents repoName=owner/repo

Available Tools

  • ask_question: Ask any question about a GitHub repository and get an AI-powered response
  • read_wiki_structure: Get a list of documentation topics for a repository
  • read_wiki_contents: View documentation about a repository

Usage Examples

Ask about a codebase

deepwiki-mcp-cli ask_question repoName=facebook/react question='How does useState work?'

Explore repository structure

deepwiki-mcp-cli read_wiki_structure '{"repoName":"facebook/react"}'

Read documentation

deepwiki-mcp-cli read_wiki_contents repoName=facebook/react

Output Parsing

The response is an MCP JSON envelope. Extract the content from .data.content[].text.

Notes

  • Maximum 10 repositories per question
  • Some popular repositories may already be indexed
  • Responses are grounded in the actual codebase
  • deepwiki-mcp-cli <operation> ... is equivalent to uxc mcp.deepwiki.com/mcp <operation> ....
  • If link setup is temporarily unavailable, use direct uxc mcp.deepwiki.com/mcp ... calls as fallback.

Reference Files

  • Workflow details: references/usage-patterns.md