关于 mcp-deepwiki
mcp-deepwiki 用于查询 GitHub 仓库在 DeepWiki 上的公开文档,可向文档提问,也可读取维基结构和内容。
主要功能
- 01针对仓库文档提问
- 02列出维基文档主题
- 03读取维基内容
适用场景
- 01获取关于 GitHub 仓库的 AI 回答
- 02浏览仓库的文档主题
- 03阅读可用的维基内容
MCP 相关
它连接到 https://mcp.deepwiki.com/mcp 上的 DeepWiki MCP 服务,并调用提问、结构和内容工具。
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ aahl/ skills --skill mcp-deepwiki安装后在 Claude Code 中输入/mcp-deepwiki确认已加载。
详细介绍
DeepWiki
DeepWiki MCP 服务可通过编程方式访问 DeepWiki 的公开仓库文档和搜索功能(Ask Devin)。
MCP 服务 URL:https://mcp.deepwiki.com/mcp
提问(推荐)
该工具的结果由 AI 生成,因此超时时间至少需要 1 分钟。
npx -y mcporter call "${MCP_URL}.ask_question" repoName:owner/repo question:"User's questions"
读取 Wiki 结构
npx -y mcporter call "${MCP_URL}.read_wiki_structure" repoName:owner/repo
读取 Wiki 内容
npx -y mcporter call "${MCP_URL}.read_wiki_contents" repoName:owner/repo
Schema
/**
* Get a list of documentation topics for a GitHub repository.
* Args:
* repoName: GitHub repository in owner/repo format (e.g. "facebook/react")
*/
function read_wiki_structure(repoName: string): object;
{
"type": "object",
"properties": {
"repoName": {
"type": "string"
}
},
"required": [
"repoName"
]
}
/**
* View documentation about a GitHub repository.
* Args:
* repoName: GitHub repository in owner/repo format (e.g. "facebook/react")
*/
function read_wiki_contents(repoName: string): object;
{
"type": "object",
"properties": {
"repoName": {
"type": "string"
}
},
"required": [
"repoName"
]
}
/**
* Ask any question about a GitHub repository and get an AI-powered, context-grounded response.
* Args:
* repoName: GitHub repository or list of repositories (max 10) in owner/repo format
* question: The question to ask about the repository
*/
function ask_question(repoName: unknown, question: string): object;
{
"type": "object",
"properties": {
"repoName": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
]
},
"question": {
"type": "string"
}
},
"required": [
"repoName",
"question"
]
}
评论
支持 Markdown