@ourroadmaps/mcp 0.25.1 → 0.27.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.js +12 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -526,7 +526,8 @@ var SLIDE_TYPES = [
|
|
|
526
526
|
"image",
|
|
527
527
|
"quote",
|
|
528
528
|
"code",
|
|
529
|
-
"thank_you"
|
|
529
|
+
"thank_you",
|
|
530
|
+
"mermaid"
|
|
530
531
|
];
|
|
531
532
|
var slideTypeSchema = z12.enum(SLIDE_TYPES);
|
|
532
533
|
var titleContentSchema = z12.object({
|
|
@@ -581,6 +582,10 @@ var thankYouContentSchema = z12.object({
|
|
|
581
582
|
ctaText: z12.string().optional(),
|
|
582
583
|
ctaUrl: z12.string().optional()
|
|
583
584
|
});
|
|
585
|
+
var mermaidContentSchema = z12.object({
|
|
586
|
+
title: z12.string().optional(),
|
|
587
|
+
code: z12.string().default("")
|
|
588
|
+
});
|
|
584
589
|
var typedSlideContentSchema = z12.discriminatedUnion("type", [
|
|
585
590
|
z12.object({ type: z12.literal("title"), ...titleContentSchema.shape }),
|
|
586
591
|
z12.object({ type: z12.literal("section_header"), ...sectionHeaderContentSchema.shape }),
|
|
@@ -591,7 +596,8 @@ var typedSlideContentSchema = z12.discriminatedUnion("type", [
|
|
|
591
596
|
z12.object({ type: z12.literal("image"), ...imageContentSchema.shape }),
|
|
592
597
|
z12.object({ type: z12.literal("quote"), ...quoteContentSchema.shape }),
|
|
593
598
|
z12.object({ type: z12.literal("code"), ...codeContentSchema.shape }),
|
|
594
|
-
z12.object({ type: z12.literal("thank_you"), ...thankYouContentSchema.shape })
|
|
599
|
+
z12.object({ type: z12.literal("thank_you"), ...thankYouContentSchema.shape }),
|
|
600
|
+
z12.object({ type: z12.literal("mermaid"), ...mermaidContentSchema.shape })
|
|
595
601
|
]);
|
|
596
602
|
var slideContentSchema = z12.object({
|
|
597
603
|
body: z12.string().optional()
|
|
@@ -4307,7 +4313,7 @@ function registerGetSlide(server) {
|
|
|
4307
4313
|
}
|
|
4308
4314
|
function registerCreateSlide(server) {
|
|
4309
4315
|
server.registerTool("create_slide", {
|
|
4310
|
-
description: "Create a new slide in a variant. Slide types: title (title + subtitle), section_header (title + subtitle), bullets (title + items array), two_column (title + left/right text), comparison (leftLabel + leftContent + rightLabel + rightContent), timeline (title + steps array of {title, description}), image (title + imageUrl + caption), quote (quote + attribution), code (title + code + language), thank_you (title + subtitle).",
|
|
4316
|
+
description: "Create a new slide in a variant. Slide types: title (title + subtitle), section_header (title + subtitle), bullets (title + items array), two_column (title + left/right text), comparison (leftLabel + leftContent + rightLabel + rightContent), timeline (title + steps array of {title, description}), image (title + imageUrl + caption), quote (quote + attribution), code (title + code + language), thank_you (title + subtitle), mermaid (title + code with mermaid diagram syntax).",
|
|
4311
4317
|
inputSchema: {
|
|
4312
4318
|
variantId: z15.string().describe("The UUID of the variant"),
|
|
4313
4319
|
slideType: z15.enum([
|
|
@@ -4320,9 +4326,10 @@ function registerCreateSlide(server) {
|
|
|
4320
4326
|
"image",
|
|
4321
4327
|
"quote",
|
|
4322
4328
|
"code",
|
|
4323
|
-
"thank_you"
|
|
4329
|
+
"thank_you",
|
|
4330
|
+
"mermaid"
|
|
4324
4331
|
]).default("bullets").describe("The type of slide to create"),
|
|
4325
|
-
content: z15.record(z15.unknown()).optional().describe('Type-specific content object. For bullets: {title, items: ["..."]}. For title: {title, subtitle}. For two_column: {title, left, right}. For quote: {quote, attribution}. Etc.'),
|
|
4332
|
+
content: z15.record(z15.unknown()).optional().describe('Type-specific content object. For bullets: {title, items: ["..."]}. For title: {title, subtitle}. For two_column: {title, left, right}. For quote: {quote, attribution}. For mermaid: {title, code: "graph TD; A-->B"}. Etc.'),
|
|
4326
4333
|
speakerNotes: z15.string().nullable().optional().describe("Speaker notes for the slide")
|
|
4327
4334
|
}
|
|
4328
4335
|
}, async ({
|