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

Generated JSON is expanded into thousands of `Variable` nodes

Open avigdorsky opened this issue 2 months ago • 2 comments

Severity: low (workaround exists) — but the default is wasteful.

Three generated OpenAPI contracts produced 4 589 Variable nodes ($ref, $id, …) and ~28 700 edges, while yielding zero Route nodes. Workaround: .cbmignore.

Ask: index large generated JSON as a single File/Contract node; for OpenAPI specifically, extract paths into Route nodes instead of exploding every key.


Observed on v0.10.8 (build 996bad5fe6fb), macOS arm64, Python monorepo (~36k nodes / ~179k edges). Happy to provide a minimal reproduction repo if useful.

avigdorsky avatar Sep 09 '26 07:09 avigdorsky

Thank you for the generated OpenAPI node/edge counts. Contract-level representation and route extraction are distinct behavior choices that need a maintainer decision; no JSON indexing default has been changed or approved here.

DeusData avatar Oct 19 '26 22:10 DeusData

Thank you for the generated OpenAPI size measurements. Contract-level representation and route extraction still need a maintainer direction decision. Sorry for the delay; I’ll follow up soon.

DeusData avatar Oct 25 '26 17:10 DeusData