qorrelate-mcp-server 0.1.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.
Files changed (50) hide show
  1. package/README.md +197 -0
  2. package/dist/client.d.ts +293 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/client.js +358 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/index.d.ts +26 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +242 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/tools/alerts.d.ts +14 -0
  11. package/dist/tools/alerts.d.ts.map +1 -0
  12. package/dist/tools/alerts.js +381 -0
  13. package/dist/tools/alerts.js.map +1 -0
  14. package/dist/tools/dashboards.d.ts +14 -0
  15. package/dist/tools/dashboards.d.ts.map +1 -0
  16. package/dist/tools/dashboards.js +409 -0
  17. package/dist/tools/dashboards.js.map +1 -0
  18. package/dist/tools/data-control.d.ts +19 -0
  19. package/dist/tools/data-control.d.ts.map +1 -0
  20. package/dist/tools/data-control.js +213 -0
  21. package/dist/tools/data-control.js.map +1 -0
  22. package/dist/tools/logs.d.ts +14 -0
  23. package/dist/tools/logs.d.ts.map +1 -0
  24. package/dist/tools/logs.js +191 -0
  25. package/dist/tools/logs.js.map +1 -0
  26. package/dist/tools/metrics.d.ts +14 -0
  27. package/dist/tools/metrics.d.ts.map +1 -0
  28. package/dist/tools/metrics.js +217 -0
  29. package/dist/tools/metrics.js.map +1 -0
  30. package/dist/tools/organizations.d.ts +16 -0
  31. package/dist/tools/organizations.d.ts.map +1 -0
  32. package/dist/tools/organizations.js +378 -0
  33. package/dist/tools/organizations.js.map +1 -0
  34. package/dist/tools/services.d.ts +14 -0
  35. package/dist/tools/services.d.ts.map +1 -0
  36. package/dist/tools/services.js +218 -0
  37. package/dist/tools/services.js.map +1 -0
  38. package/dist/tools/sessions.d.ts +14 -0
  39. package/dist/tools/sessions.d.ts.map +1 -0
  40. package/dist/tools/sessions.js +221 -0
  41. package/dist/tools/sessions.js.map +1 -0
  42. package/dist/tools/setup.d.ts +17 -0
  43. package/dist/tools/setup.d.ts.map +1 -0
  44. package/dist/tools/setup.js +304 -0
  45. package/dist/tools/setup.js.map +1 -0
  46. package/dist/tools/traces.d.ts +14 -0
  47. package/dist/tools/traces.d.ts.map +1 -0
  48. package/dist/tools/traces.js +350 -0
  49. package/dist/tools/traces.js.map +1 -0
  50. package/package.json +48 -0
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Alert-related MCP tools
3
+ */
4
+ import type { Tool } from "@modelcontextprotocol/sdk/types.js";
5
+ import type { QorrelateClient } from "../client.js";
6
+ export declare function registerAlertTools(): Tool[];
7
+ export declare function handleAlertTool(client: QorrelateClient, toolName: string, args: Record<string, unknown> | undefined): Promise<{
8
+ content: Array<{
9
+ type: string;
10
+ text: string;
11
+ }>;
12
+ isError?: boolean;
13
+ }>;
14
+ //# sourceMappingURL=alerts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../../src/tools/alerts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,wBAAgB,kBAAkB,IAAI,IAAI,EAAE,CAiL3C;AAED,wBAAsB,eAAe,CACnC,MAAM,EAAE,eAAe,EACvB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GACxC,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CA2NhF"}
@@ -0,0 +1,381 @@
1
+ "use strict";
2
+ /**
3
+ * Alert-related MCP tools
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerAlertTools = registerAlertTools;
7
+ exports.handleAlertTool = handleAlertTool;
8
+ function registerAlertTools() {
9
+ return [
10
+ {
11
+ name: "list_alerts",
12
+ description: `List alerts. By default shows active/firing alerts. Use this to check the current alert status or find past alerts.
13
+
14
+ Examples:
15
+ - See all active alerts: list_alerts with active=true
16
+ - Find critical alerts: list_alerts with severity="critical"
17
+ - Find alerts for a service: list_alerts with service="payment-service"`,
18
+ inputSchema: {
19
+ type: "object",
20
+ properties: {
21
+ active: {
22
+ type: "boolean",
23
+ description: "If true, only show currently firing alerts (default: true)",
24
+ default: true,
25
+ },
26
+ severity: {
27
+ type: "string",
28
+ enum: ["critical", "warning", "info"],
29
+ description: "Filter by alert severity",
30
+ },
31
+ service: {
32
+ type: "string",
33
+ description: "Filter by service name",
34
+ },
35
+ },
36
+ },
37
+ },
38
+ {
39
+ name: "alerts_get_details",
40
+ description: "Get detailed information about a specific alert, including its history and associated metrics/logs.",
41
+ inputSchema: {
42
+ type: "object",
43
+ properties: {
44
+ alert_id: {
45
+ type: "string",
46
+ description: "The alert ID to retrieve",
47
+ },
48
+ },
49
+ required: ["alert_id"],
50
+ },
51
+ },
52
+ {
53
+ name: "acknowledge_alert",
54
+ description: "Acknowledge an alert to indicate it's being investigated. This doesn't resolve the alert but marks it as seen.",
55
+ inputSchema: {
56
+ type: "object",
57
+ properties: {
58
+ alert_id: {
59
+ type: "string",
60
+ description: "The alert ID to acknowledge",
61
+ },
62
+ message: {
63
+ type: "string",
64
+ description: "Optional message explaining the acknowledgement or investigation status",
65
+ },
66
+ },
67
+ required: ["alert_id"],
68
+ },
69
+ },
70
+ {
71
+ name: "alerts_summary",
72
+ description: "Get a summary of alert activity. Shows counts by severity and service.",
73
+ inputSchema: {
74
+ type: "object",
75
+ properties: {
76
+ include_resolved: {
77
+ type: "boolean",
78
+ description: "Include resolved alerts in the summary (default: false)",
79
+ default: false,
80
+ },
81
+ },
82
+ },
83
+ },
84
+ {
85
+ name: "create_alert",
86
+ description: `Create a new alert rule. Alerts fire when conditions are met.
87
+
88
+ Alert types:
89
+ - error_rate: Fires when error rate exceeds threshold
90
+ - latency: Fires when latency exceeds threshold (ms)
91
+ - log_pattern: Fires when matching log pattern is detected
92
+ - metric_threshold: Fires when metric crosses threshold
93
+
94
+ Examples:
95
+ - Error rate alert: create_alert with name="High Error Rate", type="error_rate", threshold=5, severity="critical"
96
+ - Latency alert: create_alert with name="Slow API", type="latency", threshold=2000, service="api"`,
97
+ inputSchema: {
98
+ type: "object",
99
+ properties: {
100
+ name: {
101
+ type: "string",
102
+ description: "Alert name",
103
+ },
104
+ type: {
105
+ type: "string",
106
+ enum: ["error_rate", "latency", "log_pattern", "metric_threshold"],
107
+ description: "Type of alert condition",
108
+ },
109
+ condition: {
110
+ type: "string",
111
+ description: "Condition expression (e.g., '> 5%' for error rate)",
112
+ },
113
+ threshold: {
114
+ type: "number",
115
+ description: "Threshold value that triggers the alert",
116
+ },
117
+ severity: {
118
+ type: "string",
119
+ enum: ["critical", "warning", "info"],
120
+ description: "Alert severity level",
121
+ },
122
+ service: {
123
+ type: "string",
124
+ description: "Optional: Limit alert to specific service",
125
+ },
126
+ notification_channels: {
127
+ type: "array",
128
+ items: { type: "string" },
129
+ description: "Optional: Notification channel IDs (email, slack, etc.)",
130
+ },
131
+ },
132
+ required: ["name", "type", "threshold", "severity"],
133
+ },
134
+ },
135
+ {
136
+ name: "update_alert",
137
+ description: "Update an existing alert rule's configuration.",
138
+ inputSchema: {
139
+ type: "object",
140
+ properties: {
141
+ alert_id: {
142
+ type: "string",
143
+ description: "The alert ID to update",
144
+ },
145
+ name: {
146
+ type: "string",
147
+ description: "New alert name",
148
+ },
149
+ condition: {
150
+ type: "string",
151
+ description: "New condition expression",
152
+ },
153
+ threshold: {
154
+ type: "number",
155
+ description: "New threshold value",
156
+ },
157
+ severity: {
158
+ type: "string",
159
+ enum: ["critical", "warning", "info"],
160
+ description: "New severity level",
161
+ },
162
+ enabled: {
163
+ type: "boolean",
164
+ description: "Enable or disable the alert",
165
+ },
166
+ },
167
+ required: ["alert_id"],
168
+ },
169
+ },
170
+ {
171
+ name: "delete_alert",
172
+ description: "Delete an alert rule. This action cannot be undone.",
173
+ inputSchema: {
174
+ type: "object",
175
+ properties: {
176
+ alert_id: {
177
+ type: "string",
178
+ description: "The alert ID to delete",
179
+ },
180
+ },
181
+ required: ["alert_id"],
182
+ },
183
+ },
184
+ ];
185
+ }
186
+ async function handleAlertTool(client, toolName, args) {
187
+ const params = args || {};
188
+ switch (toolName) {
189
+ case "list_alerts": {
190
+ const result = await client.listAlerts({
191
+ active: params.active !== false,
192
+ severity: params.severity,
193
+ service: params.service,
194
+ });
195
+ const alerts = result.alerts.map(alert => ({
196
+ id: alert.id,
197
+ name: alert.name,
198
+ severity: alert.severity,
199
+ status: alert.status,
200
+ message: alert.message,
201
+ service: alert.service,
202
+ created_at: alert.created_at,
203
+ acknowledged: alert.acknowledged,
204
+ }));
205
+ return {
206
+ content: [{
207
+ type: "text",
208
+ text: JSON.stringify({
209
+ count: alerts.length,
210
+ alerts,
211
+ }, null, 2),
212
+ }],
213
+ };
214
+ }
215
+ case "alerts_get_details": {
216
+ const alertId = params.alert_id;
217
+ if (!alertId) {
218
+ return {
219
+ content: [{ type: "text", text: "alert_id is required" }],
220
+ isError: true,
221
+ };
222
+ }
223
+ const [alert, history] = await Promise.all([
224
+ client.getAlert(alertId),
225
+ client.getAlertHistory(alertId),
226
+ ]);
227
+ return {
228
+ content: [{
229
+ type: "text",
230
+ text: JSON.stringify({
231
+ alert: {
232
+ id: alert.id,
233
+ name: alert.name,
234
+ severity: alert.severity,
235
+ status: alert.status,
236
+ message: alert.message,
237
+ service: alert.service,
238
+ created_at: alert.created_at,
239
+ updated_at: alert.updated_at,
240
+ acknowledged: alert.acknowledged,
241
+ acknowledged_by: alert.acknowledged_by,
242
+ },
243
+ history: history.history,
244
+ }, null, 2),
245
+ }],
246
+ };
247
+ }
248
+ case "acknowledge_alert": {
249
+ const alertId = params.alert_id;
250
+ if (!alertId) {
251
+ return {
252
+ content: [{ type: "text", text: "alert_id is required" }],
253
+ isError: true,
254
+ };
255
+ }
256
+ const result = await client.acknowledgeAlert(alertId, params.message);
257
+ return {
258
+ content: [{
259
+ type: "text",
260
+ text: JSON.stringify({
261
+ success: result.success,
262
+ message: result.success
263
+ ? `Alert ${alertId} has been acknowledged`
264
+ : `Failed to acknowledge alert ${alertId}`,
265
+ }, null, 2),
266
+ }],
267
+ };
268
+ }
269
+ case "alerts_summary": {
270
+ const activeAlerts = await client.listAlerts({ active: true });
271
+ // Count by severity
272
+ const bySeverity = {};
273
+ const byService = {};
274
+ for (const alert of activeAlerts.alerts) {
275
+ bySeverity[alert.severity] = (bySeverity[alert.severity] || 0) + 1;
276
+ if (alert.service) {
277
+ byService[alert.service] = (byService[alert.service] || 0) + 1;
278
+ }
279
+ }
280
+ const acknowledged = activeAlerts.alerts.filter(a => a.acknowledged).length;
281
+ const unacknowledged = activeAlerts.alerts.length - acknowledged;
282
+ return {
283
+ content: [{
284
+ type: "text",
285
+ text: JSON.stringify({
286
+ total_active: activeAlerts.alerts.length,
287
+ acknowledged,
288
+ unacknowledged,
289
+ by_severity: bySeverity,
290
+ by_service: byService,
291
+ critical_alerts: activeAlerts.alerts
292
+ .filter(a => a.severity === 'critical')
293
+ .map(a => ({ id: a.id, name: a.name, service: a.service })),
294
+ }, null, 2),
295
+ }],
296
+ };
297
+ }
298
+ case "create_alert": {
299
+ const name = params.name;
300
+ const type = params.type;
301
+ const threshold = params.threshold;
302
+ const severity = params.severity;
303
+ if (!name || !type || threshold === undefined || !severity) {
304
+ return {
305
+ content: [{ type: "text", text: "name, type, threshold, and severity are required" }],
306
+ isError: true,
307
+ };
308
+ }
309
+ const result = await client.createAlert({
310
+ name,
311
+ type,
312
+ condition: params.condition || `> ${threshold}`,
313
+ threshold,
314
+ severity,
315
+ service: params.service,
316
+ notification_channels: params.notification_channels,
317
+ });
318
+ return {
319
+ content: [{
320
+ type: "text",
321
+ text: JSON.stringify({
322
+ success: true,
323
+ message: `Alert "${name}" created successfully`,
324
+ alert: result,
325
+ }, null, 2),
326
+ }],
327
+ };
328
+ }
329
+ case "update_alert": {
330
+ const alertId = params.alert_id;
331
+ if (!alertId) {
332
+ return {
333
+ content: [{ type: "text", text: "alert_id is required" }],
334
+ isError: true,
335
+ };
336
+ }
337
+ const result = await client.updateAlert(alertId, {
338
+ name: params.name,
339
+ condition: params.condition,
340
+ threshold: params.threshold,
341
+ severity: params.severity,
342
+ enabled: params.enabled,
343
+ });
344
+ return {
345
+ content: [{
346
+ type: "text",
347
+ text: JSON.stringify({
348
+ success: true,
349
+ message: `Alert ${alertId} updated successfully`,
350
+ alert: result,
351
+ }, null, 2),
352
+ }],
353
+ };
354
+ }
355
+ case "delete_alert": {
356
+ const alertId = params.alert_id;
357
+ if (!alertId) {
358
+ return {
359
+ content: [{ type: "text", text: "alert_id is required" }],
360
+ isError: true,
361
+ };
362
+ }
363
+ await client.deleteAlert(alertId);
364
+ return {
365
+ content: [{
366
+ type: "text",
367
+ text: JSON.stringify({
368
+ success: true,
369
+ message: `Alert ${alertId} deleted successfully`,
370
+ }, null, 2),
371
+ }],
372
+ };
373
+ }
374
+ default:
375
+ return {
376
+ content: [{ type: "text", text: `Unknown alerts tool: ${toolName}` }],
377
+ isError: true,
378
+ };
379
+ }
380
+ }
381
+ //# sourceMappingURL=alerts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alerts.js","sourceRoot":"","sources":["../../src/tools/alerts.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAKH,gDAiLC;AAED,0CA+NC;AAlZD,SAAgB,kBAAkB;IAChC,OAAO;QACL;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE;;;;;wEAKqD;YAClE,WAAW,EAAE;gBACX,IAAI,EAAE,QAAiB;gBACvB,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,SAA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ashboard management MCP tools
3
+ */
4
+ import type { Tool } from "@modelcontextprotocol/sdk/types.js";
5
+ import type { QorrelateClient } from "../client.js";
6
+ export declare function registerDashboardTools(): Tool[];
7
+ export declare function handleDashboardTool(client: QorrelateClient, toolName: string, args: Record<string, unknown>): Promise<{
8
+ content: Array<{
9
+ type: string;
10
+ text: string;
11
+ }>;
12
+ isError?: boolean;
13
+ }>;
14
+ //# sourceMappingURL=dashboards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboards.d.ts","sourceRoot":"","sources":["../../src/tools/dashboards.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,wBAAgB,sBAAsB,IAAI,IAAI,EAAE,CAoN/C;AAED,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,eAAe,EACvB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAsNhF"}