HTML Slide Studio

HTML Slide Studio

HTML Slide Studio MCP server enables agents to create, read, update, validate, and export Marp Markdown presentation decks, including asset management and secure offline HTML export with path traversal and symlink protections.

Category
访问服务器

README

HTML Slide Studio

HTML Slide Studio is a Markdown-first presentation workspace built with React, Marp, and CodeMirror. It combines live slide preview, browser presentation mode, Mermaid diagrams, reusable style presets, offline HTML export, and a local MCP server for agent authoring.

Features

  • Edit Marp Markdown with a live 16:9 preview
  • Navigate with thumbnails, keyboard controls, or fullscreen presentation mode
  • Render editable Mermaid fences and export them as embedded SVG data
  • Choose from seven style presets or add deck-specific CSS
  • Apply the optional Narrative Infographic design profile and diagnostics
  • Open and save deck.md + assets/ folders through the browser
  • Export a self-contained HTML presentation with a restrictive offline CSP
  • Create, validate, and export decks through a constrained stdio MCP server

Quick Start

Requirements:

  • Node.js 22 or newer
  • npm
  • Microsoft Edge or another Chromium browser for local authoring
npm ci
npm run dev

Open the URL printed by Vite, normally http://127.0.0.1:5173/.

The repository includes one generic example-deck. User-created decks are ignored by Git by default so presentation content is not accidentally published.

Authoring Decks

The canonical structure is:

decks/<deck-id>/
├── deck.md
└── assets/
    ├── diagram.svg
    └── screenshot.png

Use Open folder to grant read/write access to an existing deck folder. Markdown changes update the preview immediately. Use the save icon or Ctrl+S to write back to deck.md.

Bundled decks opened with ?deck=<deck-id> can be saved only while the local Vite development or preview server is running. The save endpoint accepts existing deck IDs only and is not included in production builds.

To intentionally version additional decks, update the deck rules in .gitignore first.

Mermaid

Add an editable Mermaid fence:

```mermaid
flowchart LR
  Source --> Preview --> Export
```

The editor renders it in the browser. Offline export replaces the fence with Base64-encoded SVG image data; Mermaid source and runtime code are not included in the exported HTML.

MCP Server

The included VS Code configuration starts the MCP server with:

npm run mcp

For another MCP client, configure a stdio server with command npm, arguments run mcp, and this repository as the working directory.

Available tools:

  • htmlslide_list_decks
  • htmlslide_get_deck
  • htmlslide_create_deck
  • htmlslide_update_deck
  • htmlslide_put_asset
  • htmlslide_validate_deck
  • htmlslide_export_html

The MCP server confines access to the configured deck root, rejects path traversal and symlink escapes, validates passive assets, and blocks remote dependencies during offline export.

Scripts

Command Purpose
npm run dev Start the Vite development server
npm run build Type-check and build the application
npm test Run unit and MCP tests
npm run test:e2e Build and run Playwright browser tests
npm run lint Run oxlint
npm run typecheck Type-check app and Vite configuration
npm run typecheck:mcp Type-check the MCP server
npm run mcp Start the stdio MCP server
npm run mcp:inspect Open the MCP Inspector

Architecture

  • src/App.tsx — editor, preview, presentation, save, and export workflows
  • src/render/ — Marp rendering and slide source ranges
  • src/mermaid/ — secure Mermaid expansion and SVG validation
  • src/export/ — offline single-file HTML generation
  • src/design/ — design profiles, diagnostics, and shared themes
  • mcp/ — constrained deck repository and MCP server
  • design-profiles/ — reusable authoring guidance
  • decks/example-deck/ — public, non-customer example

Security and Privacy

  • Keep confidential decks outside this repository or rely on the default ignored decks/* paths.
  • Do not expose the Vite development server to an untrusted network when local deck saving is enabled.
  • Export requires local assets and rejects external runtime dependencies.
  • See SECURITY.md for vulnerability reporting.

License

MIT. See LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选