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

Function hasCodegraphEntry

src/installer/targets/opencode.ts:146–148  ·  view source on GitHub ↗

True when either the OpenCode 2 native entry or a pre-#1698 v1 entry is present.

(config: Record<string, any>)

Source from the content-addressed store, hash-verified

144
145/** True when either the OpenCode 2 native entry or a pre-#1698 v1 entry is present. */
146function hasCodegraphEntry(config: Record<string, any>): boolean {
147 return !!(config.mcp?.servers?.codegraph || config.mcp?.codegraph);
148}
149
150const FORMATTING = { tabSize: 2, insertSpaces: true, eol: '\n' };
151

Callers 2

detectMethod · 0.85
removeMcpEntryAtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected