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

Function writeConfig

__tests__/installer-targets.test.ts:1796–1799  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

1794
1795 const configToml = () => path.join(tmpHome, '.codex', 'config.toml');
1796 function writeConfig(text: string): void {
1797 fs.mkdirSync(path.dirname(configToml()), { recursive: true });
1798 fs.writeFileSync(configToml(), text);
1799 }
1800 const block = buildTomlTable('mcp_servers.codegraph', { command: 'codegraph', args: ['serve', '--mcp'] });
1801
1802 it('the reported indented table: detected, replaced once, unchanged after, refreshed in place, removed by uninstall', () => {

Callers 1

Calls 2

configTomlFunction · 0.85
configFunction · 0.70

Tested by

no test coverage detected