diff --git a/mcp_codebase.py b/mcp_codebase.py index 053891c..476c813 100644 --- a/mcp_codebase.py +++ b/mcp_codebase.py @@ -2105,6 +2105,7 @@ def build_indexes(): # Keep the same ID (`file::`) but store the full set of # attributes so that downstream code can rely on `name`, `lang`, # and `file` (even though `name` will just be the file path). + file_node_id = f"file::{fpath}" if file_node_id not in graph.graph.nodes: graph.add_node( file_node_id,