mcp-server

v1.38.1
@presentation-md/mcp-server Checked 16 hours ago Published 6 days ago

MCP 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.

ParameterTypeDescription
json *stringDeck JSON string conforming to the deck schema
output_pathstringPath within the current working directory to write the rendered HTML file
themestringTheme 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…

ParameterTypeDescription
json *stringDeck JSON string conforming to the deck schema
font_modestringPPTX 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…
formatstringOutput 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_pathstringPath within the current working directory to write the exported file
themestringTheme 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.

ParameterTypeDescription
browsestringOptional 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_filtersbooleanWhen true, also return browse_filters (site/Studio mood chip ids + labels) so agents can offer the same chips.
include_shortlistsbooleanWhen true, also return the shortlists catalog for Theme Discovery / intelligent defaults.
moodstringOptional mood keyword from theme-selection-index.json (e.g. neon, editorial, playful). Substring match; use browse for chip parity.
querystringOptional free-text filter against theme name, vibe, description, aliases, and best_for.
shortliststringOptional 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.

ParameterTypeDescription
json *stringDeck JSON string
target_theme *stringTheme name to apply
apply_safe_fixesbooleanWhen 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…

ParameterTypeDescription
json *stringDeck JSON string to validate
apply_safe_fixesbooleanWhen 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_densitystringNon-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.

ParameterTypeDescription
deck_pathstringPath to a deck JSON file within the current working directory
includearray1-based slide numbers whose full JSON to return in slide_json
jsonstringDeck 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.

ParameterTypeDescription
operations *arrayEdits, 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_pathstringPath to a deck JSON file within the current working directory
jsonstringDeck JSON string (alternative to deck_path)
output_pathstringWith 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.

ParameterTypeDescription
htmlstringOptional pre-rendered HTML. When omitted for t2/t3, the tool renders from json.
include_inline_imagesbooleanWhen true (default), attach captured slide PNGs as MCP image content (capped) so vision agents can judge in-chat. Set false for path-only payloads.
jsonstringDeck JSON string to judge (required unless html is provided for t2/t3)
max_inline_imagesnumberCap inline MCP images (default 8). Paths still list all shots.
max_slidesnumberCap screenshots to first N slides (default 40)
shots_dirstringDirectory to write T2/T3 PNG screenshots (default: temp dir)
skip_screenshotsbooleanIf true, t2/t3 skip Chrome shots and only run HTML metrics
themestringTheme override when rendering for t2/t3
tierstringJudge 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.

ParameterTypeDescription
densitystringDeck density lock. "speaker" (default) = one idea per slide, large type. "reading" = self-contained slides for async/board packs.
intentstringWhat the deck should argue or show
themestringTheme 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.

ParameterTypeDescription
companystringCompany / brand for candy-pop marquee and quote attribution
include_share_urlbooleanWhen true (default), also return studio_share_url — Studio ?d= link that hydrates the scaffold for editable handoff. Pass false to skip.
list_purposesbooleanWhen true, return the recipe catalog only (no scaffold).
originstringStudio origin for studio_share_url (default https://presentation-md.vercel.app).
output_pathstringOptional path within the current working directory to write the scaffolded deck JSON
purposestringRecipe 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.…
themestringTheme name (defaults per recipe; wrap defaults to kinetic-wrapped)
titlestringDeck 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.

ParameterTypeDescription
path *stringPath within the current working directory to deck.html or a deck directory
confirmbooleanRequired true to invoke deploy.sh. Without it, returns a dry-run plan only. Confirm with the human first — decks are often confidential drafts.
confirm_prodbooleanRequired true together with confirm when prod=true.
prodbooleanPass --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.

ParameterTypeDescription
allowOfficeDefaultbooleanWith pptxPath and write=true: write the theme even when the template keeps an Office default colour scheme. Defaults to false.
cssPathstringLocal path to a CSS file to extract from, as an alternative to url
namestringTheme name in kebab-case; derived from the URL's hostname or the template's file name if omitted (required when using cssPath)
output_dirstringDirectory within the current working directory for the scaffolded package when write=true (default: packages/themes/<name>).
pptxPathstringPath to a PowerPoint template (.pptx or .potx) within the current working directory. Reads its colour scheme and fonts.
urlstringBrand website URL to extract colors and fonts from
writebooleanAlso 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.

ParameterTypeDescription
assets_dirstringOptional directory to write extracted images; when omitted, images become data URIs
output_pathstringOptional path to write the deck JSON
pptx_base64stringBase64-encoded .pptx bytes, as an alternative to pptx_path
pptx_pathstringPath to a .pptx file within the current working directory
themestringTheme 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[].

ParameterTypeDescription
markdown *stringMarkdown source (Marp/md-slides style with --- separators)
output_pathstringOptional path within the current working directory to write the resulting deck JSON
themestringFallback theme when front matter omits theme (default: default-tech)
titlestringFallback 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"…

ParameterTypeDescription
companystringOptional company/brand name for the preview slide
include_screenshotsbooleanWhen 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…
jsonstringOptional 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.
modestringPreview 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_dirstringDirectory within the current working directory to write preview HTML files (default: .presentation-md/theme-previews)
shortliststringOptional shortlist id from theme-shortlists.json (e.g. editorial-report, core-defaults). Used when themes is omitted; ignored when themes is provided.
slide_indexnumber1-based slide to screenshot in deck mode (default: 1). Ignored for title/layouts canned proofs (those use discovery densify).
themesarray1–3 theme names to preview (e.g. corporate, editorial-serif, default-tech). Optional when shortlist is set.
titlestringDeck title shown on the preview slide (defaults to 'Your Deck Title')