qorrelate-mcp-server 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,472 @@
1
+ "use strict";
2
+ /**
3
+ * Agent-First Workflow Tools
4
+ *
5
+ * Advanced tools for AI-native observability management:
6
+ * - Webhook management (convenient wrapper around notification destinations)
7
+ * - AI investigation and runbooks
8
+ * - AI workflow generation
9
+ * - Dashboard folder organization
10
+ * - Drop filter toggle
11
+ */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.registerAgentWorkflowTools = registerAgentWorkflowTools;
14
+ exports.handleAgentWorkflowTool = handleAgentWorkflowTool;
15
+ const index_js_1 = require("../index.js");
16
+ function registerAgentWorkflowTools() {
17
+ return [
18
+ // ==================== WEBHOOKS ====================
19
+ {
20
+ name: "list_webhooks",
21
+ description: "List all webhook notification destinations for an organization",
22
+ inputSchema: {
23
+ type: "object",
24
+ properties: {
25
+ organization_id: {
26
+ type: "string",
27
+ description: "Organization ID",
28
+ },
29
+ },
30
+ required: ["organization_id"],
31
+ },
32
+ },
33
+ {
34
+ name: "create_webhook",
35
+ description: `Create a new webhook endpoint for notifications.
36
+
37
+ Example: Create a Slack webhook for alerts
38
+ name: "#alerts-channel"
39
+ url: "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXX"`,
40
+ inputSchema: {
41
+ type: "object",
42
+ properties: {
43
+ organization_id: {
44
+ type: "string",
45
+ description: "Organization ID",
46
+ },
47
+ name: {
48
+ type: "string",
49
+ description: "Friendly name for this webhook (e.g., '#prod-alerts', 'PagerDuty')",
50
+ },
51
+ url: {
52
+ type: "string",
53
+ description: "Webhook URL to POST notifications to",
54
+ },
55
+ method: {
56
+ type: "string",
57
+ enum: ["GET", "POST", "PUT"],
58
+ description: "HTTP method (default: POST)",
59
+ },
60
+ headers: {
61
+ type: "object",
62
+ description: "Optional HTTP headers to include",
63
+ },
64
+ },
65
+ required: ["organization_id", "name", "url"],
66
+ },
67
+ },
68
+ {
69
+ name: "test_webhook",
70
+ description: "Send a test message to verify a webhook URL is working correctly",
71
+ inputSchema: {
72
+ type: "object",
73
+ properties: {
74
+ url: {
75
+ type: "string",
76
+ description: "Webhook URL to test",
77
+ },
78
+ method: {
79
+ type: "string",
80
+ enum: ["GET", "POST", "PUT"],
81
+ description: "HTTP method (default: POST)",
82
+ },
83
+ headers: {
84
+ type: "object",
85
+ description: "Optional HTTP headers",
86
+ },
87
+ payload: {
88
+ type: "object",
89
+ description: "Optional custom test payload (defaults to a standard test message)",
90
+ },
91
+ },
92
+ required: ["url"],
93
+ },
94
+ },
95
+ // ==================== DROP FILTER TOGGLE ====================
96
+ {
97
+ name: "toggle_drop_filter",
98
+ description: "Enable or disable a drop filter without deleting it. Useful for temporarily stopping filtering.",
99
+ inputSchema: {
100
+ type: "object",
101
+ properties: {
102
+ organization_id: {
103
+ type: "string",
104
+ description: "Organization ID",
105
+ },
106
+ filter_id: {
107
+ type: "string",
108
+ description: "Drop filter ID to toggle",
109
+ },
110
+ enabled: {
111
+ type: "boolean",
112
+ description: "True to enable filtering, false to disable",
113
+ },
114
+ },
115
+ required: ["organization_id", "filter_id", "enabled"],
116
+ },
117
+ },
118
+ // ==================== DASHBOARD FOLDERS ====================
119
+ {
120
+ name: "list_dashboard_folders",
121
+ description: "List all dashboard folders for organizing dashboards",
122
+ inputSchema: {
123
+ type: "object",
124
+ properties: {
125
+ organization_id: {
126
+ type: "string",
127
+ description: "Organization ID",
128
+ },
129
+ },
130
+ required: ["organization_id"],
131
+ },
132
+ },
133
+ {
134
+ name: "create_dashboard_folder",
135
+ description: "Create a folder to organize dashboards",
136
+ inputSchema: {
137
+ type: "object",
138
+ properties: {
139
+ organization_id: {
140
+ type: "string",
141
+ description: "Organization ID",
142
+ },
143
+ name: {
144
+ type: "string",
145
+ description: "Folder name (e.g., 'Production', 'Team Dashboards')",
146
+ },
147
+ description: {
148
+ type: "string",
149
+ description: "Optional description",
150
+ },
151
+ parent_id: {
152
+ type: "string",
153
+ description: "Optional parent folder ID for nesting",
154
+ },
155
+ },
156
+ required: ["organization_id", "name"],
157
+ },
158
+ },
159
+ {
160
+ name: "update_dashboard_folder",
161
+ description: "Update a dashboard folder's name or description",
162
+ inputSchema: {
163
+ type: "object",
164
+ properties: {
165
+ organization_id: {
166
+ type: "string",
167
+ description: "Organization ID",
168
+ },
169
+ folder_id: {
170
+ type: "string",
171
+ description: "Folder ID to update",
172
+ },
173
+ name: {
174
+ type: "string",
175
+ description: "New folder name",
176
+ },
177
+ description: {
178
+ type: "string",
179
+ description: "New description",
180
+ },
181
+ },
182
+ required: ["organization_id", "folder_id"],
183
+ },
184
+ },
185
+ {
186
+ name: "delete_dashboard_folder",
187
+ description: "Delete a dashboard folder. Dashboards inside will be moved to root.",
188
+ inputSchema: {
189
+ type: "object",
190
+ properties: {
191
+ organization_id: {
192
+ type: "string",
193
+ description: "Organization ID",
194
+ },
195
+ folder_id: {
196
+ type: "string",
197
+ description: "Folder ID to delete",
198
+ },
199
+ },
200
+ required: ["organization_id", "folder_id"],
201
+ },
202
+ },
203
+ // ==================== AI AGENT WORKFLOWS ====================
204
+ {
205
+ name: "ai_investigate",
206
+ description: `Use AI to investigate an issue by gathering relevant logs, traces, and metrics.
207
+
208
+ Provide a description of the problem and the AI will:
209
+ 1. Search for related logs and errors
210
+ 2. Find traces that match the issue
211
+ 3. Identify patterns and anomalies
212
+ 4. Suggest potential root causes
213
+
214
+ Example: "High latency on checkout API in the last hour"`,
215
+ inputSchema: {
216
+ type: "object",
217
+ properties: {
218
+ query: {
219
+ type: "string",
220
+ description: "Description of the issue to investigate",
221
+ },
222
+ context: {
223
+ type: "string",
224
+ description: "Additional context (e.g., 'started after deploy', 'affecting EU users')",
225
+ },
226
+ include_logs: {
227
+ type: "boolean",
228
+ description: "Include log analysis (default: true)",
229
+ },
230
+ include_traces: {
231
+ type: "boolean",
232
+ description: "Include trace analysis (default: true)",
233
+ },
234
+ include_metrics: {
235
+ type: "boolean",
236
+ description: "Include metric analysis (default: true)",
237
+ },
238
+ time_range: {
239
+ type: "string",
240
+ description: "Time range (e.g., '1h', '24h', '7d'). Default: '1h'",
241
+ },
242
+ },
243
+ required: ["query"],
244
+ },
245
+ },
246
+ {
247
+ name: "ai_generate_workflow",
248
+ description: `Have AI generate a workflow automation based on a description.
249
+
250
+ Examples:
251
+ - "When an alert fires, send Slack notification and create JIRA ticket"
252
+ - "Every hour, check error rates and send report to email"
253
+ - "When CPU > 80%, scale up the service and notify on-call"
254
+
255
+ The AI will generate the complete workflow with nodes and connections.`,
256
+ inputSchema: {
257
+ type: "object",
258
+ properties: {
259
+ organization_id: {
260
+ type: "string",
261
+ description: "Organization ID",
262
+ },
263
+ description: {
264
+ type: "string",
265
+ description: "Natural language description of the workflow to create",
266
+ },
267
+ trigger_type: {
268
+ type: "string",
269
+ enum: ["alert", "schedule", "manual"],
270
+ description: "What triggers this workflow (default: alert)",
271
+ },
272
+ services: {
273
+ type: "array",
274
+ items: { type: "string" },
275
+ description: "Services to scope this workflow to",
276
+ },
277
+ },
278
+ required: ["organization_id", "description"],
279
+ },
280
+ },
281
+ {
282
+ name: "get_runbook",
283
+ description: `Get a runbook (pre-defined incident response procedure).
284
+
285
+ Available runbooks:
286
+ - high_error_rate: Steps for handling elevated error rates
287
+ - high_latency: Steps for debugging latency issues
288
+ - service_down: Steps for service outage response
289
+ - memory_leak: Steps for investigating memory issues
290
+ - deployment_failure: Steps for failed deployments`,
291
+ inputSchema: {
292
+ type: "object",
293
+ properties: {
294
+ runbook_name: {
295
+ type: "string",
296
+ description: "Name of the runbook to retrieve",
297
+ },
298
+ },
299
+ required: ["runbook_name"],
300
+ },
301
+ },
302
+ {
303
+ name: "get_agent_services_summary",
304
+ description: "Get a summary of all services optimized for AI agent consumption. Includes health status, error rates, and recent issues.",
305
+ inputSchema: {
306
+ type: "object",
307
+ properties: {},
308
+ },
309
+ },
310
+ ];
311
+ }
312
+ async function handleAgentWorkflowTool(client, name, args) {
313
+ const orgId = args.organization_id || index_js_1.defaultOrgId;
314
+ switch (name) {
315
+ // Webhooks
316
+ case "list_webhooks": {
317
+ if (!orgId)
318
+ throw new Error("organization_id is required");
319
+ const result = await client.listWebhooks(orgId);
320
+ return {
321
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
322
+ };
323
+ }
324
+ case "create_webhook": {
325
+ if (!orgId)
326
+ throw new Error("organization_id is required");
327
+ const params = {
328
+ name: args.name,
329
+ url: args.url,
330
+ method: args.method,
331
+ headers: args.headers,
332
+ };
333
+ if (!params.name || !params.url)
334
+ throw new Error("name and url are required");
335
+ const result = await client.createWebhook(orgId, params);
336
+ return {
337
+ content: [{ type: "text", text: `Webhook created!\n\n${JSON.stringify(result, null, 2)}` }],
338
+ };
339
+ }
340
+ case "test_webhook": {
341
+ const url = args.url;
342
+ if (!url)
343
+ throw new Error("url is required");
344
+ const result = await client.testWebhook(orgId || '', {
345
+ url,
346
+ method: args.method,
347
+ headers: args.headers,
348
+ payload: args.payload,
349
+ });
350
+ return {
351
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
352
+ };
353
+ }
354
+ // Drop Filter Toggle
355
+ case "toggle_drop_filter": {
356
+ if (!orgId)
357
+ throw new Error("organization_id is required");
358
+ const filterId = args.filter_id;
359
+ const enabled = args.enabled;
360
+ if (!filterId)
361
+ throw new Error("filter_id is required");
362
+ if (typeof enabled !== 'boolean')
363
+ throw new Error("enabled must be true or false");
364
+ const result = await client.toggleDropFilter(orgId, filterId, enabled);
365
+ const action = enabled ? 'enabled' : 'disabled';
366
+ return {
367
+ content: [{ type: "text", text: `Drop filter ${action}!\n\n${JSON.stringify(result, null, 2)}` }],
368
+ };
369
+ }
370
+ // Dashboard Folders
371
+ case "list_dashboard_folders": {
372
+ if (!orgId)
373
+ throw new Error("organization_id is required");
374
+ const result = await client.listDashboardFolders(orgId);
375
+ return {
376
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
377
+ };
378
+ }
379
+ case "create_dashboard_folder": {
380
+ if (!orgId)
381
+ throw new Error("organization_id is required");
382
+ const params = {
383
+ name: args.name,
384
+ description: args.description,
385
+ parent_id: args.parent_id,
386
+ };
387
+ if (!params.name)
388
+ throw new Error("name is required");
389
+ const result = await client.createDashboardFolder(orgId, params);
390
+ return {
391
+ content: [{ type: "text", text: `Dashboard folder created!\n\n${JSON.stringify(result, null, 2)}` }],
392
+ };
393
+ }
394
+ case "update_dashboard_folder": {
395
+ if (!orgId)
396
+ throw new Error("organization_id is required");
397
+ const folderId = args.folder_id;
398
+ if (!folderId)
399
+ throw new Error("folder_id is required");
400
+ const params = {};
401
+ if (args.name)
402
+ params.name = args.name;
403
+ if (args.description)
404
+ params.description = args.description;
405
+ const result = await client.updateDashboardFolder(orgId, folderId, params);
406
+ return {
407
+ content: [{ type: "text", text: `Dashboard folder updated!\n\n${JSON.stringify(result, null, 2)}` }],
408
+ };
409
+ }
410
+ case "delete_dashboard_folder": {
411
+ if (!orgId)
412
+ throw new Error("organization_id is required");
413
+ const folderId = args.folder_id;
414
+ if (!folderId)
415
+ throw new Error("folder_id is required");
416
+ const result = await client.deleteDashboardFolder(orgId, folderId);
417
+ return {
418
+ content: [{ type: "text", text: `Dashboard folder deleted.\n\n${JSON.stringify(result, null, 2)}` }],
419
+ };
420
+ }
421
+ // AI Agent Workflows
422
+ case "ai_investigate": {
423
+ const query = args.query;
424
+ if (!query)
425
+ throw new Error("query is required");
426
+ const result = await client.aiInvestigate({
427
+ query,
428
+ context: args.context,
429
+ include_logs: args.include_logs,
430
+ include_traces: args.include_traces,
431
+ include_metrics: args.include_metrics,
432
+ time_range: args.time_range,
433
+ });
434
+ return {
435
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
436
+ };
437
+ }
438
+ case "ai_generate_workflow": {
439
+ if (!orgId)
440
+ throw new Error("organization_id is required");
441
+ const description = args.description;
442
+ if (!description)
443
+ throw new Error("description is required");
444
+ const result = await client.aiGenerateWorkflow(orgId, {
445
+ description,
446
+ trigger_type: args.trigger_type,
447
+ services: args.services,
448
+ });
449
+ return {
450
+ content: [{ type: "text", text: `Workflow generated!\n\n${JSON.stringify(result, null, 2)}` }],
451
+ };
452
+ }
453
+ case "get_runbook": {
454
+ const runbookName = args.runbook_name;
455
+ if (!runbookName)
456
+ throw new Error("runbook_name is required");
457
+ const result = await client.getRunbook(runbookName);
458
+ return {
459
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
460
+ };
461
+ }
462
+ case "get_agent_services_summary": {
463
+ const result = await client.getAgentServicesSummary();
464
+ return {
465
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
466
+ };
467
+ }
468
+ default:
469
+ throw new Error(`Unknown agent workflow tool: ${name}`);
470
+ }
471
+ }
472
+ //# sourceMappingURL=agent-workflows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-workflows.js","sourceRoot":"","sources":["../../src/tools/agent-workflows.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;AAMH,gEA0SC;AAED,0DA4JC;AA1cD,0CAA2C;AAE3C,SAAgB,0BAA0B;IACxC,OAAO;QACL,qDAAqD;QACrD;YACE,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,gEAAgE;YAC7E,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,eAAe,EAAE;wBACf,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iBAAiB;qBAC/B;iBACF;gBACD,QAAQ,EAAE,CAAC,iBAAiB,CAAC;aAC9B;SACF;QACD;YACE,IAAI,EAAE,gBAAgB;YACtB,WAAW,EAAE;;;;uEAIoD;YACjE,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,eAAe,EAAE;wBACf,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iBAAiB;qBAC/B;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,oEAAo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