Skip to content

Directory structure is not being read correctly on Windows #266

Closed

Description

@tony-topper

This is what I see when I select "Index your first repository" via the web interface.

Image

To compound this problem:

The command line to the MCP to add a repo isn't working:

> codebase-memory-mcp cli index_repository '{"repo_path": "C:/Users/Tony Topper/Documents/odin-ai/"}'
level=info msg=mem.init budget_mb=65279 total_ram_mb=130559
{"content":[{"type":"text","text":"repo_path is required"}],"isError":true}

I installed via

Invoke-WebRequest -Uri https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.ps1 -OutFile install.ps1

Activity

  1. added
    bugSomething isn't working
    windowsWindows-specific issues
    on May 4, 2026
  2. ShrimpyChips commented on May 16, 2026

    @ShrimpyChips

    I'm having what seems like the same issue. I noticed that one thing that would make it fail and try and index the Antigravity folder was having a space anywhere in the path.

    But even without spaces in the path it seems to run fine in Antigravity with this:

    Ran with these arguments:

    { "repo_path": "d:\\Github\\Purpleghost_Macros" }

    Output

    { "project": "d-Github-Purpleghost_Macros", "status": "indexed" }

    and then I get this in the logs:

    level=info msg=server.start version=0.6.1 level=info msg=watcher.start interval_ms=multi-sec level=info msg=ui.serving url=http://127.0.0.1:9749 port=9749 level=info msg=session.root.cwd path=C:\Users\james\AppData\Local\Programs\Antigravity level=info msg=autoindex.skip reason=disabled hint=run: codebase-memory-mcp config set auto_index true level=info msg=pipeline.discover files=27 elapsed_ms=2 level=info msg=pipeline.route path=full level=info msg=pass.start pass=structure files=27 level=info msg=pass.done pass=structure nodes=35 edges=33 level=info msg=pass.timing pass=structure elapsed_ms=0 level=info msg=pipeline.mode mode=sequential files=27 level=info msg=pass.start pass=definitions files=27 level=info msg=pass.done pass=definitions defs=160 calls=1175 imports=29 errors=1 level=info msg=pass.timing pass=definitions elapsed_ms=66 level=info msg=pass.start pass=k8s files=27 level=info msg=pass.done pass=k8s kustomize=0 manifests=0 level=info msg=pass.timing pass=k8s elapsed_ms=0 level=info msg=pass.start pass=calls files=27 level=info msg=pass.done pass=calls total=1175 resolved=158 unresolved=1017 errors=1 level=info msg=pass.timing pass=calls elapsed_ms=1 level=info msg=pass.start pass=usages files=27 level=info msg=pass.done pass=usages usage=55 throws=0 rw=1 errors=1 level=info msg=pass.timing pass=usages elapsed_ms=0 level=info msg=pass.start pass=semantic files=27 level=info msg=pass.done pass=semantic inherits=0 decorates=0 implements=0 errors=1 level=info msg=pass.timing pass=semantic elapsed_ms=0 level=info msg=pass.start pass=tests level=info msg=pass.done pass=tests tests=0 tests_file=0 level=info msg=pass.timing pass=tests elapsed_ms=0 level=info msg=pass.timing pass=githistory_compute elapsed_ms=17 level=info msg=pass.done pass=githistory commits=0 edges=0 level=info msg=pass.timing pass=decorator_tags elapsed_ms=0 level=info msg=configlinker.strategy name=key_symbol edges=0 level=info msg=configlinker.strategy name=dep_import edges=0 level=info msg=configlinker.strategy name=file_ref edges=0 level=info msg=configlinker.done total=0 level=info msg=pass.timing pass=configlink elapsed_ms=1 level=info msg=pass.timing pass=route_match elapsed_ms=0 level=info msg=pass.start pass=similarity level=info msg=pass.similarity.collected nodes_with_fp=52 level=info msg=pass.done pass=similarity edges=0 level=info msg=pass.timing pass=similarity elapsed_ms=12 level=info msg=pass.start pass=semantic_edges level=info msg=pass.semantic.collected functions=84 level=info msg=pass.semantic.token_vectors count=477 level=info msg=pass.semantic.vectors_stored count=84 level=info msg=pass.semantic.lsh_built functions=84 bands=16 level=info msg=pass.done pass=semantic_edges edges=7 level=info msg=pass.timing pass=semantic_edges elapsed_ms=26 level=info msg=gbuf.dump nodes=195 edges=415 level=info msg=pass.timing pass=dump elapsed_ms=3 level=info msg=pass.timing pass=persist_hashes files=27 level=info msg=pipeline.done nodes=0 edges=415 elapsed_ms=157 level=error msg=store.auto_clean project=d-Github-Purpleghost_Macros path=C:/Users/james/.cache/codebase-memory-mcp/d-Github-Purpleghost_Macros.db action=deleting corrupt db — re-index required

    Note that if the path in the error is supposed to be the path of the project it is incorrect and the project folder is:

    D:\Github\Purpleghost_Macros

    I'm also getting the broken file selection dialog in the UI.

  3. miemoe commented on May 23, 2026

    @miemoe

    v0.6.1

    I have the same problem and no space in the path.
    The number of folders might be right, but there are no names on the folder.
    Every time I click on a folder I get a new separator:

    Image
  4. added a commit that references this issue on May 31, 2026
  5. DeusData commented on May 31, 2026

    @DeusData
    Owner

    Verified fixed on v0.7.0. On Windows CI (run) the directory structure is read correctly — a repo with src/server.mjs and src/sub/calc.js indexes both, with correct relative paths and the src/→src/sub/ nesting. The wide-char directory enumeration (FindFirstFileW/FindNextFileW, #386) fixed the Windows traversal. Closing. 🙏

  6. miemoe commented on May 31, 2026

    @miemoe

    Tried it with 0.7.0:

    Image

    but still:

    Image

    I'm not allowed to reopen the issue :-(

  7. miemoe commented on Jun 12, 2026

    @miemoe

    With 0.8.1 I can now see a filled dialog under windows.
    But when I select a folder for indexing "Index This Folder" then nothing happens.

    Image

    If I use the MCP from within OpenCode then indexing the exact same folder works and I can see it in the ui.

    How can I see a log (under windows)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwindowsWindows-specific issues

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions