
ChatPPT
io.github.ParkerDiamond由 GitHub 账号 ParkerDiamond 发布v0.2.0更新于 Oct 24, 2026
Model Context Protocol (MCP) server for programmatic PowerPoint creation and editing
概览
一个本地 MCP 服务器,让助手通过结构化工具创建、编辑、组织并预览 PowerPoint 演示文稿。
- 可以做什么
- 在受管工作区目录中创建、导入、列出、读取、更新、校验和删除演示文稿,更新可带修订检查,删除会永久移除 .pptx 文件。添加、列出、读取、更新、移动、复制和删除幻灯片,包括标题与演讲者备注,并可将幻灯片渲染为 PNG 预览以获得视觉反馈。把已有幻灯片组成命名的有序集合,并可重命名、读取或删除集合而不删除幻灯片。创建、列出、读取、更新、删除和调整幻灯片元素,如文本框、预设形状、线条、表格、图表和图片,支持字体、填充、描边、对齐和层级样式,并可批量操作。
- 适用场景
- 适合在聊天或编辑器会话中让助手制作或修改 PowerPoint 演示文稿,尤其是需要幻灯片预览和批量编辑、而不想手动处理文件的场景。适用于 VS Code 及其他可运行本地 stdio 服务器的 MCP 客户端。
- 运行要求
- 以 npm 包形式通过 stdio 在本地运行,需要 Node.js 20 或更高版本以及 npm 10 或更高版本。工作区根目录通过 --workspace 参数或 CHATPPT_WORKSPACE_ROOT、WORKSPACE_ROOT 环境变量指定,未指定时使用当前工作目录。未声明认证、API 密钥或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 ChatPPT,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
ChatPPT
ChatPPT is a Model Context Protocol (MCP) server for programmatic, AI-assisted PowerPoint creation and editing. Built on Node.js 20+ and @office-kit/pptx, ChatPPT exposes a safe, structured, resource-oriented CRUD API over stdio for connected LLMs in Visual Studio Code and other MCP-compatible clients.
Key Features
- Stable Opaque IDs: Every presentation deck, slide, slide collection, and slide element is tracked with a stable UUID.
- Dual Storage Model:
- Presentation files are stored under
presentations/<deckId>.pptx. - Server metadata, slide collections, and element mapping are tracked in
.chatppt/registry.json.
- Presentation files are stored under
- Atomic Operations & Consistency: All file writes use temporary files and atomic renames to prevent partial file corruption.
- Visual Slide Previews: Render any slide to a PNG image for agent visual feedback using
@office-kit/pptx-preview. - Vectorized / Batch Operations: Create, update, or delete multiple slides or elements in a single tool call to optimize LLM interactions.
- Rich Elements: Create and update text boxes, preset shapes (180+ DrawingML geometries), lines, tables, charts (column, bar, line, pie, doughnut, area), and images.
- Full Typography & Styling: Custom fonts, font sizes, bold, italic, text colors, fills, borders/strokes, alignment, and z-index ordering.
Installing & Configuring in VS Code
Option 1: Workspace MCP Configuration (.vscode/mcp.json)
To use ChatPPT in your VS Code workspace, add or update .vscode/mcp.json in the root of your workspace:
Option 2: Published Package or npx Execution
When running via npx or published binary, ChatPPT can be configured to target a specific workspace using the --workspace flag or environment variables:
Bundled Agent Skill
The npm package includes the portable create-deck-skeleton Agent Skill at skills/create-deck-skeleton/SKILL.md. MCP clients do not automatically load agent skills when connecting to a server. To use the skill, install or copy that directory into the skill-discovery location supported by your agent host, such as .github/skills/, .agents/skills/, or .claude/skills/. The skill uses ChatPPT's MCP tools and does not depend on a particular operating system or editor.
Workspace Behavior & Security Boundaries
ChatPPT operates on a deterministic workspace root resolved in the following priority order:
- Command line argument:
--workspace <path>or-w <path> - Environment variable:
CHATPPT_WORKSPACE_ROOTorWORKSPACE_ROOT - Fallback:
process.cwd()(current working directory)
Files & Directories Managed
- Presentations:
<workspace>/presentations/<deckId>.pptx - Registry & Metadata:
<workspace>/.chatppt/registry.json
Security & Trust Boundaries
- Path Isolation: All deck paths, temporary write buffers, and image element paths are strictly checked to ensure they reside within the configured workspace.
- Path Traversal Protection: Deck IDs must match
^[a-zA-Z0-9_-]+$. Absolute paths or relative paths attempting directory traversal (..) outside the workspace root are caught and rejected withValidationError.
Known Limitations
- Encrypted Presentations: Encrypted or password-protected
.pptxpresentations are detected and rejected. - Master / Theme Layout Authoring: Slide creation uses layouts built into the deck template; creating custom slide master themes from scratch is deferred to post-1.0.
Available MCP Tools
Deck Management (deck_*)
deck_create: Create a new blank presentation deck.deck_import: Import an existing PowerPoint file into the managed workspace and register its slides.deck_list: List all managed decks in the workspace.deck_read: Read metadata and slide/collection list for a deck.deck_update: Update deck metadata (title) with optional optimistic revision check (expectedRevision).deck_delete: Permanently delete a deck and its.pptxfile.deck_validate: Run diagnostic invariant checks across PPTX content and registry metadata.
Slide Management (slide_*)
slide_create: Add one or multiple slides in batch (supportstitleandnotes).slide_list: List slides in presentation order with 0-basedpositionindexes.slide_read: Read slide metadata and its element listing.slide_render: Render a slide to a PNG image preview for visual feedback. Accepts an optionalwidthin pixels, defaulting to1280, and returns an MCPimagecontent item.slide_update: Update slide title and speaker notes in batch.slide_delete: Permanently delete slides and clean up collection references.slide_move: Move a slide or reorder slides by providing aslideOrderarray.slide_duplicate: Duplicate a slide with new stable IDs for the slide and all elements.
Slide Collection Management (slide_collection_*)
slide_collection_create: Create a named ordered group of existing slides.slide_collection_list: List collections in a presentation.slide_collection_read: Read collection details and slide membership.slide_collection_update: Rename a collection or replace slide membership.slide_collection_delete: Delete a collection without deleting the slides.
Slide Element Management (element_*)
element_create: Create text boxes, preset shapes, lines, tables, charts, or images in batch (supports optionalclientIdcorrelation).element_list: List all elements on a slide in z-index order.element_read: Read element metadata and styling properties.element_update: Update position, size, text, fill, font, size, bold, italic, text color, stroke, and alignment in batch.element_delete: Delete elements from a slide in batch.element_reorder: Adjust element z-index (bringToFront,sendToBack,bringForward,sendBackward).
Rendering a Slide Preview
Call slide_render with the deck and slide UUIDs. The response includes a base64-encoded image/png content item that MCP clients can display directly:
The renderer is a deterministic approximation of PowerPoint output and runs in Node.js without a headless browser.
Development & Testing
Prerequisites
- Node.js >= 20
- npm >= 10
Setup & Build
Running Tests
Development Mode
npm Trusted Publishing
The publish.yml GitHub Actions workflow stages a package when a matching v* tag is pushed. The package must already exist on npm. The workflow uses GitHub OIDC through npm trusted publishing and does not require an npm token. A staged package is not public until a maintainer reviews and approves it with 2FA on npm.
Configure the npm package's trusted publisher with GitHub Actions, repository ParkerDiamond/ChatPPT, workflow filename publish.yml, and the npm stage publish action enabled. The staging job uses Node.js 24 and npm 11.15.0 or later.
MCP Registry Publishing
The same publish.yml workflow publishes server.json to the MCP Registry when a v* version tag is pushed. It authenticates with GitHub OIDC and does not require a registry secret. The registry job waits for npm staging, but MCP Registry validation requires the referenced npm version to be publicly available. If npm approval is still pending when the workflow runs, approve the staged npm release and rerun the failed registry job.
License
来源:README.md,提交 70a226c
工具
0版本历史
2- v0.2.0最新Sep 28, 2026
- v0.1.3Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。