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

Function parseConfig

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

Source from the content-addressed store, hash-verified

106}
107
108function parseConfig(text: string): Record<string, any> {
109 if (!text.trim()) return {};
110 const errors: any[] = [];
111 const result = parseJsonc(text, errors, { allowTrailingComma: true });
112 if (result == null || typeof result !== 'object' || Array.isArray(result)) {
113 return {};
114 }
115 return result as Record<string, any>;
116}
117
118function getOpencodeServerEntry(): { type: string; command: string[]; enabled: boolean } {
119 return {

Callers 3

detectMethod · 0.70
writeMcpEntryFunction · 0.70
removeMcpEntryAtFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected