
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 分
請在儲存庫或註冊中心條目中宣告授權條款。