@presentation-md/mcp-server 1.6.18 → 1.7.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.
@@ -24,18 +24,20 @@ export const generateDeckPromptTool = {
24
24
  const intent = input["intent"] ?? "";
25
25
  const coreRoot = getCoreRoot();
26
26
  const { themesDir, fallbackThemesDirs } = resolveThemesDir();
27
- const [theme, skill, deckSchemaReference, stunning25, themesMd, antiSlop] = await Promise.all([
27
+ const [theme, skill, deckSchemaReference, stunning25, themesMd, antiSlop, layoutRecipes] = await Promise.all([
28
28
  loadTheme(themeName, { themesDir, fallbackThemesDirs }),
29
29
  readFile(join(coreRoot, "SKILL.md"), "utf-8"),
30
30
  readFile(join(coreRoot, "references", "deck-schema.md"), "utf-8"),
31
31
  readFile(join(coreRoot, "references", "stunning-25.md"), "utf-8").catch(() => ""),
32
32
  readFile(join(coreRoot, "references", "themes.md"), "utf-8").catch(() => ""),
33
33
  readFile(join(coreRoot, "references", "anti-slop-bans.md"), "utf-8").catch(() => ""),
34
+ readFile(join(coreRoot, "references", "layout-recipes.md"), "utf-8").catch(() => ""),
34
35
  ]);
35
36
  const craftMandate = [
36
37
  "CRAFT MANDATE (non-negotiable — beat Gamma / Beautiful.ai / md-slides / frontend-slides / Claude Design canvas on first glance):",
37
38
  "- Prefer stunning-25 themes when the brief matches (see stunning_25_reference). Open that structured proof and match density — do not invent a watered-down palette.",
38
39
  "- Ban Inter-only / purple-on-white / cream-terracotta defaults unless the chosen theme owns them (see anti_slop_reference).",
40
+ "- Match a layout_recipes_reference slide map (pitch / launch / wrap / neon / poster / paper) before freehanding layouts.",
39
41
  "- Include ≥1 image-hero for visual/investor/launch/brand decks (kinetic-wrapped wraps may use ranked/streak/metric/hero-stat instead).",
40
42
  "- Force asymmetry early: every comparison MUST set emphasis left|right; prefer non-1-1 two-column ratios; 5-card grids use columns:\"bento\".",
41
43
  "- Rankings / top-N → layout ranked-list (not custom-html bars). Mega wrap numbers → stat-row variant:\"hero\".",
@@ -43,14 +45,16 @@ export const generateDeckPromptTool = {
43
45
  "- Logo / customer walls → logo-wall. Year wraps (kinetic-wrapped) need tone on ≥3 slides.",
44
46
  "- Wrap / store / launch / investor closes → closing actions[] with solid + outline pills (cta alone is weak on stunning-25).",
45
47
  "- Every closing actions[] pill needs an icon (FA brands for social; rocket/download/calendar/book for CTAs) — PPTX maps icons to glyph prefixes.",
46
- "- Match atmosphere to the brief: loud/thin surfaces (coral, raw-grid, sakura, retro-windows, stencil-tablet, retro-zine, daisy-days, block-frame, creative-mode, …) for punchy brand energy; paper/editorial themes (claude, soft-editorial, heritage-editorial, emerald-editorial, vintage-editorial, pink-script, ft-editorial, vellum, paper-ink, long-table, broadsheet, …) for magazine quiet — PPTX keeps washes, double mastheads, dual insets, hero-gated candy/pills/corner blots, and always-on loud frames/offset-shadow strips/plates/tablets as native shapes.",
48
+ "- Match atmosphere to the brief: loud/thin surfaces (coral, raw-grid, sakura, retro-windows, stencil-tablet, retro-zine, daisy-days, block-frame, creative-mode, capsule, scatterbrain, 8-bit-orbit, peoples-platform, bold-signal, …) for punchy brand energy; neon/vapor/y2k for cinematic night; paper/editorial themes (claude, soft-editorial, heritage-editorial, emerald-editorial, vintage-editorial, pink-script, ft-editorial, vellum, paper-ink, long-table, broadsheet, …) for magazine quiet — PPTX keeps washes, double mastheads, dual insets, hero-gated candy/pills/corner blots, always-on loud frames/offset-shadow strips/multi-layer arcade shadows/Win95 bevels/plates/tablets, and neon rim/scanlines/horizon glow/soft aero shadows as native shapes.",
47
49
  "- Paper honesty: prefer quote + comparison+emphasis + short literary leads; avoid soft corporate card stacks. Fiber grain is HTML-only — ship HTML (or say so) when paper tooth is the brand.",
48
- "- Loud honesty: stencil-tablet / retro-zine / daisy-days / block-frame / creative-mode / sakura-chroma expect hard frames + offset-shadow strips on every slide (plates/blocks/chroma may stay hero-gated) — don't invent custom-html stickers for atmosphere.",
50
+ "- Loud honesty: stencil-tablet / retro-zine / daisy-days / block-frame / creative-mode / sakura-chroma / capsule / scatterbrain / 8-bit-orbit / retro-windows expect hard frames + offset-shadow strips (or multi-layer arcade / Win95 bevel chrome) on every slide (pills/tape/blocks/chroma may stay hero-gated) — don't invent custom-html stickers for atmosphere.",
51
+ "- Atmosphere honesty: neon-noir / vaporwave / y2k-aero expect cyan/pink rims, rain scanlines or horizon glow, soft aero shadow stubs, plus a cinematic image-hero or punchy quote — don't flatten into SaaS grids.",
52
+ "- Poster honesty: coral / peoples-platform / bold-signal / broadside expect hard poster frames + hard-border cards and a bold beat (image-hero, comparison, quote, or punchy stats).",
49
53
  "- Pulse (kinetic-wrapped): set tone on ≥3 slides + a ranked/streak/metric/hero-stat beat — PPTX carries hard frames, soft blobs, and eyebrow chips (not mix-blend).",
50
54
  "- risograph-zine: prefer comparison+emphasis and a punchy quote — PPTX overprint is layered ovals, not true multiply.",
51
55
  "- candy-pop: set meta.company (or meta.marquee) so the yellow ticker brands the deck — never hardcode Jellybean; cards get hard ink borders in PPTX.",
52
56
  "- Add brief notes on 2–4 key slides.",
53
- "- Call audit_deck before shipping; fix warnings that mention asymmetry, image-hero, tone, emphasis, dual CTA, or closing icons.",
57
+ "- Call audit_deck before shipping; fix warnings that mention asymmetry, image-hero, tone, emphasis, dual CTA, closing icons, atmosphere, poster, or magazine beats.",
54
58
  "- Call judge_deck (t1→t2; t3 when stakes are high). Treat local_draft as a floor, not a ship grade. Schema-valid ≠ shippable.",
55
59
  "- Open the theme's structured gallery proof when listed in stunning-25 — match that ceiling, do not water down.",
56
60
  ].join("\n");
@@ -63,6 +67,7 @@ export const generateDeckPromptTool = {
63
67
  themes_reference: themesMd || undefined,
64
68
  stunning_25_reference: stunning25 || undefined,
65
69
  anti_slop_reference: antiSlop || undefined,
70
+ layout_recipes_reference: layoutRecipes || undefined,
66
71
  palette: theme.palette,
67
72
  typography: theme.typography
68
73
  };
@@ -1 +1 @@
1
- {"version":3,"file":"generate-deck-prompt.js","sourceRoot":"","sources":["../../src/tools/gener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,0HAA0H;YAC1H,wIAAwI;YACxI,+IAA+I;YAC/I,gHAAgH;YAChH,+FAA+F;YAC/F,2FAA2F;YAC3F,8HAA8H;YAC9H,kJAAkJ;YAClJ,+uBAA+uB;YAC/uB,+LAA+L;YAC/L,wWAAwW;YACxW,oNAAoN;YACpN,sLAAsL;YACtL,qKAAqK;YACrK,uHAAuH;YACvH,sJAAsJ;YACtJ,sCAAsC;YACtC,qKAAqK;YACrK,+HAA+H;YAC/H,iHAAiH;SAClH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEb,OAAO;YACL,KAAK,EAAE,SAAS;YAChB,MAAM;YACN,aAAa,EAAE,YAAY;YAC3B,KAAK;YACL,qBAAqB,EAAE,mBAAmB;YAC1C,gBAAgB,EAAE,QAAQ,IAAI,SAAS;YACvC,qBAAqB,EAAE,UAAU,IAAI,SAAS;YAC9C,mBAAmB,EAAE,QAAQ,IAAI,SAAS;YAC1C,wBAAwB,EAAE,aAAa,IAAI,SAAS;YACpD,OAAO,EAAE,KAAK,CAAC,OAA4C;YAC3D,UAAU,EAAE,KAAK,CAAC,UAAU;SAC7B,CAAC;IACJ,CAAC;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@presentation-md/mcp-server",
3
- "version": "1.6.18",
3
+ "version": "1.7.0",
4
4
  "description": "MCP server exposing presentation-md tools to any MCP-compatible AI agent.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,10 +14,10 @@
14
14
  "dependencies": {
15
15
  "@modelcontextprotocol/sdk": "^1.0.0",
16
16
  "zod": "^3.23.0",
17
- "@presentation-md/core": "1.8.6",
18
- "@presentation-md/render": "1.6.16",
19
- "@presentation-md/export": "^1.16.2",
20
- "@presentation-md/create-theme": "1.0.24"
17
+ "@presentation-md/core": "1.9.0",
18
+ "@presentation-md/create-theme": "1.0.26",
19
+ "@presentation-md/export": "^1.17.0",
20
+ "@presentation-md/render": "1.6.18"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^20.0.0",