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

Function hasCodegraphServer

src/installer/targets/json-config.ts:65–71  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

63 * runs this for every agent on every install (#1870).
64 */
65export function hasCodegraphServer(file: string): boolean {
66 try {
67 return !!parseConfig(fs.readFileSync(file, 'utf-8')).config.mcpServers?.codegraph;
68 } catch {
69 return false;
70 }
71}
72
73/**
74 * Add CodeGraph's server to `file`, or the keys of `entry` an existing one is

Callers 7

detectMethod · 0.90
detectMethod · 0.90
detectMethod · 0.90
detectMethod · 0.90
detectMethod · 0.90
detectMethod · 0.90
detectMethod · 0.90

Calls 1

parseConfigFunction · 0.70

Tested by

no test coverage detected