Summary
Surface a clear MCP warning when the selected project's index was built with an older extraction version than the running CodeGraph engine.
Context
getIndexBuildInfo() and isIndexStale() already provide a local compatibility check, and codegraph status reports when a full rebuild is recommended. MCP clients do not currently receive that warning through the default tool surface.
This is a smaller manual guardrail related to #1798, which proposes automatic background rebuilding. It does not implement automatic rebuilding. It also differs from #1243/#1253, which detects a newer published CodeGraph release rather than a stale project index.
Related work: #1842 and #1851.
Acceptance Criteria
Out of Scope
🤖 Generated by Codex on behalf of @cbeaulieu-gt
Summary
Surface a clear MCP warning when the selected project's index was built with an older extraction version than the running CodeGraph engine.
Context
getIndexBuildInfo()andisIndexStale()already provide a local compatibility check, andcodegraph statusreports when a full rebuild is recommended. MCP clients do not currently receive that warning through the default tool surface.This is a smaller manual guardrail related to #1798, which proposes automatic background rebuilding. It does not implement automatic rebuilding. It also differs from #1243/#1253, which detects a newer published CodeGraph release rather than a stale project index.
Related work: #1842 and #1851.
Acceptance Criteria
projectPathcalls independently warn for each stale project.codegraph index.codegraph_statusalways reports build-version details and whether reindexing is recommended.Out of Scope
codegraph index.