
CodeWiki MCP — AI-generated docs for GitHub repos
io.github.izzzzzi由 GitHub 账号 izzzzzi 发布v1.1.1更新于 Oct 24, 2026
MCP server for codewiki.google: search repos, fetch wiki docs, ask questions
概览
将 AI 助手连接到 codewiki.google,可搜索 GitHub 仓库、获取 AI 生成的 wiki 文档,并就某个仓库提问。
- 可以做什么
- 搜索 codewiki.google 已收录的仓库,可限制返回数量(最多 50 条),并附带字节数与耗时等元数据。获取仓库生成的 wiki,支持完整 markdown 或结构化页面两种形式,仓库可用 owner/repo、GitHub 链接或自然语言描述指定。就某个仓库提出自然语言问题,可选传入最多 20 条历史对话。通过关键词提取加 GitHub 搜索接口,把口语化描述解析为 owner/repo。
- 适用场景
- 适合让助手讲解不熟悉的开源项目如何运作、把其生成的文档引入对话,或在不自行阅读源码的情况下回答关于某个仓库的具体问题。
- 运行要求
- 以 stdio 在本地运行,通常通过 npx 配合 Node.js,也可从源码或 Docker 启动。需要访问 codewiki.google 的网络,自然语言仓库解析还需访问 GitHub 搜索接口。可选环境变量包括 CODEWIKI_BASE_URL、CODEWIKI_REQUEST_TIMEOUT、CODEWIKI_MAX_RETRIES、CODEWIKI_RETRY_DELAY 和 GITHUB_TOKEN;无需身份验证。
安装
在 SourceWeft 中
- 打开 控制台中的 CodeWiki MCP — AI-generated docs for GitHub repos,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
📚 codewiki-mcp
MCP server for codewiki.google — search, fetch docs, and ask questions about any open-source repo
[CI] [Release] [npm version] [npm downloads] [License: MIT] [TypeScript] [Node.js]
🇷🇺 Русский | 🇬🇧 English
MCP server that connects any AI assistant to codewiki.google — AI-generated wiki documentation for open-source repositories.
📖 Overview
codewiki-mcp is a Model Context Protocol server that gives AI assistants access to codewiki.google — a service that generates comprehensive wiki documentation for any GitHub repository. Search repos, fetch full docs, or ask natural-language questions — all through MCP.
✨ Features
🚀 Quick Start
Using npx (no install)
From source
Transports
🐳 Docker
🔧 MCP Client Configuration
Cursor
Add to .cursor/mcp.json:
Claude Desktop
Add to claude_desktop_config.json:
Claude Code
Windsurf
Add to your Windsurf MCP config:
VS Code (Copilot)
Add to .vscode/mcp.json:
Local development
💡 Usage
Prompts you can use in any MCP-compatible client:
Fetch complete documentation:
Get structured pages:
Ask with natural language:
🛠️ MCP Tools
🔍 codewiki_search_repos
Search repositories indexed by codewiki.google.
📄 codewiki_fetch_repo
Fetch generated wiki content for a repository.
💬 codewiki_ask_repo
Ask a natural-language question about a repository.
📊 Response Format
✅ Success — Search
✅ Success — Fetch (pages mode)
✅ Success — Ask
❌ Error Response
Error codes: VALIDATION, RPC_FAIL, TIMEOUT, NLP_RESOLVE_FAIL
⚙️ How It Works
Data Flow
Google Batchexecute RPC
codewiki.google uses Google's internal batchexecute RPC format (not REST, not GraphQL). The client:
- Builds a POST request with
f.req=...body - Sends it to
/_/BoqAngularSdlcAgentsUi/data/batchexecute - Receives a response with XSSI prefix
)]}'\n - Parses
wrb.frframes and extracts the typed payload
Each tool maps to an RPC ID:
🧠 NLP Repo Resolution
Users can type natural language instead of owner/repo:
🔄 Retry with Exponential Backoff
4xx errors (client errors) are never retried.
🖥️ CLI
⚡ Configuration
Environment variables:
You can also create a .env file in the project root:
📁 Project Structure
❓ Troubleshooting
Permission Denied
Connection Refused (HTTP/SSE)
Timeout Errors
For large repositories, increase the timeout:
NLP Resolution Fails
If natural-language input doesn't resolve, use explicit format:
Set GITHUB_TOKEN to avoid GitHub API rate limits for unauthenticated requests.
🧑💻 Development
🤝 Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feat/my-feature) - Use Conventional Commits for commit messages
- Run
npm run typecheck && npm run testbefore submitting - Open a Pull Request
📄 License
MIT © codewiki-mcp contributors
来源:README.md,提交 46536bb
工具
0版本历史
1- v1.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分