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

Function extractWebhookUrl

server/src/training-agent/webhooks.ts:100–104  ·  view source on GitHub ↗
(args: Record<string, unknown>)

Source from the content-addressed store, hash-verified

98};
99
100function extractWebhookUrl(args: Record<string, unknown>): string | undefined {
101 const pnc = args.push_notification_config as { url?: unknown } | undefined;
102 if (!pnc || typeof pnc !== 'object') return undefined;
103 return typeof pnc.url === 'string' && pnc.url.length > 0 ? pnc.url : undefined;
104}
105
106function extractRegisteredOperationId(args: Record<string, unknown>): string | undefined {
107 const pnc = args.push_notification_config as { operation_id?: unknown } | undefined;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected