mcp-server
v1.38.1MCP server exposing all 14 presentation-md tools (render/export/audit/judge/scaffold/share/deploy/import/preview) to any MCP-compatible AI agent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
render_deck
Render a presentation-md deck JSON spec to a self-contained HTML slide deck. Returns the HTML string and optionally writes to a file.
| Parameter | Type | Description |
|---|---|---|
json * | string | Deck JSON string conforming to the deck schema |
output_path | string | Path within the current working directory to write the rendered HTML file |
theme | string | Theme name to apply (overrides meta.theme in the deck) |
export_deck
Export a presentation-md deck JSON spec to native PowerPoint (.pptx), vector PDF (Chromium print — one page per slide, selectable text), HTML, Marp/md-slides Markdown (round-trip with import_markdown), or speaker-notes handouts (notes_txt / notes_vtt). Writes to output_path when given, otherwise returns base64 bytes (pptx/pdf), html/markdown/text string. PPTX results include `fidelity`: per-slide items (kind image | approximated | skipped | fallback | other) plus deck-wide theme fonts PowerPoint or Google Slides will substitute (kind font) — fix the listed slides or tell the user before th…
| Parameter | Type | Description |
|---|---|---|
json * | string | Deck JSON string conforming to the deck schema |
font_mode | string | PPTX only. theme (default) keeps the theme fonts; PowerPoint substitutes any the viewer lacks (see fidelity font items). office-safe swaps them for Office fonts of the same style (Arial, Georgia, Cons… |
format | string | Output format (default: pptx). pdf uses headless Chromium print (vector, not screenshots). md/markdown emits Marp-style Markdown. notes_txt/txt and notes_vtt/vtt emit speaker-notes handouts (Studio So… |
output_path | string | Path within the current working directory to write the exported file |
theme | string | Theme name to apply (overrides meta.theme in the deck) |
list_themes
List available presentation-md themes (name, version, vibe, description, proof deep-links). Optional filters: shortlist id, browse chip id (site/Studio mood bar: popular/dark/editorial/neon/…), mood/query from the selection index — use for Theme Discovery before locking meta.theme. Every theme includes preview_url + studio_url (stunning-25 → ?example= craft; others → ?theme= blank slate). Returns suggested_preview (safe/bold/wildcard trio) when ≥1 themes match. Set include_shortlists / include_browse_filters for catalogs.
| Parameter | Type | Description |
|---|---|---|
browse | string | Optional site/Studio mood-browse chip id: "all" | "popular" | "dark" | "light" | "editorial" | "neon" | "playful" | "brutal" | "luxury" | "tech". Same rules as the gallery toolbar — prefer over free… |
include_browse_filters | boolean | When true, also return browse_filters (site/Studio mood chip ids + labels) so agents can offer the same chips. |
include_shortlists | boolean | When true, also return the shortlists catalog for Theme Discovery / intelligent defaults. |
mood | string | Optional mood keyword from theme-selection-index.json (e.g. neon, editorial, playful). Substring match; use browse for chip parity. |
query | string | Optional free-text filter against theme name, vibe, description, aliases, and best_for. |
shortlist | string | Optional shortlist id from theme-shortlists.json (e.g. series-a-pitch, developer-demo, core-defaults). |
apply_theme
Re-theme an existing deck JSON — swap meta.theme while keeping slide copy. By default runs repairCraft so theme-honesty / craft floors clear in one hop (Studio My deck Use parity). Pass apply_safe_fixes:false for a pure theme swap.
| Parameter | Type | Description |
|---|---|---|
json * | string | Deck JSON string |
target_theme * | string | Theme name to apply |
apply_safe_fixes | boolean | When true (default), run repairCraft after the theme swap — beat inserts + field fixes for the new theme's honesty gates. Set false to only change meta.theme. |
audit_deck
Validate Deck JSON against the schema AND run craft gates (asymmetry, loud/atmosphere/paper honesty, dual CTA, data beats, custom-html vs ranked-list misuse). Returns structured issues — call before the user sees a first draft; schema-valid ≠ shippable. Pass apply_safe_fixes:true to auto-apply safe structural repairs (emphasis, ratio, bento, CTA/icons, speaker notes, candy-pop brand) PLUS beat inserts (image-hero, comparison, stat-row, logo-wall, wrap tones/ranked/streak, cadence swaps) and get back repaired json + fixes_applied — agents clear craft warnings in one hop vs frontend-slides…
| Parameter | Type | Description |
|---|---|---|
json * | string | Deck JSON string to validate |
apply_safe_fixes | boolean | When true, apply safe structural craft repairs + beat inserts before re-auditing. Returns repaired `json` string plus `fixes_applied[]`. Does not invent themes or long body copy; placeholder stats are… |
remorph_density | string | Non-LLM structural density remorph before audit. "speaker" splits crowded feature-grid/ranked/timeline/logo/table slides and moves overflow body into notes. "reading" merges thin continuation list sli… |
outline_deck
Read a deck slide by slide without loading all of it: per slide the number, layout, title, word count, whether it has speaker notes, and its craft-audit issues, plus deck-wide issues. Pass `include` to also get the full JSON of chosen slides. Use it before edit_deck so you only read and rewrite the slides you change. Pass `deck_path` (a deck JSON file in the working directory) to avoid resending the deck.
| Parameter | Type | Description |
|---|---|---|
deck_path | string | Path to a deck JSON file within the current working directory |
include | array | 1-based slide numbers whose full JSON to return in slide_json |
json | string | Deck JSON string (alternative to deck_path) |
edit_deck
Change individual slides without rewriting the whole deck. Applies a batch of operations in order, validates the result against the deck schema, and saves nothing if any operation or the validation fails. With `deck_path` the file is updated in place (or written to `output_path`); with `json` the new deck JSON is returned. Returns the slides touched, their craft-audit issues, and the new outline. Slide numbers are 1-based and refer to the deck after the earlier operations in the same batch.
| Parameter | Type | Description |
|---|---|---|
operations * | array | Edits, applied in order. update_slide {slide, fields} merges fields (null removes one). replace_slide {slide, value}. insert_slide {at, value} (at = slide_count + 1 appends). delete_slide {slide}. mov… |
deck_path | string | Path to a deck JSON file within the current working directory |
json | string | Deck JSON string (alternative to deck_path) |
output_path | string | With deck_path: write here instead of overwriting deck_path. With json: write the result here instead of returning it. |
judge_deck
Design judge for Deck JSON / rendered HTML (deck-design-judge tiers). t0/t1: structural JSON gates. t2: render + HTML metrics (G1–G5) + Chrome screenshots when available. t3: t2 + multi-model panel when judge_panel.py + API keys exist; otherwise returns a vision-free local_draft grade from metrics/flags plus shot paths for agent refinement. t2/t3 attach the first N slide PNGs as MCP image content by default (parity with preview_themes) so vision agents can QA in-chat — set include_inline_images:false for paths-only.
| Parameter | Type | Description |
|---|---|---|
html | string | Optional pre-rendered HTML. When omitted for t2/t3, the tool renders from json. |
include_inline_images | boolean | When true (default), attach captured slide PNGs as MCP image content (capped) so vision agents can judge in-chat. Set false for path-only payloads. |
json | string | Deck JSON string to judge (required unless html is provided for t2/t3) |
max_inline_images | number | Cap inline MCP images (default 8). Paths still list all shots. |
max_slides | number | Cap screenshots to first N slides (default 40) |
shots_dir | string | Directory to write T2/T3 PNG screenshots (default: temp dir) |
skip_screenshots | boolean | If true, t2/t3 skip Chrome shots and only run HTML metrics |
theme | string | Theme override when rendering for t2/t3 |
tier | string | Judge tier (default t1). t2/t3 need Chrome for screenshots; t3 prefers judge_panel.py. |
generate_deck_prompt
Build a one-shot craft system prompt (theme palette + anti-slop + layout recipes + custom-html recipes + shortlists) so the first Deck JSON already clears audit/judge gates — beat frontend-slides vibe drafts. Optional density locks speaker-led vs reading-first (matches Studio Generate). Mentions remorph_density for post-draft structural density fixes.
| Parameter | Type | Description |
|---|---|---|
density | string | Deck density lock. "speaker" (default) = one idea per slide, large type. "reading" = self-contained slides for async/board packs. |
intent | string | What the deck should argue or show |
theme | string | Theme name to use (default: default-tech) |
scaffold_deck
Scaffold a schema-native Deck JSON skeleton from a layout recipe (pitch / launch / wrap / paper / hud / …). Pre-wires layouts, asymmetry, image-hero, data beats, dual closing CTAs, and speaker notes — agents fill theme-native copy, then audit_deck. Returns studio_share_url (?d=) by default so one call lands an editable Studio link (Hallmark-style one-prompt → shareable artifact, for decks). Beats freeform vibe drafts with a craft floor on slide one.
| Parameter | Type | Description |
|---|---|---|
company | string | Company / brand for candy-pop marquee and quote attribution |
include_share_url | boolean | When true (default), also return studio_share_url — Studio ?d= link that hydrates the scaffold for editable handoff. Pass false to skip. |
list_purposes | boolean | When true, return the recipe catalog only (no scaffold). |
origin | string | Studio origin for studio_share_url (default https://presentation-md.vercel.app). |
output_path | string | Optional path within the current working directory to write the scaffolded deck JSON |
purpose | string | Recipe id: pitch, sales, keynote, investor, launch, wrap, neon, poster, paper, hud, modernist, hard-bento, glass, electric, briefing, quiet-luxe, soft-product, playful, neon-tech, data, scatterbrain.… |
theme | string | Theme name (defaults per recipe; wrap defaults to kinetic-wrapped) |
title | string | Deck title used in headings / placeholders |
deploy_deck
Opt-in wrapper around core deploy.sh — publish a rendered deck.html (or deck directory) to a Vercel preview URL. Defaults to dry-run unless confirm=true after the human approves an externally-visible share. prod=true requires confirm_prod=true (permanent publish). Does not thrash remote deploys without explicit confirmation.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path within the current working directory to deck.html or a deck directory |
confirm | boolean | Required true to invoke deploy.sh. Without it, returns a dry-run plan only. Confirm with the human first — decks are often confidential drafts. |
confirm_prod | boolean | Required true together with confirm when prod=true. |
prod | boolean | Pass --prod for a permanent production deploy (default: preview). |
import_brand_theme
Generate a presentation-md theme from a brand's website URL, a local CSS file, or a company PowerPoint template (.pptx or .potx). Extracts colors and fonts, maps them to the theme's 8 semantic roles, and applies a WCAG contrast-safety pass so the result stays legible. Use whenever the user wants a deck theme that matches an existing brand or product. Prefer pptxPath when the user has a company PowerPoint template; it reads the template's colours and fonts and reports whether it has a logo.
| Parameter | Type | Description |
|---|---|---|
allowOfficeDefault | boolean | With pptxPath and write=true: write the theme even when the template keeps an Office default colour scheme. Defaults to false. |
cssPath | string | Local path to a CSS file to extract from, as an alternative to url |
name | string | Theme name in kebab-case; derived from the URL's hostname or the template's file name if omitted (required when using cssPath) |
output_dir | string | Directory within the current working directory for the scaffolded package when write=true (default: packages/themes/<name>). |
pptxPath | string | Path to a PowerPoint template (.pptx or .potx) within the current working directory. Reads its colour scheme and fonts. |
url | string | Brand website URL to extract colors and fonts from |
write | boolean | Also scaffold the full installable theme package to disk. Defaults to false. |
import_pptx
Import a PowerPoint (.pptx) file into a presentation-md deck JSON spec. Extracts text, tables, images, and notes, then maps them onto the structured layouts so you can theme, edit, and re-export. Prefer this whenever the user already has a .pptx and wants a deck in this pack's format.
| Parameter | Type | Description |
|---|---|---|
assets_dir | string | Optional directory to write extracted images; when omitted, images become data URIs |
output_path | string | Optional path to write the deck JSON |
pptx_base64 | string | Base64-encoded .pptx bytes, as an alternative to pptx_path |
pptx_path | string | Path to a .pptx file within the current working directory |
theme | string | Theme name to set on meta.theme (default: claude) |
import_markdown
Convert Marp / md-slides flavored Markdown into presentation-md Deck JSON. Splits on --- slide separators, reads YAML front matter (theme/title/company), and maps headings, lists, tables, quotes, code fences, ```chart, and ```html blocks onto schema layouts. Also detects wrap craft: streak-grid, metric-ring, ranked-list, logo-wall, and dual closing actions[].
| Parameter | Type | Description |
|---|---|---|
markdown * | string | Markdown source (Marp/md-slides style with --- separators) |
output_path | string | Optional path within the current working directory to write the resulting deck JSON |
theme | string | Fallback theme when front matter omits theme (default: default-tech) |
title | string | Fallback title when front matter omits title |
preview_themes
Render 1–3 theme preview HTML files for visual discovery (show-don't-tell). Returns file paths + file:// URLs, mood/scheme/swatches, proof deep-links (preview_url, studio_url, studio_share_url for the exact bake via ?d=), layout bake list, and — by default — inline PNG screenshots as MCP image content (title cover; layouts mode also captures bento + comparison — Studio Title/Bento/Compare parity). Pass include_screenshots:false to skip Chrome. Pass themes[] and/or a shortlist id from theme-shortlists.json. Pick-3 / duo compares (≥2 themes) default to mode="layouts"; pass mode="title"…
| Parameter | Type | Description |
|---|---|---|
company | string | Optional company/brand name for the preview slide |
include_screenshots | boolean | When true (default), capture discovery PNGs via headless Chrome and return them as MCP image content so vision agents can compare themes in-chat. Set false to skip (HTML + swatches only). Gracefully d… |
json | string | Optional Deck JSON string. When set, previews re-theme YOUR slides across the pick (Studio My deck restyle / content-true compare) instead of canned title/layouts proofs. |
mode | string | Preview depth. Omit to auto-pick: "deck" when json is provided; else layouts when ≥2 themes (pick-3), title for a single theme. "title" = one cover slide. "layouts" = multi-slide craft bake. "deck"… |
output_dir | string | Directory within the current working directory to write preview HTML files (default: .presentation-md/theme-previews) |
shortlist | string | Optional shortlist id from theme-shortlists.json (e.g. editorial-report, core-defaults). Used when themes is omitted; ignored when themes is provided. |
slide_index | number | 1-based slide to screenshot in deck mode (default: 1). Ignored for title/layouts canned proofs (those use discovery densify). |
themes | array | 1–3 theme names to preview (e.g. corporate, editorial-serif, default-tech). Optional when shortlist is set. |
title | string | Deck title shown on the preview slide (defaults to 'Your Deck Title') |