MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / parseUdsTarget

Function parseUdsTarget

src/utils/udsMessaging.ts:143–152  ·  view source on GitHub ↗
(target: string)

Source from the content-addressed store, hash-verified

141}
142
143export function parseUdsTarget(target: string): {
144 socketPath: string
145} {
146 if (target.includes('#token=')) {
147 throw new Error(
148 'UDS target must not include an inline auth token; use the ListPeers address',
149 )
150 }
151 return { socketPath: target }
152}
153
154function getCapabilityDir(): string {
155 return join(getClaudeConfigHomeDir(), 'messaging-capabilities')

Callers 2

sendToUdsSocketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected