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

Function parseDisplayName

packages/arctic/src/auth/index.ts:95–99  ·  view source on GitHub ↗
(displayName: string)

Source from the content-addressed store, hash-verified

93 }
94
95 export function parseDisplayName(displayName: string): { provider: string; connection?: string } {
96 const match = displayName.match(/^(.+?)\s*\((.+)\)$/)
97 if (!match) return { provider: displayName }
98 return { provider: match[1], connection: match[2] }
99 }
100
101 export async function listConnections(provider: string): Promise<Array<{ key: string; connection?: string; info: Info }>> {
102 const auth = await all()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected