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

Method printConfig

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

getOpencodeServerEntryFunction · 0.85
configPathFunction · 0.70

Tested by

no test coverage detected