@jaypie/mcp 0.8.139 → 0.8.141

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.
@@ -1,227 +0,0 @@
1
- export interface DatadogCredentials {
2
- apiKey: string;
3
- appKey: string;
4
- }
5
- export interface DatadogSearchOptions {
6
- query?: string;
7
- source?: string;
8
- env?: string;
9
- service?: string;
10
- from?: string;
11
- to?: string;
12
- limit?: number;
13
- sort?: "timestamp" | "-timestamp";
14
- }
15
- export interface DatadogAnalyticsOptions {
16
- query?: string;
17
- source?: string;
18
- env?: string;
19
- service?: string;
20
- from?: string;
21
- to?: string;
22
- groupBy: string[];
23
- compute?: Array<{
24
- aggregation: "count" | "avg" | "sum" | "min" | "max" | "cardinality";
25
- metric?: string;
26
- }>;
27
- }
28
- export interface DatadogMonitorsOptions {
29
- tags?: string[];
30
- monitorTags?: string[];
31
- name?: string;
32
- status?: ("Alert" | "Warn" | "No Data" | "OK")[];
33
- }
34
- export interface DatadogMonitor {
35
- id: number;
36
- name: string;
37
- type: string;
38
- status: string;
39
- message?: string;
40
- tags: string[];
41
- priority?: number;
42
- query?: string;
43
- overallState?: string;
44
- }
45
- export interface DatadogMonitorsResult {
46
- success: boolean;
47
- monitors: DatadogMonitor[];
48
- error?: string;
49
- }
50
- export interface DatadogSyntheticsOptions {
51
- tags?: string[];
52
- type?: "api" | "browser";
53
- }
54
- export interface DatadogSyntheticTest {
55
- publicId: string;
56
- name: string;
57
- type: string;
58
- status: string;
59
- tags: string[];
60
- locations: string[];
61
- message?: string;
62
- }
63
- export interface DatadogSyntheticResult {
64
- publicId: string;
65
- resultId: string;
66
- status: number;
67
- checkTime: number;
68
- passed: boolean;
69
- location?: string;
70
- }
71
- export interface DatadogSyntheticsResult {
72
- success: boolean;
73
- tests: DatadogSyntheticTest[];
74
- error?: string;
75
- }
76
- export interface DatadogSyntheticResultsResult {
77
- success: boolean;
78
- publicId: string;
79
- results: DatadogSyntheticResult[];
80
- error?: string;
81
- }
82
- export interface DatadogMetricsOptions {
83
- query: string;
84
- from: number;
85
- to: number;
86
- }
87
- export interface DatadogMetricSeries {
88
- metric: string;
89
- scope: string;
90
- pointlist: Array<[number, number | null]>;
91
- unit?: string;
92
- }
93
- export interface DatadogMetricsResult {
94
- success: boolean;
95
- query: string;
96
- timeRange: {
97
- from: number;
98
- to: number;
99
- };
100
- series: DatadogMetricSeries[];
101
- error?: string;
102
- }
103
- export interface DatadogRumOptions {
104
- query?: string;
105
- from?: string;
106
- to?: string;
107
- limit?: number;
108
- sort?: "timestamp" | "-timestamp";
109
- }
110
- export interface DatadogRumEvent {
111
- id: string;
112
- type: string;
113
- timestamp?: string;
114
- sessionId?: string;
115
- viewUrl?: string;
116
- viewName?: string;
117
- errorMessage?: string;
118
- errorType?: string;
119
- attributes?: Record<string, unknown>;
120
- }
121
- export interface DatadogRumResult {
122
- success: boolean;
123
- query: string;
124
- timeRange: {
125
- from: string;
126
- to: string;
127
- };
128
- events: DatadogRumEvent[];
129
- error?: string;
130
- }
131
- export interface DatadogValidationResult {
132
- success: boolean;
133
- apiKey: {
134
- present: boolean;
135
- source: string | null;
136
- };
137
- appKey: {
138
- present: boolean;
139
- source: string | null;
140
- };
141
- }
142
- export interface DatadogLogEntry {
143
- id: string;
144
- timestamp?: string;
145
- status?: string;
146
- service?: string;
147
- message?: string;
148
- attributes?: Record<string, unknown>;
149
- }
150
- export interface DatadogSearchResult {
151
- success: boolean;
152
- query: string;
153
- timeRange: {
154
- from: string;
155
- to: string;
156
- };
157
- logs: DatadogLogEntry[];
158
- error?: string;
159
- }
160
- export interface DatadogAnalyticsBucket {
161
- by: Record<string, string>;
162
- computes: Record<string, number>;
163
- }
164
- export interface DatadogAnalyticsResult {
165
- success: boolean;
166
- query: string;
167
- timeRange: {
168
- from: string;
169
- to: string;
170
- };
171
- groupBy: string[];
172
- buckets: DatadogAnalyticsBucket[];
173
- error?: string;
174
- }
175
- interface Logger {
176
- info: (message: string, ...args: unknown[]) => void;
177
- error: (message: string, ...args: unknown[]) => void;
178
- }
179
- /**
180
- * Get Datadog credentials from environment variables
181
- */
182
- export declare function getDatadogCredentials(): DatadogCredentials | null;
183
- /**
184
- * Validate Datadog setup without making API calls
185
- */
186
- export declare function validateDatadogSetup(): DatadogValidationResult;
187
- /**
188
- * Validate Datadog API credentials
189
- */
190
- export declare function validateDatadogCredentials(credentials: DatadogCredentials): Promise<{
191
- valid: boolean;
192
- error?: string;
193
- }>;
194
- /**
195
- * Build query string from environment variables and options
196
- */
197
- export declare function buildDatadogQuery(options: DatadogSearchOptions): string;
198
- /**
199
- * Search Datadog logs
200
- */
201
- export declare function searchDatadogLogs(credentials: DatadogCredentials, options?: DatadogSearchOptions, logger?: Logger): Promise<DatadogSearchResult>;
202
- /**
203
- * Aggregate Datadog logs using the Analytics API
204
- * Groups logs by specified fields and computes aggregations
205
- */
206
- export declare function aggregateDatadogLogs(credentials: DatadogCredentials, options: DatadogAnalyticsOptions, logger?: Logger): Promise<DatadogAnalyticsResult>;
207
- /**
208
- * List Datadog monitors with optional filtering
209
- */
210
- export declare function listDatadogMonitors(credentials: DatadogCredentials, options?: DatadogMonitorsOptions, logger?: Logger): Promise<DatadogMonitorsResult>;
211
- /**
212
- * List Datadog Synthetic tests
213
- */
214
- export declare function listDatadogSynthetics(credentials: DatadogCredentials, options?: DatadogSyntheticsOptions, logger?: Logger): Promise<DatadogSyntheticsResult>;
215
- /**
216
- * Get recent results for a specific Synthetic test
217
- */
218
- export declare function getDatadogSyntheticResults(credentials: DatadogCredentials, publicId: string, logger?: Logger): Promise<DatadogSyntheticResultsResult>;
219
- /**
220
- * Query Datadog metrics
221
- */
222
- export declare function queryDatadogMetrics(credentials: DatadogCredentials, options: DatadogMetricsOptions, logger?: Logger): Promise<DatadogMetricsResult>;
223
- /**
224
- * Search Datadog RUM events
225
- */
226
- export declare function searchDatadogRum(credentials: DatadogCredentials, options?: DatadogRumOptions, logger?: Logger): Promise<DatadogRumResult>;
227
- export {};