@tmdjr/service-mcp-gateway-contracts 1.1.0 → 1.2.30
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 +2 -0
- package/dist/mcp-tools.d.ts +74 -1
- package/dist/mcp-tools.js +85 -1
- package/dist/service-mcp-gateway.types.d.ts +20 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export type ListWorkshopsOutput = components['schemas']['ListWorkshopsOutput'];
|
|
|
7
7
|
export type GetWorkshopOutput = components['schemas']['GetWorkshopOutput'];
|
|
8
8
|
export type GetCodingLabOutput = components['schemas']['GetCodingLabOutput'];
|
|
9
9
|
export type ToolError = components['schemas']['ToolError'];
|
|
10
|
+
export type PublishingModelCatalog = components['schemas']['PublishingModelCatalog'];
|
|
11
|
+
export type PublishingModel = components['schemas']['PublishingModel'];
|
|
10
12
|
export type WorkshopDraft = components['schemas']['WorkshopDraft'];
|
|
11
13
|
export type PublishingReceipt = components['schemas']['PublishingReceipt'];
|
|
12
14
|
export type ManageDocumentInput = components['schemas']['ManageDocumentInput'];
|
package/dist/mcp-tools.d.ts
CHANGED
|
@@ -351,6 +351,54 @@ export declare const mcpCatalogContract: {
|
|
|
351
351
|
readonly endpoint: "/mcp/publishing";
|
|
352
352
|
readonly authentication: "platform administrator bearer";
|
|
353
353
|
readonly tools: readonly [{
|
|
354
|
+
readonly name: "list_publishing_models";
|
|
355
|
+
readonly description: "List server-approved draft models and reference USD token pricing.";
|
|
356
|
+
readonly annotations: {
|
|
357
|
+
readonly readOnlyHint: true;
|
|
358
|
+
readonly destructiveHint: false;
|
|
359
|
+
readonly idempotentHint: true;
|
|
360
|
+
readonly openWorldHint: true;
|
|
361
|
+
};
|
|
362
|
+
readonly inputSchema: {
|
|
363
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
364
|
+
readonly type: "object";
|
|
365
|
+
readonly properties: {};
|
|
366
|
+
readonly additionalProperties: false;
|
|
367
|
+
};
|
|
368
|
+
readonly outputSchema: {
|
|
369
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
370
|
+
readonly type: "object";
|
|
371
|
+
readonly properties: {
|
|
372
|
+
readonly data: {};
|
|
373
|
+
};
|
|
374
|
+
readonly required: readonly ["data"];
|
|
375
|
+
readonly additionalProperties: false;
|
|
376
|
+
};
|
|
377
|
+
}, {
|
|
378
|
+
readonly name: "list_publishing_runs";
|
|
379
|
+
readonly description: "List durable publishing receipts for the authenticated administrator, newest first.";
|
|
380
|
+
readonly annotations: {
|
|
381
|
+
readonly readOnlyHint: true;
|
|
382
|
+
readonly destructiveHint: false;
|
|
383
|
+
readonly idempotentHint: true;
|
|
384
|
+
readonly openWorldHint: true;
|
|
385
|
+
};
|
|
386
|
+
readonly inputSchema: {
|
|
387
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
388
|
+
readonly type: "object";
|
|
389
|
+
readonly properties: {};
|
|
390
|
+
readonly additionalProperties: false;
|
|
391
|
+
};
|
|
392
|
+
readonly outputSchema: {
|
|
393
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
394
|
+
readonly type: "object";
|
|
395
|
+
readonly properties: {
|
|
396
|
+
readonly data: {};
|
|
397
|
+
};
|
|
398
|
+
readonly required: readonly ["data"];
|
|
399
|
+
readonly additionalProperties: false;
|
|
400
|
+
};
|
|
401
|
+
}, {
|
|
354
402
|
readonly name: "generate_workshop_draft";
|
|
355
403
|
readonly description: "Generate documentation, labs and assessment from a brief; no owner writes. Review before publish.";
|
|
356
404
|
readonly annotations: {
|
|
@@ -368,6 +416,11 @@ export declare const mcpCatalogContract: {
|
|
|
368
416
|
readonly minLength: 1;
|
|
369
417
|
readonly maxLength: 20000;
|
|
370
418
|
};
|
|
419
|
+
readonly model: {
|
|
420
|
+
readonly type: "string";
|
|
421
|
+
readonly minLength: 1;
|
|
422
|
+
readonly maxLength: 120;
|
|
423
|
+
};
|
|
371
424
|
readonly sectionId: {
|
|
372
425
|
readonly type: "string";
|
|
373
426
|
readonly minLength: 1;
|
|
@@ -2316,7 +2369,7 @@ export declare const mcpCatalogContract: {
|
|
|
2316
2369
|
};
|
|
2317
2370
|
}, {
|
|
2318
2371
|
readonly name: "workshop_image";
|
|
2319
|
-
readonly description: "Find ready
|
|
2372
|
+
readonly description: "Find ready image assets, generate and upload a workshop image using server model credentials, or upload base64 bytes. Use returned storageUrl in image dataClean JSON.";
|
|
2320
2373
|
readonly annotations: {
|
|
2321
2374
|
readonly readOnlyHint: false;
|
|
2322
2375
|
readonly destructiveHint: true;
|
|
@@ -2339,6 +2392,26 @@ export declare const mcpCatalogContract: {
|
|
|
2339
2392
|
};
|
|
2340
2393
|
readonly required: readonly ["operation", "query"];
|
|
2341
2394
|
readonly additionalProperties: false;
|
|
2395
|
+
}, {
|
|
2396
|
+
readonly type: "object";
|
|
2397
|
+
readonly properties: {
|
|
2398
|
+
readonly operation: {
|
|
2399
|
+
readonly type: "string";
|
|
2400
|
+
readonly const: "generate";
|
|
2401
|
+
};
|
|
2402
|
+
readonly prompt: {
|
|
2403
|
+
readonly type: "string";
|
|
2404
|
+
readonly minLength: 1;
|
|
2405
|
+
readonly maxLength: 4000;
|
|
2406
|
+
};
|
|
2407
|
+
readonly name: {
|
|
2408
|
+
readonly type: "string";
|
|
2409
|
+
readonly minLength: 1;
|
|
2410
|
+
readonly maxLength: 120;
|
|
2411
|
+
};
|
|
2412
|
+
};
|
|
2413
|
+
readonly required: readonly ["operation", "prompt", "name"];
|
|
2414
|
+
readonly additionalProperties: false;
|
|
2342
2415
|
}, {
|
|
2343
2416
|
readonly type: "object";
|
|
2344
2417
|
readonly properties: {
|
package/dist/mcp-tools.js
CHANGED
|
@@ -436,6 +436,60 @@ export const mcpCatalogContract = {
|
|
|
436
436
|
"endpoint": "/mcp/publishing",
|
|
437
437
|
"authentication": "platform administrator bearer",
|
|
438
438
|
"tools": [
|
|
439
|
+
{
|
|
440
|
+
"name": "list_publishing_models",
|
|
441
|
+
"description": "List server-approved draft models and reference USD token pricing.",
|
|
442
|
+
"annotations": {
|
|
443
|
+
"readOnlyHint": true,
|
|
444
|
+
"destructiveHint": false,
|
|
445
|
+
"idempotentHint": true,
|
|
446
|
+
"openWorldHint": true
|
|
447
|
+
},
|
|
448
|
+
"inputSchema": {
|
|
449
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
450
|
+
"type": "object",
|
|
451
|
+
"properties": {},
|
|
452
|
+
"additionalProperties": false
|
|
453
|
+
},
|
|
454
|
+
"outputSchema": {
|
|
455
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
456
|
+
"type": "object",
|
|
457
|
+
"properties": {
|
|
458
|
+
"data": {}
|
|
459
|
+
},
|
|
460
|
+
"required": [
|
|
461
|
+
"data"
|
|
462
|
+
],
|
|
463
|
+
"additionalProperties": false
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"name": "list_publishing_runs",
|
|
468
|
+
"description": "List durable publishing receipts for the authenticated administrator, newest first.",
|
|
469
|
+
"annotations": {
|
|
470
|
+
"readOnlyHint": true,
|
|
471
|
+
"destructiveHint": false,
|
|
472
|
+
"idempotentHint": true,
|
|
473
|
+
"openWorldHint": true
|
|
474
|
+
},
|
|
475
|
+
"inputSchema": {
|
|
476
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
477
|
+
"type": "object",
|
|
478
|
+
"properties": {},
|
|
479
|
+
"additionalProperties": false
|
|
480
|
+
},
|
|
481
|
+
"outputSchema": {
|
|
482
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
483
|
+
"type": "object",
|
|
484
|
+
"properties": {
|
|
485
|
+
"data": {}
|
|
486
|
+
},
|
|
487
|
+
"required": [
|
|
488
|
+
"data"
|
|
489
|
+
],
|
|
490
|
+
"additionalProperties": false
|
|
491
|
+
}
|
|
492
|
+
},
|
|
439
493
|
{
|
|
440
494
|
"name": "generate_workshop_draft",
|
|
441
495
|
"description": "Generate documentation, labs and assessment from a brief; no owner writes. Review before publish.",
|
|
@@ -454,6 +508,11 @@ export const mcpCatalogContract = {
|
|
|
454
508
|
"minLength": 1,
|
|
455
509
|
"maxLength": 20000
|
|
456
510
|
},
|
|
511
|
+
"model": {
|
|
512
|
+
"type": "string",
|
|
513
|
+
"minLength": 1,
|
|
514
|
+
"maxLength": 120
|
|
515
|
+
},
|
|
457
516
|
"sectionId": {
|
|
458
517
|
"type": "string",
|
|
459
518
|
"minLength": 1,
|
|
@@ -2957,7 +3016,7 @@ export const mcpCatalogContract = {
|
|
|
2957
3016
|
},
|
|
2958
3017
|
{
|
|
2959
3018
|
"name": "workshop_image",
|
|
2960
|
-
"description": "Find ready
|
|
3019
|
+
"description": "Find ready image assets, generate and upload a workshop image using server model credentials, or upload base64 bytes. Use returned storageUrl in image dataClean JSON.",
|
|
2961
3020
|
"annotations": {
|
|
2962
3021
|
"readOnlyHint": false,
|
|
2963
3022
|
"destructiveHint": true,
|
|
@@ -2985,6 +3044,31 @@ export const mcpCatalogContract = {
|
|
|
2985
3044
|
],
|
|
2986
3045
|
"additionalProperties": false
|
|
2987
3046
|
},
|
|
3047
|
+
{
|
|
3048
|
+
"type": "object",
|
|
3049
|
+
"properties": {
|
|
3050
|
+
"operation": {
|
|
3051
|
+
"type": "string",
|
|
3052
|
+
"const": "generate"
|
|
3053
|
+
},
|
|
3054
|
+
"prompt": {
|
|
3055
|
+
"type": "string",
|
|
3056
|
+
"minLength": 1,
|
|
3057
|
+
"maxLength": 4000
|
|
3058
|
+
},
|
|
3059
|
+
"name": {
|
|
3060
|
+
"type": "string",
|
|
3061
|
+
"minLength": 1,
|
|
3062
|
+
"maxLength": 120
|
|
3063
|
+
}
|
|
3064
|
+
},
|
|
3065
|
+
"required": [
|
|
3066
|
+
"operation",
|
|
3067
|
+
"prompt",
|
|
3068
|
+
"name"
|
|
3069
|
+
],
|
|
3070
|
+
"additionalProperties": false
|
|
3071
|
+
},
|
|
2988
3072
|
{
|
|
2989
3073
|
"type": "object",
|
|
2990
3074
|
"properties": {
|
|
@@ -119,6 +119,20 @@ export interface components {
|
|
|
119
119
|
message: string;
|
|
120
120
|
};
|
|
121
121
|
};
|
|
122
|
+
PublishingModelCatalog: {
|
|
123
|
+
models: {
|
|
124
|
+
id: string;
|
|
125
|
+
inputUsdPerMillion: number | null;
|
|
126
|
+
outputUsdPerMillion: number | null;
|
|
127
|
+
}[];
|
|
128
|
+
defaultModel: string | null;
|
|
129
|
+
imageModel: string;
|
|
130
|
+
};
|
|
131
|
+
PublishingModel: {
|
|
132
|
+
id: string;
|
|
133
|
+
inputUsdPerMillion: number | null;
|
|
134
|
+
outputUsdPerMillion: number | null;
|
|
135
|
+
};
|
|
122
136
|
WorkshopDraft: {
|
|
123
137
|
sectionId: string;
|
|
124
138
|
name: string;
|
|
@@ -518,6 +532,11 @@ export interface components {
|
|
|
518
532
|
/** @enum {string} */
|
|
519
533
|
operation: "find";
|
|
520
534
|
query: string;
|
|
535
|
+
} | {
|
|
536
|
+
/** @enum {string} */
|
|
537
|
+
operation: "generate";
|
|
538
|
+
prompt: string;
|
|
539
|
+
name: string;
|
|
521
540
|
} | {
|
|
522
541
|
/** @enum {string} */
|
|
523
542
|
operation: "upload";
|
|
@@ -539,6 +558,7 @@ export interface components {
|
|
|
539
558
|
};
|
|
540
559
|
GenerateWorkshopDraftInput: {
|
|
541
560
|
brief: string;
|
|
561
|
+
model?: string;
|
|
542
562
|
sectionId: string;
|
|
543
563
|
level: number;
|
|
544
564
|
};
|
package/package.json
CHANGED