MCPcopy
hub / github.com/benjitaylor/agentation / getWebhookUrls

Function getWebhookUrls

mcp/src/server/http.ts:110–130  ·  view source on GitHub ↗

* Get configured webhook URLs from environment variables. * * Supports: * - AGENTATION_WEBHOOK_URL: Single webhook URL * - AGENTATION_WEBHOOKS: Comma-separated list of webhook URLs

()

Source from the content-addressed store, hash-verified

108 * - AGENTATION_WEBHOOKS: Comma-separated list of webhook URLs
109 */
110function getWebhookUrls(): string[] {
111 const urls: string[] = [];
112
113 // Single webhook URL
114 const singleUrl = process.env.AGENTATION_WEBHOOK_URL;
115 if (singleUrl) {
116 urls.push(singleUrl.trim());
117 }
118
119 // Multiple webhook URLs (comma-separated)
120 const multipleUrls = process.env.AGENTATION_WEBHOOKS;
121 if (multipleUrls) {
122 const parsed = multipleUrls
123 .split(",")
124 .map((url) => url.trim())
125 .filter((url) => url.length > 0);
126 urls.push(...parsed);
127 }
128
129 return urls;
130}
131
132/**
133 * Send webhook notification for an action request.

Callers 3

sendWebhooksFunction · 0.85
requestActionHandlerFunction · 0.85
startHttpServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…