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

Function configDir

src/installer/targets/codex.ts:55–59  ·  view source on GitHub ↗
(loc: Location)

Source from the content-addressed store, hash-verified

53const TOML_HEADER = 'mcp_servers.codegraph';
54
55function configDir(loc: Location): string {
56 return loc === 'global'
57 ? path.join(os.homedir(), '.codex')
58 : path.join(process.cwd(), '.codex');
59}
60function tomlConfigPath(loc: Location): string {
61 return path.join(configDir(loc), 'config.toml');
62}

Callers 3

tomlConfigPathFunction · 0.70
instructionsPathFunction · 0.70
detectMethod · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected