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

Method printConfig

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

Source from the content-addressed store, hash-verified

197 }
198
199 printConfig(loc: Location): string {
200 const target = configPath(loc);
201 const snippet = JSON.stringify({
202 $schema: 'https://opencode.ai/config.json',
203 mcp: { servers: { codegraph: getOpencodeServerEntry() } },
204 }, null, 2);
205 return `# Add to ${target}\n\n${snippet}\n`;
206 }
207
208 describePaths(loc: Location): string[] {
209 return [configPath(loc), instructionsPath(loc)];

Callers

nothing calls this directly

Calls 2

getOpencodeServerEntryFunction · 0.85
configPathFunction · 0.70

Tested by

no test coverage detected