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

Function parseConfig

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

Source from the content-addressed store, hash-verified

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

Callers 3

detectMethod · 0.70
writeMcpEntryFunction · 0.70
removeMcpEntryAtFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected