codebase-memory-mcp icon indicating copy to clipboard operation
codebase-memory-mcp copied to clipboard

codebase-memory graph it doesn't resolve TypeScript aliases like @packages/shared

Open juato opened this issue 5 months ago • 3 comments

Version

codebase-memory-mcp 0.8.1

Platform

macOS (Apple Silicon)

Install channel

GitHub release archive / install.sh / install.ps1

Binary variant

standard

What happened, and what did you expect?

The codebase-memory graph resolves imports by direct file path, but it doesn't resolve TypeScript aliases like @packages/shared → ../../packages/shared/src/index.ts. This generates a massive amount of fake dead code for everything imported via alias. I did the tests using codebase-memory-mcp from opencode

Reproduction

The codebase-memory graph resolves imports by direct file path, but it doesn't resolve TypeScript aliases like @packages/shared → ../../packages/shared/src/index.ts. This generates a massive amount of fake dead code for everything imported via alias. I did the tests using codebase-memory-mcp from opencode

Logs


Diagnostics trajectory (memory / performance / leak issues)


Project scale (if relevant)

No response

Confirmations

  • [x] I searched existing issues and this is not a duplicate.
  • [x] My reproduction uses shareable code (a dummy snippet or a public OSS repository), not proprietary code.

juato avatar Jun 30 '26 22:06 juato

Thanks. TypeScript path aliases/import maps need to resolve into the graph, otherwise alias-heavy repos will look like they have fake dead code. I’m tracking this under parsing/extraction quality. The smallest useful repro is a tsconfig paths alias plus one import through that alias, asserting the import resolves to the real target.

DeusData avatar Jul 01 '26 10:07 DeusData

@DeusData Can i work on this task?

sahil-mangla avatar Jul 02 '26 07:07 sahil-mangla

related https://github.com/DeusData/codebase-memory-mcp/issues/308

apappas1129 avatar Jul 02 '26 09:07 apappas1129