MCPcopy Create free account
hub / github.com/arctic-cli/interface / resolveGlobalConfigPath

Function resolveGlobalConfigPath

packages/arctic/src/cli/claude-import.ts:543–549  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

541}
542
543async function resolveGlobalConfigPath() {
544 const jsonc = path.join(Global.Path.config, "arctic.jsonc")
545 const json = path.join(Global.Path.config, "arctic.json")
546 if (await Bun.file(jsonc).exists()) return jsonc
547 if (await Bun.file(json).exists()) return json
548 return jsonc
549}
550
551async function readClaudeMcpServers(filepath: string): Promise<Record<string, any> | undefined> {
552 const text = await Bun.file(filepath)

Callers 1

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected