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

Function parseConfig

src/installer/targets/opencode.ts:119–127  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

117}
118
119function parseConfig(text: string): Record<string, any> {
120 if (!text.trim()) return {};
121 const errors: any[] = [];
122 const result = parseJsonc(text, errors, { allowTrailingComma: true });
123 if (result == null || typeof result !== 'object' || Array.isArray(result)) {
124 return {};
125 }
126 return result as Record<string, any>;
127}
128
129function getOpencodeServerEntry(): {
130 type: string;

Callers 3

detectMethod · 0.70
writeMcpEntryFunction · 0.70
removeMcpEntryAtFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected