MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / loadCodeGraph

Function loadCodeGraph

src/mcp/tools.ts:18–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16// CodeGraph is pulled in only when a tool actually opens a project. require() is
17// sync + cached (CommonJS build).
18const loadCodeGraph = (): typeof import('../index').default =>
19 loadCodeGraphForTests ?? (require('../index') as typeof import('../index')).default;
20// Test seam (same pattern as the watcher's `__setFsWatchForTests`): vitest's
21// module transform can't service the lazy `require('../index')` above, so
22// in-process tests that exercise a genuine cross-project open (an explicit

Callers 1

openMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected