@tmdjr/service-mcp-gateway-contracts 0.0.4 → 1.0.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/index.d.ts +10 -5
- package/dist/index.js +1 -5
- package/dist/mcp-tools.d.ts +372 -0
- package/dist/mcp-tools.js +469 -0
- package/dist/service-mcp-gateway.types.d.ts +95 -329
- package/package.json +5 -6
- package/dist/models/AuthTestDto.d.ts +0 -3
- package/dist/models/AuthTestDto.js +0 -1
- package/dist/models/CreateExampleMongodbDocDto.d.ts +0 -9
- package/dist/models/CreateExampleMongodbDocDto.js +0 -1
- package/dist/models/ExampleMongodbDocDto.d.ts +0 -12
- package/dist/models/ExampleMongodbDocDto.js +0 -1
- package/dist/models/ExampleMongodbDocObjectDto.d.ts +0 -6
- package/dist/models/ExampleMongodbDocObjectDto.js +0 -1
- package/dist/models/UpdateExampleMongodbDocDto.d.ts +0 -9
- package/dist/models/UpdateExampleMongodbDocDto.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
1
|
+
import type { components } from './service-mcp-gateway.types.js';
|
|
2
|
+
export type OAuthResourceMetadataDto = components['schemas']['OAuthResourceMetadataDto'];
|
|
3
|
+
export type ListWorkshopsInput = components['schemas']['ListWorkshopsInput'];
|
|
4
|
+
export type GetWorkshopInput = components['schemas']['GetWorkshopInput'];
|
|
5
|
+
export type GetCodingLabInput = components['schemas']['GetCodingLabInput'];
|
|
6
|
+
export type ListWorkshopsOutput = components['schemas']['ListWorkshopsOutput'];
|
|
7
|
+
export type GetWorkshopOutput = components['schemas']['GetWorkshopOutput'];
|
|
8
|
+
export type GetCodingLabOutput = components['schemas']['GetCodingLabOutput'];
|
|
9
|
+
export type ToolError = components['schemas']['ToolError'];
|
|
10
|
+
export { mcpCatalogContract } from './mcp-tools.js';
|
package/dist/index.js
CHANGED
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
export declare const mcpCatalogContract: {
|
|
2
|
+
readonly name: "ngx-workshop-catalog";
|
|
3
|
+
readonly version: "0.1.0";
|
|
4
|
+
readonly tools: readonly [{
|
|
5
|
+
readonly name: "list_workshops";
|
|
6
|
+
readonly description: "List public workshop summaries in a section. This catalog does not determine learner eligibility.";
|
|
7
|
+
readonly annotations: {
|
|
8
|
+
readonly readOnlyHint: true;
|
|
9
|
+
readonly destructiveHint: false;
|
|
10
|
+
readonly idempotentHint: true;
|
|
11
|
+
readonly openWorldHint: true;
|
|
12
|
+
};
|
|
13
|
+
readonly inputSchema: {
|
|
14
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
15
|
+
readonly type: "object";
|
|
16
|
+
readonly properties: {
|
|
17
|
+
readonly sectionId: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
readonly minLength: 1;
|
|
20
|
+
readonly maxLength: 120;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
readonly required: readonly ["sectionId"];
|
|
24
|
+
readonly additionalProperties: false;
|
|
25
|
+
};
|
|
26
|
+
readonly outputSchema: {
|
|
27
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
28
|
+
readonly type: "object";
|
|
29
|
+
readonly properties: {
|
|
30
|
+
readonly workshops: {
|
|
31
|
+
readonly maxItems: 500;
|
|
32
|
+
readonly type: "array";
|
|
33
|
+
readonly items: {
|
|
34
|
+
readonly type: "object";
|
|
35
|
+
readonly properties: {
|
|
36
|
+
readonly id: {
|
|
37
|
+
readonly type: "string";
|
|
38
|
+
readonly minLength: 1;
|
|
39
|
+
readonly maxLength: 120;
|
|
40
|
+
};
|
|
41
|
+
readonly sectionId: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
readonly minLength: 1;
|
|
44
|
+
readonly maxLength: 120;
|
|
45
|
+
};
|
|
46
|
+
readonly title: {
|
|
47
|
+
readonly type: "string";
|
|
48
|
+
readonly maxLength: 2000;
|
|
49
|
+
};
|
|
50
|
+
readonly summary: {
|
|
51
|
+
readonly type: "string";
|
|
52
|
+
readonly maxLength: 20000;
|
|
53
|
+
};
|
|
54
|
+
readonly level: {
|
|
55
|
+
readonly type: "integer";
|
|
56
|
+
readonly minimum: 1;
|
|
57
|
+
readonly maximum: 20;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
readonly required: readonly ["id", "sectionId", "title", "summary", "level"];
|
|
61
|
+
readonly additionalProperties: false;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
readonly required: readonly ["workshops"];
|
|
66
|
+
readonly additionalProperties: false;
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: "get_workshop";
|
|
70
|
+
readonly description: "Get public workshop metadata and its ordered learning outline within a section. Does not return document bodies or learner progress.";
|
|
71
|
+
readonly annotations: {
|
|
72
|
+
readonly readOnlyHint: true;
|
|
73
|
+
readonly destructiveHint: false;
|
|
74
|
+
readonly idempotentHint: true;
|
|
75
|
+
readonly openWorldHint: true;
|
|
76
|
+
};
|
|
77
|
+
readonly inputSchema: {
|
|
78
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
79
|
+
readonly type: "object";
|
|
80
|
+
readonly properties: {
|
|
81
|
+
readonly sectionId: {
|
|
82
|
+
readonly type: "string";
|
|
83
|
+
readonly minLength: 1;
|
|
84
|
+
readonly maxLength: 120;
|
|
85
|
+
};
|
|
86
|
+
readonly workshopId: {
|
|
87
|
+
readonly type: "string";
|
|
88
|
+
readonly minLength: 1;
|
|
89
|
+
readonly maxLength: 120;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly required: readonly ["sectionId", "workshopId"];
|
|
93
|
+
readonly additionalProperties: false;
|
|
94
|
+
};
|
|
95
|
+
readonly outputSchema: {
|
|
96
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
97
|
+
readonly type: "object";
|
|
98
|
+
readonly properties: {
|
|
99
|
+
readonly workshop: {
|
|
100
|
+
readonly type: "object";
|
|
101
|
+
readonly properties: {
|
|
102
|
+
readonly id: {
|
|
103
|
+
readonly type: "string";
|
|
104
|
+
readonly minLength: 1;
|
|
105
|
+
readonly maxLength: 120;
|
|
106
|
+
};
|
|
107
|
+
readonly sectionId: {
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
readonly minLength: 1;
|
|
110
|
+
readonly maxLength: 120;
|
|
111
|
+
};
|
|
112
|
+
readonly title: {
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
readonly maxLength: 2000;
|
|
115
|
+
};
|
|
116
|
+
readonly summary: {
|
|
117
|
+
readonly type: "string";
|
|
118
|
+
readonly maxLength: 20000;
|
|
119
|
+
};
|
|
120
|
+
readonly level: {
|
|
121
|
+
readonly type: "integer";
|
|
122
|
+
readonly minimum: 1;
|
|
123
|
+
readonly maximum: 20;
|
|
124
|
+
};
|
|
125
|
+
readonly outline: {
|
|
126
|
+
readonly maxItems: 500;
|
|
127
|
+
readonly type: "array";
|
|
128
|
+
readonly items: {
|
|
129
|
+
readonly oneOf: readonly [{
|
|
130
|
+
readonly type: "object";
|
|
131
|
+
readonly properties: {
|
|
132
|
+
readonly id: {
|
|
133
|
+
readonly type: "string";
|
|
134
|
+
readonly minLength: 1;
|
|
135
|
+
readonly maxLength: 120;
|
|
136
|
+
};
|
|
137
|
+
readonly title: {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
readonly maxLength: 2000;
|
|
140
|
+
};
|
|
141
|
+
readonly kind: {
|
|
142
|
+
readonly type: "string";
|
|
143
|
+
readonly const: "PAGE";
|
|
144
|
+
};
|
|
145
|
+
readonly resourceId: {
|
|
146
|
+
readonly type: "string";
|
|
147
|
+
readonly minLength: 1;
|
|
148
|
+
readonly maxLength: 120;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
readonly required: readonly ["id", "title", "kind", "resourceId"];
|
|
152
|
+
readonly additionalProperties: false;
|
|
153
|
+
}, {
|
|
154
|
+
readonly type: "object";
|
|
155
|
+
readonly properties: {
|
|
156
|
+
readonly id: {
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
readonly minLength: 1;
|
|
159
|
+
readonly maxLength: 120;
|
|
160
|
+
};
|
|
161
|
+
readonly title: {
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
readonly maxLength: 2000;
|
|
164
|
+
};
|
|
165
|
+
readonly kind: {
|
|
166
|
+
readonly type: "string";
|
|
167
|
+
readonly const: "CODING_LAB";
|
|
168
|
+
};
|
|
169
|
+
readonly resourceId: {
|
|
170
|
+
readonly type: "string";
|
|
171
|
+
readonly minLength: 1;
|
|
172
|
+
readonly maxLength: 120;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
readonly required: readonly ["id", "title", "kind", "resourceId"];
|
|
176
|
+
readonly additionalProperties: false;
|
|
177
|
+
}, {
|
|
178
|
+
readonly type: "object";
|
|
179
|
+
readonly properties: {
|
|
180
|
+
readonly id: {
|
|
181
|
+
readonly type: "string";
|
|
182
|
+
readonly minLength: 1;
|
|
183
|
+
readonly maxLength: 120;
|
|
184
|
+
};
|
|
185
|
+
readonly title: {
|
|
186
|
+
readonly type: "string";
|
|
187
|
+
readonly maxLength: 2000;
|
|
188
|
+
};
|
|
189
|
+
readonly kind: {
|
|
190
|
+
readonly type: "string";
|
|
191
|
+
readonly const: "ASSESSMENT_TEST";
|
|
192
|
+
};
|
|
193
|
+
readonly resourceId: {
|
|
194
|
+
readonly type: "string";
|
|
195
|
+
readonly minLength: 1;
|
|
196
|
+
readonly maxLength: 120;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
readonly required: readonly ["id", "title", "kind", "resourceId"];
|
|
200
|
+
readonly additionalProperties: false;
|
|
201
|
+
}];
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
readonly required: readonly ["id", "sectionId", "title", "summary", "level", "outline"];
|
|
206
|
+
readonly additionalProperties: false;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
readonly required: readonly ["workshop"];
|
|
210
|
+
readonly additionalProperties: false;
|
|
211
|
+
};
|
|
212
|
+
}, {
|
|
213
|
+
readonly name: "get_coding_lab";
|
|
214
|
+
readonly description: "Get a published coding challenge, starter code, hints and public sample tests. Optionally select a published version; no solutions or hidden tests.";
|
|
215
|
+
readonly annotations: {
|
|
216
|
+
readonly readOnlyHint: true;
|
|
217
|
+
readonly destructiveHint: false;
|
|
218
|
+
readonly idempotentHint: true;
|
|
219
|
+
readonly openWorldHint: true;
|
|
220
|
+
};
|
|
221
|
+
readonly inputSchema: {
|
|
222
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
223
|
+
readonly type: "object";
|
|
224
|
+
readonly properties: {
|
|
225
|
+
readonly labId: {
|
|
226
|
+
readonly type: "string";
|
|
227
|
+
readonly pattern: "^[a-f\\d]{24}$";
|
|
228
|
+
};
|
|
229
|
+
readonly versionId: {
|
|
230
|
+
readonly type: "string";
|
|
231
|
+
readonly pattern: "^[a-f\\d]{24}$";
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
readonly required: readonly ["labId"];
|
|
235
|
+
readonly additionalProperties: false;
|
|
236
|
+
};
|
|
237
|
+
readonly outputSchema: {
|
|
238
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
239
|
+
readonly type: "object";
|
|
240
|
+
readonly properties: {
|
|
241
|
+
readonly lab: {
|
|
242
|
+
readonly type: "object";
|
|
243
|
+
readonly properties: {
|
|
244
|
+
readonly id: {
|
|
245
|
+
readonly type: "string";
|
|
246
|
+
readonly pattern: "^[a-f\\d]{24}$";
|
|
247
|
+
};
|
|
248
|
+
readonly versionId: {
|
|
249
|
+
readonly type: "string";
|
|
250
|
+
readonly pattern: "^[a-f\\d]{24}$";
|
|
251
|
+
};
|
|
252
|
+
readonly versionNumber: {
|
|
253
|
+
readonly type: "integer";
|
|
254
|
+
readonly exclusiveMinimum: 0;
|
|
255
|
+
readonly maximum: 9007199254740991;
|
|
256
|
+
};
|
|
257
|
+
readonly title: {
|
|
258
|
+
readonly type: "string";
|
|
259
|
+
readonly maxLength: 2000;
|
|
260
|
+
};
|
|
261
|
+
readonly difficulty: {
|
|
262
|
+
readonly type: "string";
|
|
263
|
+
readonly enum: readonly ["intro", "easy", "medium", "hard"];
|
|
264
|
+
};
|
|
265
|
+
readonly language: {
|
|
266
|
+
readonly type: "string";
|
|
267
|
+
readonly enum: readonly ["javascript", "typescript"];
|
|
268
|
+
};
|
|
269
|
+
readonly promptMarkdown: {
|
|
270
|
+
readonly type: "string";
|
|
271
|
+
readonly maxLength: 100000;
|
|
272
|
+
};
|
|
273
|
+
readonly hints: {
|
|
274
|
+
readonly maxItems: 100;
|
|
275
|
+
readonly type: "array";
|
|
276
|
+
readonly items: {
|
|
277
|
+
readonly type: "string";
|
|
278
|
+
readonly maxLength: 20000;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
readonly starterCode: {
|
|
282
|
+
readonly type: "string";
|
|
283
|
+
readonly maxLength: 100000;
|
|
284
|
+
};
|
|
285
|
+
readonly sampleTests: {
|
|
286
|
+
readonly maxItems: 100;
|
|
287
|
+
readonly type: "array";
|
|
288
|
+
readonly items: {
|
|
289
|
+
readonly type: "object";
|
|
290
|
+
readonly properties: {
|
|
291
|
+
readonly name: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
readonly maxLength: 2000;
|
|
294
|
+
};
|
|
295
|
+
readonly kind: {
|
|
296
|
+
readonly type: "string";
|
|
297
|
+
readonly enum: readonly ["io", "unit"];
|
|
298
|
+
};
|
|
299
|
+
readonly input: {};
|
|
300
|
+
readonly expected: {};
|
|
301
|
+
readonly comparator: {
|
|
302
|
+
readonly type: "object";
|
|
303
|
+
readonly properties: {
|
|
304
|
+
readonly kind: {
|
|
305
|
+
readonly type: "string";
|
|
306
|
+
readonly enum: readonly ["deepEqual", "strictEqual", "numberTolerance", "stringNormalized", "custom"];
|
|
307
|
+
};
|
|
308
|
+
readonly tolerance: {
|
|
309
|
+
readonly type: "number";
|
|
310
|
+
};
|
|
311
|
+
readonly normalizeWhitespace: {
|
|
312
|
+
readonly type: "boolean";
|
|
313
|
+
};
|
|
314
|
+
readonly ignoreCase: {
|
|
315
|
+
readonly type: "boolean";
|
|
316
|
+
};
|
|
317
|
+
readonly customComparatorId: {
|
|
318
|
+
readonly type: "string";
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
readonly required: readonly ["kind"];
|
|
322
|
+
readonly additionalProperties: false;
|
|
323
|
+
};
|
|
324
|
+
readonly testCode: {
|
|
325
|
+
readonly type: "string";
|
|
326
|
+
readonly maxLength: 50000;
|
|
327
|
+
};
|
|
328
|
+
readonly framework: {
|
|
329
|
+
readonly type: "string";
|
|
330
|
+
readonly enum: readonly ["jest", "vitest"];
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
readonly required: readonly ["name", "kind"];
|
|
334
|
+
readonly additionalProperties: false;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
readonly entryFnName: {
|
|
338
|
+
readonly type: "string";
|
|
339
|
+
readonly maxLength: 200;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
readonly required: readonly ["id", "versionId", "versionNumber", "title", "language", "promptMarkdown", "hints", "starterCode", "sampleTests"];
|
|
343
|
+
readonly additionalProperties: false;
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
readonly required: readonly ["lab"];
|
|
347
|
+
readonly additionalProperties: false;
|
|
348
|
+
};
|
|
349
|
+
}];
|
|
350
|
+
readonly errorSchema: {
|
|
351
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
352
|
+
readonly type: "object";
|
|
353
|
+
readonly properties: {
|
|
354
|
+
readonly error: {
|
|
355
|
+
readonly type: "object";
|
|
356
|
+
readonly properties: {
|
|
357
|
+
readonly code: {
|
|
358
|
+
readonly type: "string";
|
|
359
|
+
readonly enum: readonly ["NOT_FOUND", "FORBIDDEN", "UPSTREAM_TIMEOUT", "UPSTREAM_UNAVAILABLE", "UPSTREAM_INVALID_RESPONSE", "INTERNAL_ERROR"];
|
|
360
|
+
};
|
|
361
|
+
readonly message: {
|
|
362
|
+
readonly type: "string";
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
readonly required: readonly ["code", "message"];
|
|
366
|
+
readonly additionalProperties: false;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
readonly required: readonly ["error"];
|
|
370
|
+
readonly additionalProperties: false;
|
|
371
|
+
};
|
|
372
|
+
};
|