-
Notifications
You must be signed in to change notification settings - Fork 504
Open
Description
Problem
Snapshot file (~/.context/mcp-codebase-snapshot.json) is loaded on startup, but actual Milvus/Zilliz collections are never verified against local state.
Current Behavior
- Index codebase → snapshot says "indexed", vector DB has data
- Restart MCP server
loadCodebaseSnapshot()loads from JSON file ✓- But vector DB collection existence never checked
- If cloud data was deleted (manually, TTL, etc.), local says "indexed" but search returns nothing
Expected Behavior
On startup, verify that collections listed in snapshot actually exist in vector DB. Remove from snapshot if collection missing.
Location
packages/mcp/src/index.ts:79-80- loads snapshot but no DB verificationpackages/mcp/src/snapshot.ts:440-467- loadCodebaseSnapshot()
Suggested Fix
After loadCodebaseSnapshot(), iterate indexed codebases and call context.hasIndex() to verify collections exist.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels