codebase-memory-mcp cli index_repository asking for path but path is specified (Windows)
PS C:\Users\Nico> codebase-memory-mcp cli index_repository '{"D:\Projects\AI\UnifiedAirsim\repos\asvsim", "mode":"fast"}' level=info msg=mem.init budget_mb=31516 total_ram_mb=63032 repo_path is required
Steps to reproduce:
- Install on Windows using the powershell script
- git clone your repo to a folder
- run the cli index_repository command
- asks for repo path even though it was specified.
Also, the files in the webui have no names and cannot be traversed, the breadcrumbs also don't show any file names, just a bunch of slashes, dunno if it's related.
either escape
codebase-memory-mcp cli index_repository '{"path":"D:\\Projects\\AI\\UnifiedAirsim\\repos\\asvsim","mode":"fast"}'
or use forward slashes:
codebase-memory-mcp cli index_repository '{"path":"D:/Projects/AI/UnifiedAirsim/repos/asvsim","mode":"fast"}'
Hey, thanks for reporting. I think @cbhp already gave the solution. I have already for a long time on my plate to improve CLI handling, just had not the time for it. Will see if I can prioterize it up
either escape
codebase-memory-mcp cli index_repository '{"path":"D:\\Projects\\AI\\UnifiedAirsim\\repos\\asvsim","mode":"fast"}'or use forward slashes:
codebase-memory-mcp cli index_repository '{"path":"D:/Projects/AI/UnifiedAirsim/repos/asvsim","mode":"fast"}'
I am still facing the same issue actually
repo_path is required is being shown even after I pass the path correctly. I used npx btw
@djmahe4 ok will check
Actually this works fine now
npx codebase-memory-mcp cli index_repository '{\"repo_path\": \"C:/Users/mahes/OneDrive/Desktop/Python-Projects/quant-blm\"}'
npx codebase-memory-mcp cli index_repository '{\"repo_path\": \"C:/Users/mahes/OneDrive/Desktop/Python-Projects/quant-blm\"}
Both works! (First one uses python package)
Appreciate your work buddy!
Issue fixed in 0.8.1.
I have the following issue too
0.8.1 does not fix this issue. I’ve tried it myself. To avoid the “repo_path error”, it’s necessary to use the codebase-memory-mcp cli with the command: index_repository "{\"repo_path\": \"C:/Users/mahes/OneDrive/Desktop/Python-Projects/quant-blm\"}".
Reopening: this is NOT fixed. The CLI still uses narrow int main(int argc, char **argv) (src/main.c:581) with no wmain/GetCommandLineW/CommandLineToArgvW, so non-ASCII repo paths passed as CLI args are still mangled on Windows. #639 added tests/windows/test_cli_non_ascii_arg.py as an opt-in known-red guard for exactly this — it'll flip green when the argv path is fixed (wmain + UTF-16→UTF-8, or CommandLineToArgvW). See also #20.