ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

CodeWiki MCP — AI-generated docs for GitHub repos

โดย izzzzziรุ่น 1.1.1i★ –iรันบนเครื่อง
ชื่อใน registryio.github.izzzzzi/codewiki-mcp

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

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

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: เครื่องมือนักพัฒนา

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

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

พิมพ์คำสั่งนี้ใน Terminal

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

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

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

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

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

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub izzzzzi ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด เครื่องมือนักพัฒนาi

  • ดาวมากกว่า 0% ของอีก 1394 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 9% ของอีก 1394 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 1394 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

CodeWiki MCP — AI-generated docs for GitHub repos ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.1.1) เข้า registry 8 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี GitHub, Desktop Commander, Cloudflare MCP

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

GitHub

โดย github

server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้

บนเครื่องหรือคลาวด์★ 34,245MITอัปเดต 3 วันที่ผ่านมา
ติดตั้ง

Desktop Commander

โดย wonderwhy-er

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

รันบนเครื่อง★ 10,225MITอัปเดต 15 วันที่ผ่านมา
ติดตั้ง

Cloudflare MCP

โดย cloudflare

Cloudflare MCP servers

รันบนคลาวด์★ 4,446Apache-2.0อัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ 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