mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-23 17:56:34 +08:00
Query tools resolved the project only via the exact "project" key, but list_projects surfaces the field as "name" and the not-found hint said "pass the project name", so callers naturally pass "project_name". With no alias the arg was NULL and resolve_store bailed before opening any .db, so every query returned "project not found or not indexed" even though the project was indexed -- the reporter's strace shows the cache dir scanned but no .db opened. Reproduced on macOS; not Linux-specific. Add get_project_arg() accepting project | project_name | project_id | projectName across the 11 query handlers (not bare "name" -- index_repository uses it for an explicit project-name override). Split the no-store error so a missing argument reports "missing required argument: project" instead of masquerading as "not indexed", and name the literal "project" key in the not-found hint. Reproduce-first: tool_get_architecture_accepts_project_name_alias_issue640 and tool_search_graph_accepts_project_name_alias_issue640 (RED before -> GREEN after). Full suite 5724/0, no regressions. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>