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

Method printConfig

src/installer/targets/opencode.ts:175–182  ·  view source on GitHub ↗
(loc: Location)

Source from the content-addressed store, hash-verified

173 }
174
175 printConfig(loc: Location): string {
176 const target = configPath(loc);
177 const snippet = JSON.stringify({
178 $schema: 'https://opencode.ai/config.json',
179 mcp: { codegraph: getOpencodeServerEntry() },
180 }, null, 2);
181 return `# Add to ${target}\n\n${snippet}\n`;
182 }
183
184 describePaths(loc: Location): string[] {
185 return [configPath(loc), instructionsPath(loc)];

Callers

nothing calls this directly

Calls 2

getOpencodeServerEntryFunction · 0.85
configPathFunction · 0.70

Tested by

no test coverage detected