MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / validateKeyFormat

Function validateKeyFormat

server/src/training-agent/idempotency.ts:83–85  ·  view source on GitHub ↗
(key: unknown)

Source from the content-addressed store, hash-verified

81}
82
83export function validateKeyFormat(key: unknown): key is string {
84 return typeof key === 'string' && IDEMPOTENCY_KEY_PATTERN.test(key);
85}
86
87/**
88 * Build a cache-scoping principal from the auth layer's principal string

Callers 2

dispatchCallToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected