← 返回
开发者工具 中文

DeepWiki MCP

Query DeepWiki MCP to get AI-grounded answers about any public GitHub repository. Use when answering questions about a repo's source code, architecture, conf...
查询 DeepWiki MCP 获取公共 GitHub 仓库的 AI 解答。适用于回答有关仓库源码、架构、配置等问题。
chunhualiao
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 614
下载
💾 18
安装
1
版本
#latest

概述

DeepWiki MCP

Query any public GitHub repository using DeepWiki's AI-powered documentation and Q&A service. No API key, no auth, free.

MCP endpoint: https://mcp.deepwiki.com/mcp

Scope & Boundaries

This skill handles:

  • Asking natural-language questions about any public GitHub repo
  • Listing documentation topics indexed by DeepWiki
  • Fetching full wiki contents for a repo
  • Running queries via the included helper script

This skill does NOT handle:

  • Private repository access (requires paid Devin account)
  • Modifying repositories or submitting PRs
  • Real-time code analysis (DeepWiki may lag a few days behind latest commits)
  • Local code search or grep (use standard file tools for that)

Inputs

InputRequiredDescription
------------------------------
QuestionYesNatural-language question about a repo
RepositoryNoowner/repo format. Defaults to openclaw/openclaw
ActionNoask (default), topics, or docs

Outputs

  • AI-grounded text answer with source references from the repo
  • Or a structured list of documentation topics
  • Or full wiki contents (large output)

Workflow

Step 1 — Run the helper script

The script is located in this skill's directory at scripts/deepwiki.sh.

# Ask a question (defaults to openclaw/openclaw)
<skill_dir>/scripts/deepwiki.sh ask "How does session compaction work?"

# Ask about a specific repo
<skill_dir>/scripts/deepwiki.sh ask facebook/react "How does concurrent mode work?"

# List documentation topics
<skill_dir>/scripts/deepwiki.sh topics openclaw/openclaw

# Get full wiki contents (large output — prefer ask for targeted queries)
<skill_dir>/scripts/deepwiki.sh docs openclaw/openclaw

Replace with the directory containing this SKILL.md.

Step 2 — Interpret and relay the answer

DeepWiki returns AI-generated answers grounded in the repo's actual source code. The response typically includes:

  • Direct answer to the question
  • References to specific files and code paths
  • Context about related functionality

Relay the answer to the user, adding your own context if you have additional knowledge.

Step 3 — Follow up if needed

If the answer is incomplete or raises new questions:

  • Ask a more specific follow-up question
  • Use topics to find relevant documentation sections
  • Use docs for broader context (but note: output can be very large)

Direct curl (fallback)

If the helper script is unavailable:

curl -s -X POST https://mcp.deepwiki.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "ask_question",
      "arguments": {
        "repoName": "owner/repo",
        "question": "YOUR QUESTION"
      }
    }
  }' | grep '^data:' | grep '"id":1' | sed 's/^data: //' | \
  python3 -c "import json,sys; d=json.load(sys.stdin); print(d['result']['content'][0]['text'])"

MCP Tools Reference

ToolPurposeArguments
--------------------------
ask_questionAsk any question, get AI-grounded answerrepoName, question
read_wiki_structureList documentation topics for a reporepoName
read_wiki_contentsGet full wiki docs for a reporepoName

Error Handling

ProblemDetectionAction
----------------------------
Timeout (>60s)curl hangs or no responseRetry once; DeepWiki may be under load
Empty responseNo data: lines in SSE streamCheck if repo exists and is public
Repo not indexedError message about unknown repoTry again — DeepWiki indexes on first request
Rate limitedHTTP 429 or error responseWait 30s and retry
Script not foundFile not at expected pathUse direct curl fallback

Success Criteria

  • DeepWiki returns a substantive answer (not an error or empty response)
  • Answer references actual code/files from the repository
  • User's question is addressed with grounded information

Configuration

No persistent configuration required. The skill uses:

  • exec tool to run the helper script (bash + curl + python3)
  • No API keys or authentication needed
  • Works for any public GitHub repository

System dependencies:

DependencyPurpose
---------------------
bashScript execution
curlHTTP requests to MCP endpoint
python3JSON parsing of SSE responses

Notes

  • Responses take 10-30s (AI generates answers server-side)
  • ask_question is the most useful tool — use it first
  • DeepWiki crawls repos periodically; may lag behind very recent commits
  • Works for any public GitHub repo, not just OpenClaw
  • For private repos, a paid Devin account is required

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 00:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,918
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,437
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,477