.cursor — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited .cursor (MCP Server) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<div align="center">
MCP server for codewiki.google — search, fetch docs, and ask questions about any open-source repo
🇷🇺 Русский | 🇬🇧 English
<br />
MCP server that connects any AI assistant to [codewiki.google](https://codewiki.google) — AI-generated wiki documentation for open-source repositories.
</div>
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.
| Feature | Description |
|---|---|
| 🔍 Search Repos | Find repositories indexed by codewiki.google |
| 📄 Fetch Wiki Docs | Get full markdown or structured pages for any repo |
| 💬 Ask Questions | Natural-language Q&A with conversation history |
| 🧠 NLP Repo Resolution | Type naturally — wink-nlp extracts keywords and resolves to owner/repo |
| 📡 Multiple Transports | stdio (default), Streamable HTTP, SSE |
| 🔄 Retry with Backoff | Automatic retries with exponential backoff on 5xx errors |
| 🐳 Docker Support | Multi-stage Alpine build |
| 📊 Response Metadata | Byte count and elapsed time on every response |
npx -y codewiki-mcp@latestgit clone https://github.com/izzzzzi/codewiki-mcp.git
cd codewiki-mcp
npm install
npm run build# stdio (default)
node dist/cli.js
# Streamable HTTP
node dist/cli.js --http --port 3000
# SSE
node dist/cli.js --sse --port 3001docker 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<details> <summary><b>Cursor</b></summary>
Add to .cursor/mcp.json:
{
"mcpServers": {
"codewiki-mcp": {
"command": "npx",
"args": ["-y", "codewiki-mcp@latest"]
}
}
}</details>
<details> <summary><b>Claude Desktop</b></summary>
Add to claude_desktop_config.json:
{
"mcpServers": {
"codewiki-mcp": {
"command": "npx",
"args": ["-y", "codewiki-mcp@latest"]
}
}
}</details>
<details> <summary><b>Claude Code</b></summary>
claude mcp add codewiki-mcp -- npx -y codewiki-mcp@latest</details>
<details> <summary><b>Windsurf</b></summary>
Add to your Windsurf MCP config:
{
"mcpServers": {
"codewiki-mcp": {
"command": "npx",
"args": ["-y", "codewiki-mcp@latest"]
}
}
}</details>
<details> <summary><b>VS Code (Copilot)</b></summary>
Add to .vscode/mcp.json:
{
"servers": {
"codewiki-mcp": {
"command": "npx",
"args": ["-y", "codewiki-mcp@latest"]
}
}
}</details>
<details> <summary><b>Local development</b></summary>
{
"mcpServers": {
"codewiki-mcp": {
"command": "node",
"args": ["/path/to/codewiki-mcp/dist/cli.js"]
}
}
}</details>
Prompts you can use in any MCP-compatible client:
codewiki fetch how routing works in Next.jscodewiki search state management librariescodewiki ask how does React fiber reconciler work?Fetch complete documentation:
codewiki fetch vercel/next.js
codewiki fetch https://github.com/fastify/fastifyGet structured pages:
codewiki fetch pages tailwindlabs/tailwindcssAsk with natural language:
codewiki ask fastify how to add authentication?Search repositories indexed by codewiki.google.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | ✅ | — | Search query |
limit | number | — | 10 | Max results (1–50) |
Fetch generated wiki content for a repository.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
repo | string | ✅ | — | owner/repo, GitHub URL, or natural-language query |
mode | string | — | "aggregate" | "aggregate" — full markdown; "pages" — structured JSON |
Ask a natural-language question about a repository.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
repo | string | ✅ | — | Repository identifier (same formats as fetch) |
question | string | ✅ | — | Question about the repo |
history | array | — | [] | Conversation history [{role, content}] (max 20) |
<details> <summary><b>✅ Success — Search</b></summary>
{
"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
}
}</details>
<details> <summary><b>✅ Success — Fetch (pages mode)</b></summary>
{
"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
}
}</details>
<details> <summary><b>✅ Success — Ask</b></summary>
{
"answer": "Fastify uses a plugin-based architecture where...",
"meta": {
"totalBytes": 8500,
"totalElapsedMs": 2300
}
}</details>
<details> <summary><b>❌ Error Response</b></summary>
{
"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
</details>
AI Assistant → MCP protocol → codewiki-mcp → HTTPS → codewiki.google
↓
AI Assistant ← MCP protocol ← codewiki-mcp ← JSON ← Google RPC APIcodewiki.google uses Google's internal batchexecute RPC format (not REST, not GraphQL). The client:
f.req=... body/_/BoqAngularSdlcAgentsUi/data/batchexecute)]}'\nwrb.fr frames and extracts the typed payloadEach tool maps to an RPC ID:
| Tool | RPC ID |
|---|---|
| 🔍 Search | vyWDAf |
| 📄 Fetch | VSX6ub |
| 💬 Ask | EgIxfe |
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| Attempt | Delay |
|---|---|
| 0 | immediate |
| 1 | 250ms |
| 2 | 500ms |
| 3 | 1000ms |
4xx errors (client errors) are never retried.
codewiki-mcp [options]
Options:
--http Streamable HTTP transport
--sse SSE transport
--port <number> Port for HTTP/SSE (default: 3000)
--endpoint <str> URL endpoint (default: /mcp)
--help, -h Show helpEnvironment variables:
| Variable | Default | Description |
|---|---|---|
CODEWIKI_BASE_URL | https://codewiki.google | Base URL |
CODEWIKI_REQUEST_TIMEOUT | 30000 | Request timeout (ms) |
CODEWIKI_MAX_RETRIES | 3 | Max retries |
CODEWIKI_RETRY_DELAY | 250 | Base 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_tokensrc/
├── 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<details> <summary><b>Permission Denied</b></summary>
chmod +x ./node_modules/.bin/codewiki-mcp</details>
<details> <summary><b>Connection Refused (HTTP/SSE)</b></summary>
# Check if port is in use
lsof -i :3000</details>
<details> <summary><b>Timeout Errors</b></summary>
For large repositories, increase the timeout:
CODEWIKI_REQUEST_TIMEOUT=60000 node dist/cli.js</details>
<details> <summary><b>NLP Resolution Fails</b></summary>
If natural-language input doesn't resolve, use explicit format:
# Instead of "the fastify framework"
fastify/fastify
# or
https://github.com/fastify/fastifySet GITHUB_TOKEN to avoid GitHub API rate limits for unauthenticated requests.
</details>
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/Contributions are welcome! Please:
git checkout -b feat/my-feature)npm run typecheck && npm run test before submittingMIT © codewiki-mcp contributors
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.