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

Function writeConfig

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

Source from the content-addressed store, hash-verified

1781
1782 const configToml = () => path.join(tmpHome, '.codex', 'config.toml');
1783 function writeConfig(text: string): void {
1784 fs.mkdirSync(path.dirname(configToml()), { recursive: true });
1785 fs.writeFileSync(configToml(), text);
1786 }
1787 const block = buildTomlTable('mcp_servers.codegraph', { command: 'codegraph', args: ['serve', '--mcp'] });
1788
1789 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.85

Tested by

no test coverage detected