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

Function resultText

__tests__/mcp-index-version-warning.test.ts:25–28  ·  view source on GitHub ↗
(result: ToolResult)

Source from the content-addressed store, hash-verified

23};
24
25function resultText(result: ToolResult): string {
26 const first = result.content[0];
27 return first?.type === 'text' ? first.text : '';
28}
29
30function stampStale(cg: CodeGraph, version = '0.1.0'): void {
31 const writer = cg as unknown as MetadataWriter;

Calls

no outgoing calls

Tested by

no test coverage detected