-
Notifications
You must be signed in to change notification settings - Fork 504
Open
Description
Problem
get_indexing_status and search_code use exact string matching on paths. Querying a subdirectory of an indexed codebase returns "not indexed".
Steps to Reproduce
- Index
/home/user/project - Query status for
/home/user/project/src - Returns "not indexed" even though parent is indexed
Current Behavior
// handlers.ts:451-452
const isIndexed = this.snapshotManager.getIndexedCodebases().includes(absolutePath);Exact string match - no parent traversal.
Expected Behavior
If queried path is a subdirectory of an indexed codebase, recognize it as part of indexed content.
Location
packages/mcp/src/handlers.ts:451-462- search_code checkpackages/mcp/src/handlers.ts:722- get_indexing_status checkpackages/mcp/src/snapshot.ts:405-409- getCodebaseStatus()
Suggested Fix
Before exact match, check if queried path starts with any indexed codebase path (normalized, with trailing slash handling).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels