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

Function readConfigText

src/installer/targets/opencode.ts:103–106  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

101}
102
103function readConfigText(file: string): string {
104 if (!fs.existsSync(file)) return '';
105 return fs.readFileSync(file, 'utf-8');
106}
107
108function parseConfig(text: string): Record<string, any> {
109 if (!text.trim()) return {};

Callers 3

detectMethod · 0.85
writeMcpEntryFunction · 0.85
removeMcpEntryAtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected