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

Method buildContext

src/index.ts:3321–3326  ·  view source on GitHub ↗

* Build context for a task * * Creates comprehensive context by: * 1. Running FTS search to find entry points * 2. Expanding the graph around entry points * 3. Extracting code blocks for key nodes * 4. Formatting output for Claude * * @param input - Task description (string o

(
    input: TaskInput,
    options?: BuildContextOptions
  )

Source from the content-addressed store, hash-verified

3319 * @returns TaskContext object or formatted string (markdown/JSON)
3320 */
3321 async buildContext(
3322 input: TaskInput,
3323 options?: BuildContextOptions
3324 ): Promise<TaskContext | string> {
3325 return this.contextBuilder.buildContext(input, options);
3326 }
3327
3328 // ===========================================================================
3329 // Database Management

Callers 6

context.test.tsFile · 0.45
contextFunction · 0.45

Calls

no outgoing calls

Tested by 1

contextFunction · 0.36