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

Function parseKey

packages/arctic/src/auth/index.ts:79–83  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

77 const filepath = path.join(Global.Path.data, "auth.json")
78
79 export function parseKey(key: string): { provider: string; connection?: string } {
80 const parts = key.split(":")
81 if (parts.length === 1) return { provider: parts[0] }
82 return { provider: parts[0], connection: parts.slice(1).join(":") }
83 }
84
85 export function formatKey(provider: string, connection?: string): string {
86 if (!connection) return provider

Callers 1

listConnectionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected