原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

CodeWiki MCP — AI-generated docs for GitHub repos

作者:izzzzzi版本 1.1.1i★ –i在你的电脑上运行
注册名称io.github.izzzzzi/codewiki-mcp

安装

概览

作者提供的说明(英文原文)

MCP server for codewiki.google: search repos, fetch wiki docs, ask questions

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 开发者工具

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "codewiki": {
      "command": "npx",
      "args": [
        "-y",
        "codewiki-mcp"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add codewiki -- npx -y codewiki-mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "codewiki": {
      "command": "npx",
      "args": [
        "-y",
        "codewiki-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "codewiki": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "codewiki-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 izzzzzi 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 1396 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1396 个服务器的 9% 更新
  • 基础检查结果等于或优于此分类中其他 1396 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

CodeWiki MCP — AI-generated docs for GitHub repos 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.1.1)于8个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:GitHub, Desktop Commander, Cloudflare MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitHub

作者:github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

电脑或云端★ 34,245MIT4天前更新
安装

Desktop Commander

作者:wonderwhy-er

MCP server for terminal commands, file operations, and process management

在你的电脑上运行★ 10,225MIT16天前更新
安装

Cloudflare MCP

作者:cloudflare

Cloudflare MCP servers

在云端运行★ 4,446Apache-2.014个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

📚 codewiki-mcp

MCP server for codewiki.google — search, fetch docs, and ask questions about any open-source repo

🇷🇺 Русский | 🇬🇧 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

FeatureDescription
🔍 Search ReposFind repositories indexed by codewiki.google
📄 Fetch Wiki DocsGet full markdown or structured pages for any repo
💬 Ask QuestionsNatural-language Q&A with conversation history
🧠 NLP Repo ResolutionType naturally — wink-nlp extracts keywords and resolves to owner/repo
📡 Multiple Transportsstdio (default), Streamable HTTP, SSE
🔄 Retry with BackoffAutomatic retries with exponential backoff on 5xx errors
🐳 Docker SupportMulti-stage Alpine build
📊 Response MetadataByte count and elapsed time on every response

🚀 Quick Start

Using npx (no install)
npx -y codewiki-mcp@latest
From source
git clone https://github.com/izzzzzi/codewiki-mcp.git

cd codewiki-mcp npm install npm run build

Transports
# stdio (default)

node dist/cli.js

Streamable HTTP

node dist/cli.js --http --port 3000

SSE

node dist/cli.js --sse --port 3001

🐳 Docker
docker build -t codewiki-mcp .

stdio

docker run -it --rm codewiki-mcp

HTTP

docker run -p 3000:3000 codewiki-mcp --http

with environment variables

docker run -p 3000:3000 \ -e CODEWIKI_REQUEST_TIMEOUT=60000 \ -e CODEWIKI_MAX_RETRIES=5 \ -e GITHUB_TOKEN=ghp_your_token \ codewiki-mcp --http


🔧 MCP Client Configuration

Cursor

Add to .cursor/mcp.json:

{

"mcpServers": { "codewiki-mcp": { "command": "npx", "args": ["-y", "codewiki-mcp@latest"] } } }

Claude Desktop

Add to claude_desktop_config.json:

{

"mcpServers": { "codewiki-mcp": { "command": "npx", "args": ["-y", "codewiki-mcp@latest"] } } }

Claude Code

claude mcp add codewiki-mcp -- npx -y codewiki-mcp@latest

Windsurf

Add to your Windsurf MCP config:

{

"mcpServers": { "codewiki-mcp": { "command": "npx", "args": ["-y", "codewiki-mcp@latest"] } } }

VS Code (Copilot)

Add to .vscode/mcp.json:

{

"servers": { "codewiki-mcp": { "command": "npx", "args": ["-y", "codewiki-mcp@latest"] } } }

Local development

{

"mcpServers": { "codewiki-mcp": { "command": "node", "args": ["/path/to/codewiki-mcp/dist/cli.js"] } } }


💡 Usage

Prompts you can use in any MCP-compatible client:

codewiki fetch how routing works in Next.js
codewiki search state management libraries
codewiki ask how does React fiber reconciler work?

Fetch complete documentation:

codewiki fetch vercel/next.js

codewiki fetch https://github.com/fastify/fastify

Get structured pages:

codewiki fetch pages tailwindlabs/tailwindcss

Ask with natural language:

codewiki ask fastify how to add authentication?

🛠️ MCP Tools

🔍 codewiki_search_repos

Search repositories indexed by codewiki.google.

ParameterTypeRequiredDefaultDescription
querystring✅—Search query
limitnumber—10Max results (1–50)
📄 codewiki_fetch_repo

Fetch generated wiki content for a repository.

ParameterTypeRequiredDefaultDescription
repostring✅—owner/repo, GitHub URL, or natural-language query
modestring—"aggregate""aggregate" — full markdown; "pages" — structured JSON
💬 codewiki_ask_repo

Ask a natural-language question about a repository.

ParameterTypeRequiredDefaultDescription
repostring✅—Repository identifier (same formats as fetch)
questionstring✅—Question about the repo
historyarray—[]Conversation history [{role, content}] (max 20)

📊 Response Format

✅ Success — Search

{

"query": "fastify", "count": 1, "items": [ { "fullName": "fastify/fastify", "url": "https://github.com/fastify/fastify", "description": "Fast and low overhead web framework", "avatarUrl": "https://avatars.githubusercontent.com/u/24939....", "extraScore": 555 } ], "meta": { "totalBytes": 12500, "totalElapsedMs": 450 } }

✅ Success — Fetch (pages mode)

{

"repo": "fastify/fastify", "commit": "abc123", "canonicalUrl": "https://github.com/fastify/fastify", "pages": [ { "title": "Overview", "level": 1, "anchor": "#overview", "markdown": "# Overview\n\nFastify is a web framework...", "diagramCount": 1 } ], "meta": { "totalBytes": 25000, "totalElapsedMs": 1200 } }

✅ Success — Ask

{

"answer": "Fastify uses a plugin-based architecture where...", "meta": { "totalBytes": 8500, "totalElapsedMs": 2300 } }

❌ Error Response

{

"error": { "code": "RPC_FAIL", "message": "CodeWiki RPC VSX6ub failed with status 404", "rpcId": "VSX6ub", "statusCode": 404 } }

Error codes: VALIDATION, RPC_FAIL, TIMEOUT, NLP_RESOLVE_FAIL


⚙️ How It Works

Data Flow
AI Assistant → MCP protocol → codewiki-mcp → HTTPS → codewiki.google

↓ AI Assistant ← MCP protocol ← codewiki-mcp ← JSON ← Google RPC API

Google Batchexecute RPC

codewiki.google uses Google's internal batchexecute RPC format (not REST, not GraphQL). The client:

  1. Builds a POST request with f.req=... body
  2. Sends it to /_/BoqAngularSdlcAgentsUi/data/batchexecute
  3. Receives a response with XSSI prefix )]}'\n
  4. Parses wrb.fr frames and extracts the typed payload

Each tool maps to an RPC ID:

ToolRPC ID
🔍 SearchvyWDAf
📄 FetchVSX6ub
💬 AskEgIxfe
🧠 NLP Repo Resolution

Users can type natural language instead of owner/repo:

"the fastify web framework"

→ wink-nlp extracts keyword "fastify" (POS tag: NOUN/PROPN) → GitHub Search API: GET /search/repositories?q=fastify&sort=stars → top result: "fastify/fastify" → normalizeRepoInput("fastify/fastify") → URL for codewiki

🔄 Retry with Exponential Backoff
AttemptDelay
0immediate
1250ms
2500ms
31000ms

4xx errors (client errors) are never retried.


🖥️ CLI

codewiki-mcp [options]

Options: --http Streamable HTTP transport --sse SSE transport --port Port for HTTP/SSE (default: 3000) --endpoint URL endpoint (default: /mcp) --help, -h Show help


⚡ Configuration

Environment variables:

VariableDefaultDescription
CODEWIKI_BASE_URLhttps://codewiki.googleBase URL
CODEWIKI_REQUEST_TIMEOUT30000Request timeout (ms)
CODEWIKI_MAX_RETRIES3Max retries
CODEWIKI_RETRY_DELAY250Base retry delay (ms)
GITHUB_TOKEN—GitHub token for NLP repo resolution

You can also create a .env file in the project root:

CODEWIKI_REQUEST_TIMEOUT=60000

CODEWIKI_MAX_RETRIES=5 GITHUB_TOKEN=ghp_your_token


📁 Project Structure

src/

├── cli.ts # CLI entry point ├── server.ts # Transport setup (stdio/HTTP/SSE) ├── index.ts # Library re-exports ├── schemas.ts # Zod input schemas ├── lib/ │ ├── codewikiClient.ts # API client with retry + metadata │ ├── batchexecute.ts # Google RPC response parser │ ├── repo.ts # Repo normalization + NLP resolution │ ├── extractKeyword.ts # NLP keyword extraction (wink-nlp) │ ├── resolveRepo.ts # GitHub Search API resolver │ ├── errors.ts # CodeWikiError + formatMcpError │ └── config.ts # Env-based configuration └── tools/ ├── searchRepos.ts # codewiki_search_repos ├── fetchRepo.ts # codewiki_fetch_repo └── askRepo.ts # codewiki_ask_repo


❓ Troubleshooting

Permission Denied

chmod +x ./node_modules/.bin/codewiki-mcp

Connection Refused (HTTP/SSE)

# Check if port is in use

lsof -i :3000

Timeout Errors

For large repositories, increase the timeout:

CODEWIKI_REQUEST_TIMEOUT=60000 node dist/cli.js

NLP Resolution Fails

If natural-language input doesn't resolve, use explicit format:

# Instead of "the fastify framework"

fastify/fastify

or

https://github.com/fastify/fastify

Set GITHUB_TOKEN to avoid GitHub API rate limits for unauthenticated requests.


🧑💻 Development

npm run dev          # stdio with tsx

npm run dev:http # HTTP with tsx npm run dev:sse # SSE with tsx npm run typecheck # type check npm run test # run tests npm run test:watch # tests in watch mode npm run build # compile to dist/


🤝 Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feat/my-feature)
  3. Use Conventional Commits for commit messages
  4. Run npm run typecheck && npm run test before submitting
  5. Open a Pull Request

📄 License

MIT © codewiki-mcp contributors

问 PopNx