用途:通过 DeepWiki MCP 服务器访问公开 GitHub 仓库的文档,用于查询仓库 wiki、了解文档结构,并基于仓库文档回答复杂问题。
主要能力:
- 提问:就任意 GitHub 仓库提问,获得 AI 驱动、有上下文依据的回答。
- 读取 wiki 结构:获取某仓库的文档主题列表。
- 读取 wiki 内容:查看仓库 wiki 中指定路径的文档。
使用方式(命令保持原样):
- 提问:node ./scripts/deepwiki.js ask <owner/repo> "your question"
- 读取结构:node ./scripts/deepwiki.js structure <owner/repo>
- 读取内容:node ./scripts/deepwiki.js contents <owner/repo> <path>
示例:
- node ./scripts/deepwiki.js ask cognitionlabs/devin "How do I use MCP?"
- node ./scripts/deepwiki.js structure facebook/react
限制:基础服务器为 https://mcp.deepwiki.com/mcp;仅适用于公开仓库;无需身份认证。