@jaypie/mcp 0.1.9 → 0.2.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.
- package/dist/datadog.d.ts +212 -0
- package/dist/index.js +1461 -6
- package/dist/index.js.map +1 -1
- package/package.json +10 -7
- package/prompts/Development_Process.md +57 -35
- package/prompts/Jaypie_CDK_Constructs_and_Patterns.md +143 -19
- package/prompts/Jaypie_Express_Package.md +408 -0
- package/prompts/Jaypie_Init_Express_on_Lambda.md +66 -38
- package/prompts/Jaypie_Init_Lambda_Package.md +202 -83
- package/prompts/Jaypie_Init_Project_Subpackage.md +21 -26
- package/prompts/Jaypie_Legacy_Patterns.md +4 -0
- package/prompts/Templates_CDK_Subpackage.md +113 -0
- package/prompts/Templates_Express_Subpackage.md +183 -0
- package/prompts/Templates_Project_Monorepo.md +326 -0
- package/prompts/Templates_Project_Subpackage.md +93 -0
- package/LICENSE.txt +0 -21
- package/prompts/Jaypie_Mongoose_Models_Package.md +0 -231
- package/prompts/Jaypie_Mongoose_with_Express_CRUD.md +0 -1000
- package/prompts/templates/cdk-subpackage/bin/cdk.ts +0 -11
- package/prompts/templates/cdk-subpackage/cdk.json +0 -19
- package/prompts/templates/cdk-subpackage/lib/cdk-app.ts +0 -41
- package/prompts/templates/cdk-subpackage/lib/cdk-infrastructure.ts +0 -15
- package/prompts/templates/express-subpackage/index.ts +0 -8
- package/prompts/templates/express-subpackage/src/app.ts +0 -18
- package/prompts/templates/express-subpackage/src/handler.config.ts +0 -44
- package/prompts/templates/express-subpackage/src/routes/resource/__tests__/resourceGet.route.spec.ts +0 -29
- package/prompts/templates/express-subpackage/src/routes/resource/resourceGet.route.ts +0 -22
- package/prompts/templates/express-subpackage/src/routes/resource.router.ts +0 -11
- package/prompts/templates/express-subpackage/src/types/express.ts +0 -9
- package/prompts/templates/project-monorepo/.vscode/settings.json +0 -72
- package/prompts/templates/project-monorepo/eslint.config.mjs +0 -1
- package/prompts/templates/project-monorepo/gitignore +0 -11
- package/prompts/templates/project-monorepo/package.json +0 -20
- package/prompts/templates/project-monorepo/tsconfig.base.json +0 -18
- package/prompts/templates/project-monorepo/tsconfig.json +0 -6
- package/prompts/templates/project-monorepo/vitest.workspace.js +0 -3
- package/prompts/templates/project-subpackage/package.json +0 -16
- package/prompts/templates/project-subpackage/tsconfig.json +0 -11
- package/prompts/templates/project-subpackage/vite.config.ts +0 -21
- package/prompts/templates/project-subpackage/vitest.config.ts +0 -7
- package/prompts/templates/project-subpackage/vitest.setup.ts +0 -6
|
@@ -0,0 +1,212 @@
|
|
|
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 DatadogLogEntry {
|
|
132
|
+
id: string;
|
|
133
|
+
timestamp?: string;
|
|
134
|
+
status?: string;
|
|
135
|
+
service?: string;
|
|
136
|
+
message?: string;
|
|
137
|
+
attributes?: Record<string, unknown>;
|
|
138
|
+
}
|
|
139
|
+
export interface DatadogSearchResult {
|
|
140
|
+
success: boolean;
|
|
141
|
+
query: string;
|
|
142
|
+
timeRange: {
|
|
143
|
+
from: string;
|
|
144
|
+
to: string;
|
|
145
|
+
};
|
|
146
|
+
logs: DatadogLogEntry[];
|
|
147
|
+
error?: string;
|
|
148
|
+
}
|
|
149
|
+
export interface DatadogAnalyticsBucket {
|
|
150
|
+
by: Record<string, string>;
|
|
151
|
+
computes: Record<string, number>;
|
|
152
|
+
}
|
|
153
|
+
export interface DatadogAnalyticsResult {
|
|
154
|
+
success: boolean;
|
|
155
|
+
query: string;
|
|
156
|
+
timeRange: {
|
|
157
|
+
from: string;
|
|
158
|
+
to: string;
|
|
159
|
+
};
|
|
160
|
+
groupBy: string[];
|
|
161
|
+
buckets: DatadogAnalyticsBucket[];
|
|
162
|
+
error?: string;
|
|
163
|
+
}
|
|
164
|
+
interface Logger {
|
|
165
|
+
info: (message: string, ...args: unknown[]) => void;
|
|
166
|
+
error: (message: string, ...args: unknown[]) => void;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Get Datadog credentials from environment variables
|
|
170
|
+
*/
|
|
171
|
+
export declare function getDatadogCredentials(): DatadogCredentials | null;
|
|
172
|
+
/**
|
|
173
|
+
* Validate Datadog API credentials
|
|
174
|
+
*/
|
|
175
|
+
export declare function validateDatadogCredentials(credentials: DatadogCredentials): Promise<{
|
|
176
|
+
valid: boolean;
|
|
177
|
+
error?: string;
|
|
178
|
+
}>;
|
|
179
|
+
/**
|
|
180
|
+
* Build query string from environment variables and options
|
|
181
|
+
*/
|
|
182
|
+
export declare function buildDatadogQuery(options: DatadogSearchOptions): string;
|
|
183
|
+
/**
|
|
184
|
+
* Search Datadog logs
|
|
185
|
+
*/
|
|
186
|
+
export declare function searchDatadogLogs(credentials: DatadogCredentials, options?: DatadogSearchOptions, logger?: Logger): Promise<DatadogSearchResult>;
|
|
187
|
+
/**
|
|
188
|
+
* Aggregate Datadog logs using the Analytics API
|
|
189
|
+
* Groups logs by specified fields and computes aggregations
|
|
190
|
+
*/
|
|
191
|
+
export declare function aggregateDatadogLogs(credentials: DatadogCredentials, options: DatadogAnalyticsOptions, logger?: Logger): Promise<DatadogAnalyticsResult>;
|
|
192
|
+
/**
|
|
193
|
+
* List Datadog monitors with optional filtering
|
|
194
|
+
*/
|
|
195
|
+
export declare function listDatadogMonitors(credentials: DatadogCredentials, options?: DatadogMonitorsOptions, logger?: Logger): Promise<DatadogMonitorsResult>;
|
|
196
|
+
/**
|
|
197
|
+
* List Datadog Synthetic tests
|
|
198
|
+
*/
|
|
199
|
+
export declare function listDatadogSynthetics(credentials: DatadogCredentials, options?: DatadogSyntheticsOptions, logger?: Logger): Promise<DatadogSyntheticsResult>;
|
|
200
|
+
/**
|
|
201
|
+
* Get recent results for a specific Synthetic test
|
|
202
|
+
*/
|
|
203
|
+
export declare function getDatadogSyntheticResults(credentials: DatadogCredentials, publicId: string, logger?: Logger): Promise<DatadogSyntheticResultsResult>;
|
|
204
|
+
/**
|
|
205
|
+
* Query Datadog metrics
|
|
206
|
+
*/
|
|
207
|
+
export declare function queryDatadogMetrics(credentials: DatadogCredentials, options: DatadogMetricsOptions, logger?: Logger): Promise<DatadogMetricsResult>;
|
|
208
|
+
/**
|
|
209
|
+
* Search Datadog RUM events
|
|
210
|
+
*/
|
|
211
|
+
export declare function searchDatadogRum(credentials: DatadogCredentials, options?: DatadogRumOptions, logger?: Logger): Promise<DatadogRumResult>;
|
|
212
|
+
export {};
|