The open-source alternative to Google's Code Wiki — with MCP. Index any codebase with tree-sitter, generate docs with your LLM, serve them through a full-featured docs site, and expose everything as tools for coding agents via MCP. Like Notion for code agents. Index a project and generate documentation. Defaults to the current directory. Start the docs server. Manage API keys and provider settings
Add this skill
npx mdskills install pacifio/open-wikiComprehensive codebase documentation tool with excellent MCP integration and multi-provider LLM support
1# open-wiki23**The open-source alternative to Google's Code Wiki — with MCP.**45Index any codebase with tree-sitter, generate docs with your LLM, serve them through a full-featured docs site, and expose everything as tools for coding agents via MCP. Like Notion for code agents.67```8ow /path/to/your/project9```1011---1213## Install1415```bash16npm install -g open-wiki17```1819---2021## Quick Start2223```bash24# 1. Set your API key25ow config set-key anthropic sk-ant-...2627# 2. Index a project28ow /path/to/project2930# 3. Open the docs31ow serve32# → http://localhost:838333```3435---3637## Commands3839### `ow [path]`4041Index a project and generate documentation. Defaults to the current directory.4243```bash44ow # index current directory45ow /path/to/project # index a specific path46ow . --force # re-index all files (ignore cache)47ow . --name myapp # override the project name48ow . --provider openai # use a specific LLM provider49```5051| Flag | Description |52|------|-------------|53| `-p, --provider <name>` | LLM provider: `anthropic`, `openai`, `google` |54| `--name <name>` | Override project name (defaults to directory name) |55| `--force` | Re-index all files regardless of changes |5657---5859### `ow serve`6061Start the docs server.6263```bash64ow serve # start on default port 838365ow serve --port 3000 # custom port66```6768| Flag | Description |69|------|-------------|70| `-p, --port <port>` | Port to listen on (default: `8383`) |7172---7374### `ow config`7576Manage API keys and provider settings.7778```bash79ow config set-key anthropic sk-ant-... # set Anthropic key80ow config set-key openai sk-... # set OpenAI key81ow config set-key google AIza... # set Google key82ow config set-default openai # change default provider83ow config list # show all configured providers84```8586Supported providers: `anthropic`, `openai`, `google`8788---8990### `ow list`9192List all indexed projects.9394```bash95ow list96```9798---99100### `ow mcp`101102MCP server for coding agents. Exposes your indexed docs as tools.103104```bash105ow mcp install # register with Claude Code (run once)106ow mcp # start the stdio MCP server (Claude Code does this automatically)107```108109After `ow mcp install`, Claude Code gets 5 tools:110111| Tool | What it does |112|------|-------------|113| `list_projects` | List all indexed projects with file and symbol counts |114| `get_project_overview` | Get the architecture overview and mermaid diagram for a project |115| `get_file_doc` | Get documentation for a specific file |116| `search_docs` | Full-text search across all docs in a project |117| `get_symbols` | List all functions, classes, and interfaces in a file or project |118119---120121### `ow setup`122123Manage the underlying docs app.124125```bash126ow setup # install the docs app (runs automatically on first use)127ow setup --reset # wipe and reinstall from scratch128```129130---131132## How It Works1331341. **Index** — tree-sitter parses your source files and extracts symbols, signatures, and imports1352. **Generate** — one structured LLM call per file produces a summary and per-symbol docs1363. **Diff** — only changed files are re-processed on subsequent runs1374. **Serve** — a Next.js + fumadocs app renders the generated MDX with syntax highlighting, mermaid diagrams, and AI chat1385. **MCP** — the stdio server reads directly from the SQLite index and MDX files139140---141142## Supported Languages143144- TypeScript / JavaScript (`.ts`, `.tsx`, `.js`, `.jsx`)145- Python (`.py`)146147---148149## License150151MIT152
Full transparency — inspect the skill content before installing.