index

Solid

Diagnose and fix code-graph index issues. Use when: search returns unexpected/empty results, or after major codebase restructuring. Covers the health check and both rebuild paths from the CLI.

AI & Automation 79 stars 16 forks Updated today MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
63
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
43
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Index Maintenance ## Check health ```bash code-graph-mcp health-check ``` ## Rebuild (incremental — only changed files) ```bash code-graph-mcp incremental-index ``` ## Full rebuild (when incremental isn't enough) ```bash code-graph-mcp rebuild-index --confirm ``` This builds the new index in a temporary location and swaps it in with an atomic rename, so a running MCP server (and its open WAL) never observes a half-built index. Deleting the `.code-graph/` directory by hand skips that swap, which is the exact situation the atomic path exists for. `get_index_status` and `rebuild_index` do dispatch over JSON-RPC, but they are deliberately kept out of `tools/list` to save tokens (`src/mcp/tools.rs`), so they are not in your callable tool set — the CLI above is the surface you have. It is also the only one that works with no server running.

Details

Author
sdsrss
Repository
sdsrss/code-graph-mcp
Created
6 months ago
Last Updated
today
Language
Rust
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category