How thevibeworks/claude-code-docs works
Claude Code Docs is an auto-updating archive of Anthropic builder documentation, also exposed through an MCP server for Claude Code clients. The principal workflow is a client request routed to local search, documentation resources, or guided prompts; an HTTP transport can instead search and serve remote documentation. Separately, the fetcher collects published Markdown into the archive and supports source discovery and stale-page reaping. README documents the archive’s broad source and content coverage; sampled excerpts show MCP routing and file access, but not every fetcher stage.
Main entry points: main.ts Stdio server · server-http.ts HTTP server · search.ts Local search · index.ts Local resources
Components 11
Documentation archive
- Local resources
mcp/src/resources/index.ts - Remote resources
mcp/src/remote-resources/index.ts - Markdown archive
content
MCP access
- Stdio server
mcp/src/main.ts - HTTP server
mcp/src/server-http.ts - Local search
mcp/src/tools/search.ts
Guided assistance
- Guidance prompts
mcp/src/prompts/index.ts
Content ingestion
- Fetcher and discovery
scripts/fetcher.py
Other components
- Claude Code client
- Documentation sources
- GitHub raw content
Connections 14
- Claude Code client → Stdio server: sends MCP requests
mcp/src/main.ts - Claude Code client → HTTP server: sends HTTP requests
mcp/src/server-http.ts - Stdio server → Local search: dispatches search
mcp/src/main.ts - Stdio server → Local resources: routes resource requests
mcp/src/main.ts - Stdio server → Guidance prompts: routes prompt requests
mcp/src/main.ts - Local search → Local resources: gets docs path
mcp/src/tools/search.ts - Local search → Markdown archive: reads Markdown
mcp/src/tools/search.ts - Local resources → Markdown archive: lists and reads files
mcp/src/resources/index.ts - HTTP server → Remote resources: routes resource requests
mcp/src/server-http.ts - HTTP server → Guidance prompts: routes prompt requests
mcp/src/server-http.ts - HTTP server → Remote resources: searches remote docs
mcp/src/server-http.ts - Remote resources → GitHub raw content: fetches Markdown
mcp/src/remote-resources/index.ts - Documentation sources → Fetcher and discovery: provides published docs
README.md - Fetcher and discovery → Markdown archive: updates archive
README.md