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

Function formatIndexBuildVersion

src/mcp/index-version-warning.ts:30–34  ·  view source on GitHub ↗
(build: IndexBuildInfo)

Source from the content-addressed store, hash-verified

28
29/** Human-readable engine identity recorded in an index's metadata. */
30export function formatIndexBuildVersion(build: IndexBuildInfo): string {
31 const extraction = build.extractionVersion ?? 'unknown';
32 if (!build.version) return `an earlier CodeGraph version (extraction ${extraction})`;
33 return `CodeGraph v${build.version.replace(/^v/, '')} (extraction ${extraction})`;
34}
35
36/** Human-readable identity of the process currently serving MCP. */
37export function formatRunningVersion(): string {

Callers 2

handleStatusMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected