Skip to content

Latest commit

 

History

History
259 lines (183 loc) · 55.8 KB

mcp.md

File metadata and controls

259 lines (183 loc) · 55.8 KB

OPF MCP server

@openpresentation/mcp is a Model Context Protocol server for OPF, so an agent or editor that speaks MCP can learn the format, look things up and check a deck without shelling out and parsing text. It teaches OPF (documentation, schemas, the default catalog, example decks and the six agent skills, all as resources, with a start_here tool that gives a path for a goal), and it runs the checks the CLI runs (validate_deck, convert).

It also shows decks: show_deck opens the OPF viewer inside a client that supports MCP Apps (such as Claude on the web, on desktop and, as seen on 2026-11-16, in the iOS app), with Preview, Source and Both, where the user can edit the deck and the edits come back to the model (The OPF viewer).

It keeps no state, reads no file (everything it serves is bundled in the package, and tools work on the text you pass in; the one exception is the renderer's font files, which opf-mcp hands to the viewer), fetches nothing and has no network access. It runs two ways: locally over stdio (this page), and hosted on an edge runtime (the same server definition over Streamable HTTP). The hosted connection target is https://www.openpresentation.org/mcp; its deployed version, tools and viewer availability follow that site’s deployment, separately from the npm package. Check the hosted MCP guide for that deployment. The packaged show_deck viewer described here does not establish that a hosted deployment offers it. The local server measures layout with real fonts when @openpresentation/opf-render is installed.

Set it up

Hosted, nothing to install. https://www.openpresentation.org/mcp is this server over Streamable HTTP: no account, no key, read-only, and it keeps nothing. In Claude (web or desktop), open the Connectors page and add a custom connector: name it OPF and paste the URL https://www.openpresentation.org/mcp. Claude moves these menus; on 2026-11-14 the page was Customize (in the left sidebar), then its Connectors tab, then Add and Add custom connector, and the older Settings, Connectors page only pointed there. If a label has moved, look for "Connectors" and "custom connector". Other clients take the same URL as a remote MCP server.

Your first request. Claude has its own slide feature, and a plain "make a pitch deck" may be answered by it without calling OPF. Name OPF and the viewer in the first message, for example: Use the OPF tools to make a ten-slide deck about our Q3 results, validate it, and show it in the OPF viewer. Naming OPF only tells the host which tools you mean; whether and how Claude uses them is the host's decision, so if a reply comes from another feature, say so and repeat the request naming OPF. Once the viewer opens, ordinary follow-ups ("add a slide on risks") continue in it.

Add it to your assistant

Steps from each vendor's own documentation, read on 2026-11-16 and 2026-11-17, unless marked "seen", which means we tried it that day. The server needs no sign-in: where an assistant asks about authentication, choose the option without it. Menus move; the hosted MCP guide has a page per assistant with the sources.

Assistant How to add https://openpresentation.org/mcp The OPF viewer
ChatGPT On the web, chatgpt.com/plugins: plus button, Add custom MCP server, name, URL, No authentication, accept the risk warning, Create as a plugin; then @ the plugin in a new chat. OpenAI's help page: full MCP on Business and Enterprise/Edu on the web (on Business only admins and owners create these plugins); its FAQ: "Pro users can connect custom MCP servers with read/fetch permissions"; Free and Plus not mentioned; adding is web only. Refresh the tools from the plugin's Refresh. Seen in the iOS app: opens (up to a minute on the phone); Preview, Source, Design and sending edits back work; no Export (no file saving there)
Claude (web, desktop, phone apps) Customize, Connectors, + Add, Add custom connector; name OPF, the URL, Authentication "No sign in". Free plans allow one custom connector; on Team and Enterprise an Owner adds it under Organization settings, Connectors. Seen on claude.ai and in the iOS app: opens; Export not checked
Claude Code claude mcp add --transport http opf https://openpresentation.org/mcp (--scope user for every project) Not described by Anthropic's Claude Code docs
Codex (CLI, IDE extension, ChatGPT desktop app share one config) [mcp_servers.opf] with url = "https://openpresentation.org/mcp" in ~/.codex/config.toml (or a trusted project's .codex/config.toml). OpenAI's Docs MCP page uses the same form on the command line: codex mcp add <name> --url <url> Not mentioned by OpenAI's Codex docs
Gemini app On gemini.google.com: Settings, Connected Apps (or Personal Intelligence first), Custom apps, Add a custom app, the URL, Next. US, 18+, personal account, History on, English; added on the web, then usable in the mobile app. Google's page does not say how it treats a server without sign-in; not tried. Not stated for custom apps
Antigravity CLI (agy) and IDE "mcpServers": { "opf": { "serverUrl": "https://openpresentation.org/mcp" } } in ~/.gemini/config/mcp_config.json (or a workspace's .agents/mcp_config.json); serverUrl, not httpUrl. /mcp in the CLI opens the MCP manager; the IDE edits the same file under MCP Servers, Manage MCP Servers, View raw config. Not mentioned
Gemini CLI Google: "Unpaid tier and Google One users: Gemini CLI was replaced by Antigravity CLI on June 18th, 2026." It stays for Gemini Code Assist Standard and Enterprise licenses and paid Gemini and Gemini Enterprise Agent Platform API keys. There: gemini mcp add --transport http --scope user opf https://openpresentation.org/mcp, or "mcpServers": { "opf": { "httpUrl": "https://openpresentation.org/mcp" } } in ~/.gemini/settings.json Not mentioned
Muse (Meta) Muse is rolling out in the US on iOS, Android and muse.ai (Meta, 2026-09-08). The Muse app documents connectors from Meta's list and custom connectors Muse creates, not adding an MCP server by URL: no steps. Muse Code: "mcp_servers": { "opf": { "transport": "streamable_http", "url": "https://openpresentation.org/mcp", "enabled": true, "mode": "optional" } } in ~/.config/muse/settings.json (with "schema_version": 1) Not documented
Cursor { "mcpServers": { "opf": { "url": "https://openpresentation.org/mcp" } } } in .cursor/mcp.json or ~/.cursor/mcp.json. Seen on 2026-11-17 (Cursor 3.29.15, Windows): Customize, MCPs listed opf as Disabled; its switch (Configure opf, the project's .cursor/mcp.json) turned it on, "Local: Connected", "14 tools, 580 resources enabled" (the twelve tools plus the view-only read_font_file and read_icons). Seen on 2026-11-17: drawn in the IDE's chat pane (about 215px wide), not in the Agents window (there show_deck showed only its JSON arguments). Before it drew, Cursor asked MCP App wants to call "read_icons" and then the same for read_font_file, with Approve this server, Approve this tool and Cancel. Preview, Source, slide navigation and the Design menu (a theme) worked; no Export, Expand or Send were offered there
Grok (xAI's chat app; xAI: Grok and Grok Bot "are two different apps") grok.com/connectors, New Connector, Custom, the URL. Grok Business and Enterprise: "a team admin must first provision a connector in the cloud console" (console.x.ai, Grok Business, Connectors, + Add Connector, Other, the URL). The server "must be reachable over the public internet". The phone apps have connectors under Settings, Connectors; xAI does not say whether a custom server can be added there. Not tried. Not mentioned
Grok Bot (xAI: Bots "can use a persistent cloud computer, connected tools, websites, and files to complete work") Desktop app: Connect apps, Add a custom connector, Type Remote HTTPS, the URL, Add plugin; or ask a Bot to add the server by URL. "If your team admin's MCP policy blocks the server, it can't be saved." Grok Bot itself is on Premium, Super and Ultra of The X Subscription ("Plus and Free don't include it"). The phone app reaches the same connectors. Not tried. Not mentioned
Grok Build (xAI: "a powerful and extensible coding agent") grok mcp add --transport http opf https://openpresentation.org/mcp, or [mcp_servers.opf] with url = "https://openpresentation.org/mcp" in ~/.grok/config.toml (--scope project writes .grok/config.toml). grok mcp list shows it; /mcps in the terminal UI, then r, refreshes after config edits. Not tried. Not mentioned

Where the viewer does not open, show_deck answers with the deck's name, slide titles and findings as text: ask for the deck as OPF JSON and open it in the Playground. Where it is slow to appear, ask the assistant to show the deck again.

What the hosted server keeps. A deck you pass to validate_deck, convert or show_deck is read in memory for that one call and not stored; the viewer itself edits, checks, draws and exports the deck on your machine. The hosted server allows 600 requests a minute per address and bodies up to 4 MB.

Local. Any MCP client that starts a local server takes a command and arguments:

{
  "mcpServers": {
    "opf": { "command": "npx", "args": ["-y", "@openpresentation/mcp"] }
  }
}

Pin a version (@openpresentation/mcp@0.27.0) to make the setup repeatable. Node 22 or later is required.

Client How
Claude Code claude mcp add opf -- npx -y @openpresentation/mcp (add --scope project to write .mcp.json for the team)
Cursor Add the JSON above to .cursor/mcp.json in the project, or to ~/.cursor/mcp.json
Claude Desktop Install the extension (opf-<version>.mcpb, below), or add the JSON above to claude_desktop_config.json
Any other client Run npx -y @openpresentation/mcp as a stdio server (installed, the binary is opf-mcp)

Check it with the official inspector: npx @modelcontextprotocol/inspector npx -y @openpresentation/mcp.

Claude Desktop extension (.mcpb)

The server also comes as an MCP Bundle, a one-file Claude Desktop extension: open opf-<version>.mcpb (double-click it, or drag it into Claude Desktop's Settings, Extensions) and Claude Desktop installs and starts it. It needs no Node install, no npx and no configuration, and it carries the renderer and its fonts, so the OPF viewer draws decks with the exact faces and validation measures layout with them.

When the matching GitHub release lists opf-<version>.mcpb and its SHA-256 file, download both assets from that release. Release-bundle publication is planned from 0.34.0; 0.33.0 has no published bundle asset. The trusted publish workflow builds and checks the full bundle before attaching it after registry verification. Verify it with sha256sum --check opf-<version>.mcpb.sha256 on Linux, or compare Get-FileHash opf-<version>.mcpb -Algorithm SHA256 to the file on Windows.

Build it from a checkout: pnpm --filter "@openpresentation/mcp..." run build, then pnpm --filter @openpresentation/mcp run build:mcpb. It writes packages/mcp/artifacts/opf-<version>.mcpb (about 81 MB, every font the renderer draws with); node scripts/build-mcpb.mjs --no-script-fonts writes opf-<version>-lite.mcpb (about 33 MB) without the script faces (Japanese, Chinese, Korean, Arabic, Devanagari and the other scripts), whose text then draws with fallbacks. --check also unpacks the bundle and drives its server the way Claude Desktop starts it. The build packs this checkout's @openpresentation/opf, gallery, opf-render and mcp, and installs their third-party dependencies and the renderer's font packages from the npm registry, keeping only the font files the renderer's manifests name. The manifest is packages/mcp/mcpb/manifest.json; test/mcpb-manifest.test.mjs keeps its tool list in step with the server.

opf mcp of the CLI is a convenience: it runs this server when @openpresentation/mcp is installed beside the CLI or in the working directory, and otherwise prints npx -y @openpresentation/mcp and exits with 2. The CLI itself carries no MCP code.

Tools

Every tool takes JSON arguments and returns structured JSON (structuredContent, with the same JSON as text for clients that read only text; show_deck, read_font_file, read_icons and read_example_files answer in their own text). A failure comes back with isError: true and a text report { ok: false, code, error, ... } (no structured content), with a stable code (unknown-id, invalid-document, ...) and, where it helps, a suggestion ("Did you mean two-column?"). All tools are read-only.

Tool Arguments Returns
start_here goal? (what you are trying to do, in your own words) { goal, summary, steps[], docs[], skills[], examples[], layouts[], themes[], validate }: a short ordered path. Which documentation pages and skill to read, two or three example decks, layouts and themes from the catalog, and the validate step (validate_deck with failOn: "warning"). With no goal, the general learning path. Everything it names is a resource URI or a tool to call next.
validate_deck document (a JSON object, or deck text), format? (json, yaml, markdown; default JSON), failOn? (error, warning, info; default error), asOf? (an ISO 8601 date or date-time to check data freshness as of: opf/dataset-stale; without it nothing is reported stale) { ok, valid, schemaValid, failOn, format, counts, findings[], checks, hint? }. The findings are the ones opf validate reports (rule id, severity, category, JSON Pointer path, message, help, fixes, and a location with line and column for JSON, YAML and Markdown text). ok is false when a finding is at or above failOn. It does not look for local image files (it reads none).
get_schema name? (a schema such as presentation or layout, or a $defs name such as Chart), pointer? (a JSON Pointer into the schema, or a $defs name) { name, pointer, id, schema, opfVersion }, like opf schema. $refs stay as written. A whole schema names the @openpresentation/opf release it came from in its $comment; a part is as it is.
search_catalog kind (layouts, themes, color-schemes, font-schemes, narratives, audiences, purposes, tones, chart-types, languages, social-platforms, examples), query?, limit? { kind, total, returned, records[] }: short records (id, name, summary, description, tags), best match first.
get_catalog_record kind, id { kind, id, uri, record }: the record in full, like opf catalog <kind> <id>.
convert document, from?, to (json, yaml, markdown) { ok, from, to, text, findings, counts }, like opf convert. The deck must be valid; otherwise nothing is converted and the findings are returned. This tool converts text formats only. The viewer separately offers PowerPoint, PDF and PNG Export in a host that can save files; the local opf convert also writes rendered formats.
search_docs query, limit? { total, results[] }: ranked pages and skills, each with uri, title, the heading the snippet sits under, a snippet and a score.
search_shapes query?, category? (lines, rectangles, basic, blockArrows, equations, flowchart, starsBanners, callouts, actionButtons), limit? { query, total, returned, shapes[], categories[] }: the 187 preset shapes of a shape block or an overlay shape, searched by DrawingML name (rightArrow) and common words (speech bubble, cylinder, cog; every word must match, a name ranks first; an empty query browses PowerPoint's gallery in order). Each shape has shape (the value to write), category and categoryTitle, aspect (the default frame, width over height), adjust[] (each adjust value's name, default, min, max, unit of fraction or degrees, and whether a handle moves it, at a square frame) and svg, a small drawing from the preset's own geometry.
list_examples category?, query? { total, categories, examples[] }: slug, name, category, slide count and uri for each bundled example deck.
show_deck document (a JSON object, or deck text), format?, view? (preview, source, both; default preview), slide? (from 1), session? Opens the deck in the OPF viewer (_meta.ui.resourceUri: ui://opf/deck/<hash>). { opened, display, checked, view, slide?, format, name, slides, outline[], valid, counts, findings[], viewer, iconSets }, and as text the deck's name, slide titles, findings and the viewer session key, so a client without MCP Apps still gets an answer. With processDecks: false (a hosted server that does no deck work), { opened, display, checked: false, view, format?, viewer, iconSets } only: the viewer does the checks. iconSets names the icon sets the viewer can read through read_icons ([] when the server has none). A later call for the same deck (the same id, or for a deck with no id the same name) replaces the open viewer of it; session chooses another session. viewer is { session, createdAt, tie } (Instances).
open_editor example? (a bundled example's slug), title? (the deck's name: the starter deck's title, or a new name for the example), session?; all optional Opens the OPF viewer's editor with a deck to edit: with {} a two-slide starter deck ("Untitled deck"), or the example named. { opened, display, editor: true, example, name, slides, document, examples[], viewer, iconSets }; an unknown slug still opens the starter deck and the text names the nearest slug. Title "OpenPresentation". Its _meta carries ui.resourceUri and "openai/ui": { "entrypoints": [{ "type": "global" }] }, the marker Claude reads to offer the app as a direct entry point (Entry point).
read_font_file file (a path from the renderer's font manifest), offset? For the viewer only (_meta.ui.visibility: ["app"]; a host hides it from the model). { file, offset, total, bytes }: at most 512 KiB of the file, base64. Offered by opf-mcp when @openpresentation/opf-render is installed beside it.
read_icons set (lucide, tabler), names (at most 100 icon names), index? For the viewer only (_meta.ui.visibility: ["app"]). { set, icons, errors?, index? }: the path data of the icons the set has (a name it lacks is left out: the index names every icon), why a name could not be read, and with index the set's index (names, viewBox, style, stroke settings, name, version, license, copyright, licenseText). The viewer asks for the index once per set. Offered when the server has icon sets (sources.iconSets; opf-mcp and the .mcpb read the installed files) and the viewer.
read_example_files names (at most 32 paths as a deck names them, ./assets/logo.svg) For the viewer only (_meta.ui.visibility: ["app"]). { files, missing }: the image files the bundled example decks name by a relative path, as base64 data URIs (the 13 files core ships for opf create --example, 109 KB), and the paths it does not have. It is a lookup in the examples' own files: any other path is reported missing, and nothing is read from disk or fetched. Offered whenever the server has the viewer; with sources that carry no example files (ExamplePage.files; the default sources have them) every path is missing.

Resources

Resources have stable URIs. The server lists them (resources/list) and also offers URI templates (resources/templates/list) so a client can read a URI it builds itself.

URI What it is
opf://docs/index Every documentation page and skill, with its URI
opf://docs/whats-new The most recent release notes: the newest release, and older ones while there are at most five and the page is under 120,000 characters, from the changelog of @openpresentation/opf (the format, the validators and the engine), newest first, as text
opf://docs/<slug> A documentation page as Markdown: format-card (the whole authoring surface on one page, sized for pasting into a model's context), how-opf-works, schema-reference, validate, cli, and the other pages meant for people who use OPF. Handoff, evidence, status and release notes are not served.
opf://schema/<name> A JSON Schema (opf://schema/presentation)
opf://schema/<name>#<pointer or $defs name> Part of a schema: opf://schema/presentation#Chart, opf://schema/presentation#/properties/slides. opf://schema/Chart also works.
opf://examples/<slug> A valid example deck as JSON
opf://catalog/<kind>/<id> A record of the default catalog (@openpresentation/gallery): opf://catalog/layouts/two-column
opf://skills/<name> A skill entrypoint (opf-author, opf-layout, opf-presets, opf-edit, opf-export, opf-inspect)
opf://skills/<name>/<path> A reference or asset of a skill: opf://skills/opf-author/references/content.md
ui://opf/deck/<hash> The OPF viewer (text/html;profile=mcp-app). <hash> is the first 12 hex digits of the SHA-256 of the page, set when the package is built (DECK_APP_URI), so the URI changes exactly when the viewer does: a host caches a view by its URI. ui://opf/deck (the URI up to 0.34) and any earlier ui://opf/deck/<hash> read as the current viewer, for a host that holds a tool list from before an update; only the current URI is in the resource list, and the two earlier forms are resource templates (ui://opf/deck, ui://opf/deck/{hash}). The viewer is one HTML page (about 9.1 MB of UTF-8; pnpm --filter @openpresentation/mcp build prints the exact size and the JSON-RPC frame's headroom under the 10 MiB stdio limit) that show_deck and open_editor open. The resources/read content item carries _meta.ui { prefersBorder: false, preferredDisplayMode: "fullscreen" }; the viewer declares no csp, domain or permissions (any of them would go on the same content item).

Skill scripts and agent manifests are not served; the server runs no code from them.

The OPF viewer (show_deck)

show_deck is an MCP App (SEP-1865): in a client that supports MCP Apps, such as Claude on the web, on desktop and in the iOS app, the deck opens in the conversation with the openpresentation.org playground's three views.

  • Preview shows the slides, with the thumbnail strip under them. Source shows the deck's text (JSON, YAML or OPF Markdown) in the editor's source pane, checked as you type. Both puts them side by side; in a container narrower than 860px it stacks the slide over the source, and choosing it there asks the client for a larger view. The slide itself can be edited in place too. The model is told to open on Preview unless the user asked for the source.

  • The bar (48px, one row down to a 640px container; below it, a phone, two rows and no Both: the name with Open, Ask and a More menu, then Preview and Source with Undo, Redo and Design, while Find, Expand and Export are in More): Undo and Redo, the deck's name (a little room from 640px, the first row below 640px; renaming opens the editor's Save and Cancel over the whole bar, or over the name's own row where the bar wraps, and Enter or Save commits one undoable edit, Escape or Cancel puts the name back, and leaving the field closes an untouched rename and keeps a typed draft), the view switch, Design, Find and replace (Ctrl/Cmd F) and Export as one group of icon buttons, Expand, and Ask Claude to edit…. The three open the editor's one panel in the same place, under the bar at its right end, one at a time (opening another replaces it; Escape and the Close button close it, and a press outside closes Design and Export): Design has four tabs, Theme, Colors, Fonts (the schemes for the deck's language, grouped by type, with a filter) and the slide's Layout, each choice one undoable edit with Undo in the panel's foot; Find has the match count in its field, the options as chips and the results grouped by slide; Export lists Slides and OPF source and shows the file it made, with its notes, in a card at the top. The panel is never taller than the room under the bar (its list scrolls). In Claude the bar draws no Expand: Claude has its own expand control above the viewer, and one is enough (the More menu of a phone-size bar keeps the item). Undo stops at the deck as it was opened. Present is left out (a sandboxed iframe cannot go full screen on its own), and the source pane's Copy works without the clipboard permission.

  • Export is the editor's own menu: PowerPoint (@openpresentation/opf-pptx, editable), PDF (vector, selectable text), SVG and PNG slides, and the OPF source as JSON, YAML or Markdown. Every file is made in the viewer, on the user's machine, with the fonts the slides draw with, and handed to the client to save (ui/download-file), since a sandboxed iframe cannot download. The menu, and the source pane's Download, show only in a client that declares that capability; the agent handoff is left out, the deck being in a conversation already.

  • Ask Claude to edit… opens a focused composer for the selected slide. Send submits your instruction and slide number through ui/message. The viewer shares deck changes separately through ui/update-model-context after a second of inactivity. The composer shows the sharing status and keeps the request available for retry if delivery fails.

  • Review opens the validation findings and viewer version. When a slide or source draft has findings, the footer shows the issue count. After an assistant edit, the viewer selects the last affected slide and briefly offers Undo beside the slide counter. The revision and findings also reach the model.

  • One palette, the client's. The viewer is built to the openpresentation.org design system (the playground's bar and footer) and reads only the editor's --opf-ui-* tokens. In a client that sends the standard MCP Apps style variables, the neutral tokens (surfaces, text, borders) are derived from the client's background and text colors and its fonts, for the viewer's own chrome and the editor's parts alike, in the client's light or dark theme; the accent and the status colors stay OPF's, and the slides keep the deck's theme. Without those variables it uses the design system's own values.

  • It is as tall as the deck needs. Inline, the stage takes the shape of the deck's slides (up to 480px) with 16px around the slide on every side, so a 16:9 deck in a 660px column is about 545px tall; until the deck is drawn, a slide-shaped placeholder holds its place and says what the viewer is waiting for; Source and Both have a fixed height. Full screen, and a client that fixes the height, fill the frame.

  • Saving is controlled by the host. Source downloads preserve the current JSON, YAML or Markdown text, MIME type and suggested filename; the host controls confirmation and saving. Each outcome is worded as the host reports it (capabilities); "Download started." is not proof that a file was saved. Without download support the file controls stay hidden; the viewer never substitutes a direct iframe Blob/anchor download. Source text can still be selected and copied manually.

Everything runs on the user's machine. The page bundles @openpresentation/opf-editor, @openpresentation/opf-render and core's precompiled validators, so the editing, rendering and checking happen in the client, not on the server. The client runs it in a sandboxed iframe with no network, no eval and no WebAssembly (the restrictive default CSP of SEP-1865, since the viewer declares no domains), so the page loads nothing: its script, styles and the startup font (Roboto Regular) are inline. Any other face a deck draws comes from the server through the client: the viewer calls the app-only tool read_font_file, which serves the installed renderer's files in pieces of 512 KiB, and the renderer checks each file against its pinned SHA-256 before it registers it as bytes (FontFace from an ArrayBuffer, which needs no font-src). Without the renderer beside the server, or on a server that offers no read_font_file, the viewer draws those faces with Roboto and names the substitution. Images in a deck draw when they are data URIs; the sandbox blocks a remote image. The bundled examples that name pictures by a relative path (./assets/cover.png) draw them too: the viewer asks the app-only tool read_example_files for the relative image paths a deck names and keeps an answer only when it is a data URI of an image, so the preview and every export (PowerPoint, PDF, PNG, SVG) carry the picture. Any other path keeps the "Image unavailable" placeholder, and the viewer never reads or fetches it; the model still sees the deck's own text, with its paths, not the image data.

Set icons ("icon": "lucide:rocket") come from the server the same way: the viewer registers the gallery's sets as loaders that call the app-only tool read_icons for the icons a deck names (at most 100 a call, so a deck with more makes more calls) and for each set's index once (every name, so a check suggests the nearest names, and the license). The page carries no icon data. The viewer learns which sets the server reads from iconSets in the show_deck or open_editor result; a set the server does not offer, a server without read_icons, or a call that fails settles the load: the slide draws without the icon, and opf/icon-unknown says it could not be loaded and why. The viewer's checks, and the checks in read_deck and edit_deck results, wait for the deck's icons, so a known icon is never reported and an unknown name gets the same finding and suggestions as validate_deck. The viewer has no icon picker (that is the editor's Content panel), so it never reads the sets' search keywords.

In a client without MCP Apps (Claude Code, the API), show_deck returns the deck's name, slide titles and findings and a local file-open instruction as text. The next text block contains the source, preserving supplied text verbatim. Both tools report display: "unconfirmed" when accepting the request (opened: true). Confirmation comes from the mounted viewer’s context or its read_deck tool. The Playground link carries no deck data.

What the viewer does with each host capability

Every capability below is the host's to offer, and Claude can limit each one by connector type (several need a remote connector: a custom connector added by URL or a directory listing, not a local server), by organization and by client. Nothing here is available to every user, and none of it was verified in Claude from this repository; the stand-in host in test/deck-app-tools-browser.mjs and test/deck-app-browser.mjs behaves as Claude's MCP Apps documentation describes. The viewer keeps working without each one. To see what a host announced, open More: its last line names the host and then reads, for example, message: no · save files: no · full screen: no · tools: yes · context: yes (the footer version's title carries the same), one part for each row of this table.

Capability Where the host offers it Where it does not
The viewer's own tools (read_deck, select_slide, edit_deck) The model reads the open deck and changes it in place, one undoable edit per call, and the user sees it at once. Claude gets a view's tools from the user's next message after the view opened, and only for a remote connector. The tools are never called; the model sees the user's edits as context and opens a new viewer with show_deck to change the deck.
Model context (ui/update-model-context) A second after the last edit the whole deck goes to the model, with its revision and the viewer session key. A viewer that open_editor opened sends the deck it opened (the starter deck or the example, named) in its first context too. Once the host has it, the footer says so with the composer closed: "Claude can see this version" ("The assistant" in another host), in quiet text at the right of the footer (a status note takes its place while one shows). The footer says nothing about sharing; Send still asks for a turn where messages work.
Messages (ui/message) Ask opens the edit composer. Send passes the selected slide number and the typed request to the host. Claude asks for approval. A refused or unconfirmed request stays in the composer for retry. The viewer hides Ask.
Downloads (ui/download-file) Export and the source pane's Download hand the file to the host: Download started., The download didn't finish., or The download couldn't be confirmed. (a rejection or the ten-minute timeout; the host's dialog may still save it). A host that answers "method not found" gets This host does not offer downloads here. Select the source text to copy it., and Download and Export are no longer offered. One request at a time: a click while one waits sends nothing and says so. The file name is the URI's last segment as written (never percent-encoded); the viewer turns / \ % : " * < > | ~ # ? into _ itself, so the name the user sees is the one it chose. The viewer makes only PowerPoint, PDF, PNG, SVG, ZIP and OPF source files, none of a type a host refuses outright. No Export menu or Download button; the source text can be selected and copied.
A larger view (ui/request-display-mode, availableDisplayModes: ["inline", "fullscreen"]) Expand asks from the click itself (Claude honors it only right after a press in the view and opens its side panel or full screen; both report fullscreen); the label becomes Back to the conversation. A refusal leaves the label as it was and says the host kept the viewer where it was. In Claude the bar does not draw the button, because Claude draws its own above the viewer; the request is still made when Both is chosen in a narrow frame, and from the More menu of a phone-size bar. The content item's preferredDisplayMode: "fullscreen" asks Claude to open the side panel when the tool returns; Claude decides. No Expand button; the viewer stays inline.
Opening a link (ui/open-link) A web, mail or phone link in a slide opens through the host when pressed with Ctrl or Cmd (a plain press edits its text; in a view a newer viewer has replaced, which is read only, a plain press or Enter opens it). A slide:<id> link shows that slide the same way. The address appears in the footer so it can be copied (also where the host refuses the request); nothing else happens and the viewer's own frame never navigates.
Server tools from the view (tools/call) Fonts (read_font_file), set icons (read_icons), the example decks' pictures (read_example_files) and the editor's example picker (get_catalog_record). The view has only Roboto Regular inline: a deck that needs any other face (the default theme's fonts are among them) is not drawn, and the view says so in place of the slide ("The slides cannot be drawn: the fonts this deck needs could not be loaded from the server"), so a host must offer read_font_file. Without read_icons it draws without its set icons (each with an opf/icon-unknown finding that says it could not be loaded) and with placeholders for the examples' pictures, and the Open menu offers local files and Paste.

Layout follows the container the host reports (containerDimensions: its width, and a fixed or a maximum height): the side panel and full screen are both fullscreen and the side panel can be resized down to about 320px. A fixed height fills the frame, and so does fullscreen when the host sends no dimensions with it (borderless); a maximum height keeps the inline view as tall as its slide. The host's safeAreaInsets pad the view, and hostcontextchanged lays it out again. Below 640px (a phone) the slide comes first: two rows of chrome (about 96px), the slide as wide as the frame, a compact strip and the footer, so the inline view of a 16:9 deck is about 430px tall and Source takes the same height; Design, Find and Export open as a bottom sheet under the slide (600px and under), and the view grows by the sheet so a choice or a match shows at once. In the narrowest container (under 400px) every control in the bar, the More menu and the footer is at least 44 by 44 CSS pixels, and the footer wraps a long message instead of cutting it short. In a very narrow pane (under 300px; Cursor's IDE chat pane gives the view about 215px) the chrome stays two rows: the name with Open, Ask and More, then Preview, Source and Design, with Undo and Redo moved into More; with a mouse the controls keep their 32px size (a finger keeps 44px), the slide takes the whole width, and the Design sheet's tabs are two rows of two. The view lays itself out down to 200px; in a narrower frame it keeps 200px and the frame scrolls sideways. Full screen held sideways drops the strip. A status message clears itself after eight seconds.

The viewer's tools (editing together)

The viewer registers three tools before it connects, and their names, titles, descriptions and schemas never change while it runs (Claude may ask the user to approve a tool again when one does); changing values go in results. Each answers in text, which is what the model reads, and acts on its own view only: with two viewers open, a call reaches one. Inputs a model is likely to get wrong (an unknown op, too many operations, a negative or fractional offset or index, both or neither of index and id) come back as normal results that say how to fix them, not as validation errors.

Tool Arguments What it does
read_deck source? (json, yaml, markdown), offset? The open deck's revision (core's documentHash, sha256:...), viewer session, name, slideCount, selected { index, id }, outline[] { index, id, title, layout } (indexes from 0, as in /slides/0), sourceDraft and checks (counts and up to 20 findings). While the source pane's text is not a valid deck, checks describe the deck at revision (the last valid version, which the slides show) and sourceChecks (the same shape) the text's own findings; a syntax error is one error with rule id syntax. It is bounded whatever the deck: names, ids, titles and finding paths at most 200 characters, finding messages 300, the outline at most 30,000 characters of JSON (then outlineTruncated: { listed, of }). With source, also the deck's text, in pages that keep the result under 100,000 characters with at least 40,000 characters of text each; pages after the first leave the outline out, a page never starts or ends inside a surrogate pair, and every page carries a textHash of the whole text (when it changes between pages, start again at 0). The form open in the source pane comes back as the pane shows it, a draft the deck has not taken included (draft: true), and nothing the user is typing is applied by the read.
select_slide index? (a whole number from 0) or id?, exactly one Shows that slide; the deck does not change. Refused (busy) while the user has text open on the slide, since changing slides would commit it.
edit_deck expectedRevision, operations (1 to 100 JSON Patch operations, as opf edit takes them; paths may name slides and blocks by id, /slides/@intro/title) Applies the operations through the editor session's applyPatch with expectHash: all or none, as one undo step, with the source pane, the slide and the model's context following. Refused, changing nothing: a revision that is not the current one (stale-revision, read again); an edit while the user is typing, with text open on the slide or typing the source pane has not applied yet (busy: the user's edit is never committed for them; try again after their next message); a source draft that is not a valid deck (source-draft); an operation on the whole deck, path or from "" (whole-deck); any operation but test whose path or from is /slides itself, that is adding, replacing, removing, moving or copying the whole slides array (whole-slides: edit slides one at a time); more than 200,000 characters of operations (too-large); and an edit that would make the deck invalid (invalid-result, with the findings). The deck in the viewer is always valid in format and references: a JSON deck that is not does not open (the tools answer not-open), and YAML or Markdown text that is not stays a draft in Source (source-draft). In the source pane, JSON keeps its formatting (only the changed values are rewritten); YAML and Markdown text is written again from the deck, so YAML comments are dropped and the pane says so. This holds for every change made outside the source pane (the Design menu, an edit on the slide, Undo), not only for edit_deck. Returns the new revision, previousRevision, changed[] (as the operations addressed them) and the checks.

Every tool answers with ok: false and a code (loading, not-open, superseded, closed, busy, source-draft, stale-revision, whole-deck, whole-slides, too-large, invalid-input, invalid-result, ...) and a sentence that says what to do instead, rather than an error, while the deck is loading, when no deck opened (also after the tool call was canceled), after a newer viewer of the same session replaced the view (which also makes it read-only), and after the host tore the view down.

Instances and the viewer session

Each tool call mounts its own view, and earlier views stay live. show_deck and open_editor mint viewer: { session, createdAt, tie } in their result; the server keeps nothing and counts nothing. Decision (vetoable, RR111-SESSION-BY-DECK): one editing session is one deck: the session key is the caller's session when it passes one (letters, digits and - _ . :, up to 64), and otherwise it is derived from the deck's own identity, statelessly: it is deck- and 32 hex digits of the SHA-256 of the deck's document id (opaque, compared exactly) when it has one, else of its name, trimmed, lowercased and with runs of spaces collapsed (a deck with neither gets a random key of its own). Keying on the id means two different decks that share a name, such as two "Untitled" decks, no longer share a session. The id is a claim, not a credential: here it only names a viewer inside the caller's own conversation, and no host should let an id alone select a stored deck. So a model that shows a newer version of the same deck replaces the older viewer without passing anything back, a deck with another id stays independent, and open_editor derives the key from the starter or example deck it opens. Both tools' descriptions say so. Views of one session meet on a BroadcastChannel named by that key and compare the server's keys only: createdAt (the server's clock), then tie (random, minted per call), then the instance id; never a key a view made up. The older view grays out, becomes read-only, clears its sharing state and any selection, says that a newer viewer is open, and stops sending context, messages and tool edits. A view whose result carries no key, a view where the browser has no BroadcastChannel, and every view of another session stay independent. The channel is per conversation because the viewer declares no ui.domain (its origin is then the conversation's); a host that gave it a fixed domain would let two conversations with a deck of the same name meet, so that would need the session key to include something the host scopes.

The direct entry point (open_editor)

Where Claude offers it (a remote custom connector or a directory listing, the newer conversation experience, an organization that allows it; not a local server), a user can open the OPF viewer's editor without asking the model: Claude lists it as "OpenPresentation" beside the connector's name and calls open_editor with {}. The starter deck opens in Preview. Open beside the deck name offers Open from device… for local OPF JSON, YAML or Markdown, Paste a deck…, and Browse examples… when the host supplies bundled examples. Opening a file or example selects its first slide and can be undone. Paste focuses and selects the source text, or reads the clipboard directly where the host permits it. The model can call it too, with a title (with an example, the title renames the example deck, and the result says so) or an example.

+ Slide adds a Title, Bullets, or Blank slide after the selected thumbnail. Use ••• on the selected thumbnail to delete, duplicate, hide or move it. Delete keeps one slide in the deck, and Undo restores a deleted slide. Enter commits a slide title and Shift+Enter inserts a line break. In the default starter, editing the opening title also names the deck until you rename it explicitly.

Not built: embedding a hosted workspace as a website inside the app. It would need explicit frameDomains, framing headers on that site and a listing that allows embedded sites, and it is a separate review.

Try it locally: run the server in Claude Desktop (the setup above) and ask Claude for a deck. To see the viewer outside a client, node packages/mcp/test/deck-app-browser.mjs (after pnpm --filter @openpresentation/mcp build) runs it in Chromium behind a stand-in host that frames it the way a client does; with OPF_DECK_APP_SCREENSHOTS=<directory> it saves a screenshot of each view. ext-apps' basic-host example is a reference host for a server over HTTP.

Prompts

Prompt Arguments Use
learn_opf none Orient an agent that has not used OPF; includes the format card
author_deck brief, audience?, slides? Write a deck from a brief, then validate and fix it; includes the format card and the opf-author skill
fix_validation_findings document, format? Repair a deck that does not validate with the smallest change; includes the opf-inspect skill
choose_layout content, intent? Pick a layout from the content a slide carries; includes the opf-layout skill

A typical session

  1. The agent calls start_here { goal: "a board update with a revenue chart" } (or reads opf://docs/format-card, or runs the learn_opf prompt).
  2. It reads what the path names, finds layouts with search_catalog { kind: "layouts", query: "two columns" } and reads one with get_catalog_record.
  3. It writes the deck and calls validate_deck with failOn: "warning"; each finding names a rule, a JSON Pointer and a hint. It fixes the findings and repeats until ok is true. A field it is unsure of comes from get_schema { name: "Chart" }.
  4. It shows the deck with show_deck: in a client with MCP Apps the user sees the slides, can edit them, and the edits come back to the agent. Or it uses convert to hand the deck over as YAML or Markdown. In a host that advertises file saving, the viewer's Export menu hands PowerPoint, PDF and PNG files to the host. The local opf convert deck.opf.json deck.pdf (or .pptx) is another way to write an export.

Validation checks the file. It does not render the deck, so it is not proof of how the deck looks.

Host it

The package is a library as well as a command. Its entries:

Entry What it is
@openpresentation/mcp createOpfServer(options): the server with the bundled docs, examples, skills and release notes. Edge-safe.
@openpresentation/mcp/server createOpfMcpServer(options): the same server with no bundled data; you pass sources. Edge-safe, and small.
@openpresentation/mcp/stdio runStdio(): the Node stdio wrapper that opf-mcp and opf mcp run. Uses Node.
opf-mcp (bin) The stdio server; npx -y @openpresentation/mcp runs it.

The two library entries import no Node builtin and read no file; documentation, examples, skills and release notes are bundled data; validation uses the precompiled validators (@openpresentation/opf/precompiled), so they run where code generation from strings is refused, such as Cloudflare Workers (the tests bundle them the way Wrangler does and run them in workerd):

import { createOpfServer } from "@openpresentation/mcp";
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";

export default {
  async fetch(request: Request): Promise<Response> {
    const server = createOpfServer({ version: "0.27.0" });
    const transport = new WebStandardStreamableHTTPServerTransport({ sessionIdGenerator: undefined, enableJsonResponse: true });
    await server.connect(transport);
    return transport.handleRequest(request);
  },
};

createOpfServer({ version, opfVersion?, sources?, checkText?, deckApp?, processDecks? }) returns an SDK McpServer. sources replaces any of the bundled docs, examples, skills and whatsNew. checkText replaces the check behind validate_deck; opf-mcp passes the one that measures layout with the fonts opf convert draws with. Without it, layout is estimated and the report's hint says so.

The default entry bundles the viewer, example decks and public documentation. A host that must stay small imports createOpfMcpServer from @openpresentation/mcp/server, which bundles none of that data, and takes sources: { docs, examples, skills, whatsNew? } from wherever it keeps them (KV, R2, static assets): docs is [{ slug, title, markdown }], examples is [{ slug, category, file, deck, files? }] (files maps a relative path the deck names to the image as a base64 data URI, for read_example_files; the tools and resources a model reads return only deck), skills maps a skill name to { "SKILL.md": text, ... }. defaultSources() and DOC_SLUGS (the pages served) are exported from @openpresentation/mcp.

A hosted server that does no deck work. A tool call always runs on the server the client calls, so a hosted server runs every call on your compute. Pass processDecks: false and it does no OPF processing of decks: show_deck only opens the viewer, which reads, checks and renders the deck on the user's machine and sends its findings to the model as context; validate_deck, convert and the fix_validation_findings prompt are left out, and start_here and the other prompts point to show_deck. What stays on the server is the lookups (docs, schemas, catalog, examples), which are small and the same for every caller, and handing over the viewer's HTML. A client without MCP Apps gets no check from such a server. deckApp: { readFontFile } gives the viewer font files (the local server reads the installed renderer's); deckApp: false leaves the viewer out. The lean createOpfMcpServer takes deckApp: { html } with DECK_APP_HTML from @openpresentation/mcp, or a function that returns the same page from storage; the function runs only when a client opens the viewer, so other requests never load the viewer page.

Fonts for a hosted viewer. A hosted server must pass readFontFile: without it there is no read_font_file tool, the viewer cannot get the faces a deck draws with, and it shows that message instead of the slides. A site that already serves the OPF preview fonts (the layout the OpenPresentation site's prepare-opf-fonts.mjs writes: /opf-fonts/manifest.json, base/, lazy/fonts/ and scripts/) passes readFontFile: siteFontFiles({ fetch }), exported by both library entries. fetch reads a file by its path on the site; in a Worker it is the static-assets binding, so the fonts cost no storage of their own and no request leaves the Worker:

import { createOpfMcpServer, siteFontFiles } from "@openpresentation/mcp/server";

const server = createOpfMcpServer({
  version, sources,
  deckApp: { html: () => loadDeckAppHtml(), readFontFile: siteFontFiles({ fetch: (path) => env.ASSETS.fetch(new Request(new URL(path, request.url))) }) },
});

It reads only font files under the font folders and the faces the site's manifest names, and the renderer in the viewer checks each file against its pinned SHA-256. OPF_SITE_FONTS_ORIGIN=https://www.openpresentation.org node --test packages/mcp/test/site-fonts.test.mjs checks a deployed site serves every face the viewer can ask for (Node needs NODE_USE_ENV_PROXY=1 behind a proxy).

Icons for a hosted viewer. A Worker has no installed icon files, so its defaultSources() registers no icon set, and without one the server offers no read_icons and a deck's set icons are opf/icon-unknown in the viewer. Serve the gallery's six set-level icon files as static assets under /opf-icons/ and pass them as sources.iconSets; nothing is bundled into the Worker:

import { fetchIcons, galleryIconSets } from "@openpresentation/gallery/icon-sets";

const iconSets = galleryIconSets(fetchIcons(new URL("/opf-icons/", request.url), env.ASSETS));
const server = createOpfMcpServer({ version, sources: { ...sources, iconSets }, deckApp: { html, readFontFile } });
# The six set-level files (lucide.json, lucide.icons.json, lucide.tags.json and Tabler's three; 2.5 MB, 538 KB gzip) into the static assets.
node -e "const fs = require('fs'); fs.mkdirSync('public/opf-icons', { recursive: true }); for (const f of fs.readdirSync('node_modules/@openpresentation/gallery/dist/icons')) if (f.endsWith('.json')) fs.copyFileSync('node_modules/@openpresentation/gallery/dist/icons/' + f, 'public/opf-icons/' + f)"

Then search_icons and validate_deck read the same sets, and test/mcp-workerd.test.mjs runs such a Worker in workerd.

Example pictures for a hosted viewer. They travel with the examples: each entry of defaultSources().examples that names shipped images carries them in files, so a host that serves those entries (from its storage, as JSON) serves the pictures with no other change; a host that leaves files out answers every path as missing, and the examples' pictures stay placeholders. The tool is listed whenever the viewer is offered, so a host can answer tools/list from a server built without its examples and load them only for the calls that read them (read_example_files is one). The viewer matches by path alone, since it reads none of your files: any deck that names one of these paths (./assets/logo.svg, ./assets/cover.png and the like) draws the example's picture, a deck of your own included. Give your own pictures as data URIs.

Limits

  • The viewer is about 9.1 MB of UTF-8 HTML (9,064,031 bytes in 0.34; the build prints the exact size), loaded once per conversation or cached by the client. Its resources/read frame was 9,390,901 bytes in 0.34.0 and 9,160,454 bytes after the November 2026 cut (1,325,306 under the default 10 MiB stdio limit, measured with core's changes of #1343 to #1345 in), and test/app-resource-frame.test.mjs fails when that headroom drops below 1,000,000 bytes. The bundle carries only zod's English messages (scripts/build-app.mjs), core's precompiled validators, whose errors are built by shared helper functions (packages/javascript/scripts/validators-codegen.mjs), and string literals in whichever quote makes the JSON frame shorter (scripts/app-quotes.mjs). What the frame is made of, and what is left to cut: docs/programs/release-readiness/mcp-viewer-size.md. A client may cap the size of an MCP App or ask the user before it shows one.
  • Export needs a client that saves files for the viewer (ui/download-file); in one that does not, there is no Export menu. A PowerPoint or PNG export draws an SVG picture through the browser's image decoder from a data: URL (svgSource: "data" of the renderer's export-browser), because the sandbox allows no blob: image. The model sees the deck as JSON, not as pictures of the slides.
  • The convert tool handles JSON, YAML and Markdown. Viewer Export runs in the client and requires its file-saving capability; the local opf command can also render and write files.
  • validate_deck reads no files, so a local image path in a deck is not looked up (the CLI warns with cli/asset-missing). Pass images as data URIs or assets.
  • Layout is measured with real fonts only under opf-mcp with @openpresentation/opf-render installed; checks.layout says measured or estimated.