MCPcopy Create free account
hub / github.com/Eversmile12/sharedcontext / getClaudeConfigPath

Function getClaudeConfigPath

src/cli/setup.ts:81–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79}
80
81function getClaudeConfigPath(): string {
82 if (process.platform === "darwin") {
83 return join(
84 homedir(),
85 "Library",
86 "Application Support",
87 "Claude",
88 "claude_desktop_config.json"
89 );
90 }
91 if (process.platform === "win32") {
92 return join(homedir(), "AppData", "Roaming", "Claude", "claude_desktop_config.json");
93 }
94 return join(homedir(), ".config", "Claude", "claude_desktop_config.json");
95}
96
97function getCodexConfigPath(): string {
98 return join(homedir(), ".codex", "config.toml");

Callers 2

getConfigPathFunction · 0.85
detectInstalledClientsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected