Skip to content

feat(mcp): warn when project indexes need rebuilding - #1853

Open
cbeaulieu-gt wants to merge 1 commit into
colbymchenry:mainfrom
cbeaulieu-gt:codex/upstream-mcp-stale-index-1852
Open

feat(mcp): warn when project indexes need rebuilding#1853
cbeaulieu-gt wants to merge 1 commit into
colbymchenry:mainfrom
cbeaulieu-gt:codex/upstream-mcp-stale-index-1852

Conversation

@cbeaulieu-gt

Copy link
Copy Markdown

Summary

  • warn each MCP client once per resolved project when its index predates the running extraction engine
  • keep warning state isolated per client across direct, shared-daemon, and daemon-to-local-fallback execution
  • always report index-build version, running version, and rebuild guidance from codegraph_status
  • document the behavior in the changelog

The check is local, preserves the nonblocking initialize handshake, and never starts indexing automatically.

Verification

  • npm run build
  • npx vitest run __tests__/mcp-index-version-warning.test.ts __tests__/mcp-staleness-banner.test.ts __tests__/upgrade.test.ts --maxWorkers=1 --minWorkers=1 — 69 passed
  • live daemon feature filter run three consecutive times — 6 passed total
  • git diff upstream/main...HEAD --check
  • post-commit artifact audit confirmed all eight changed files are present in HEAD
  • independent code review: no findings

Known upstream baseline

The broader upstream test suite is not currently zero-failure on this Windows host. Previously reproduced failures map to existing upstream issues/PRs, including daemon teardown EPERM cleanup covered by #1717; the focused feature assertions above pass.

Closes #1852

🤖 Generated by Codex on behalf of @cbeaulieu-gt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warn MCP clients when a project index predates the current extraction version

1 participant