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

Method setProjectPathHint

src/mcp/engine.ts:180–183  ·  view source on GitHub ↗

* Convenience for MCPServer compatibility: pre-seed an explicit * project path (from the `--path` CLI flag) without yet opening it. This * keeps the synchronous constructor cheap; the actual open happens on the * first `ensureInitialized` call.

(projectPath: string)

Source from the content-addressed store, hash-verified

178 * first `ensureInitialized` call.
179 */
180 setProjectPathHint(projectPath: string): void {
181 this.projectPath = projectPath;
182 this.toolHandler.setDefaultProjectHint(projectPath);
183 }
184
185 /** Whether this engine only reads: no watcher, no sync, no writer slot. */
186 isReadOnly(): boolean {

Callers 1

constructorMethod · 0.80

Calls 1

setDefaultProjectHintMethod · 0.80

Tested by

no test coverage detected