pptx-viewer-mcp 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +24 -16
- package/dist/mcp/index.d.ts +1 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to this project are documented here.
|
|
|
4
4
|
This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
|
|
5
5
|
by [git-cliff](https://git-cliff.org); do not edit it by hand.
|
|
6
6
|
|
|
7
|
+
## [1.3.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-mcp@1.3.1) - 2026-07-17
|
|
8
|
+
|
|
9
|
+
### Dependencies
|
|
10
|
+
|
|
11
|
+
- **deps:** Update outdated dependencies within semver ranges (by @ChristopherVR) ([3249d8e](https://github.com/ChristopherVR/pptx-viewer/commit/3249d8ecd53ea79089f87f942f2c88caae840466))
|
|
12
|
+
|
|
13
|
+
## [1.3.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-mcp@1.3.0) - 2026-07-16
|
|
14
|
+
|
|
15
|
+
### Documentation
|
|
16
|
+
|
|
17
|
+
- **packages:** Add package-specific readme visuals (by @ChristopherVR) ([9e20f13](https://github.com/ChristopherVR/pptx-viewer/commit/9e20f133dc8f21db75a1ca5e46e77c0af3c96d66))
|
|
18
|
+
|
|
7
19
|
## [1.2.2](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-mcp@1.2.2) - 2026-07-13
|
|
8
20
|
|
|
9
21
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/pptx-viewer-mcp)
|
|
4
4
|
[](LICENSE)
|
|
5
5
|
|
|
6
|
-
Edit PowerPoint files from an AI agent. It ships a ready-to-run [MCP](https://modelcontextprotocol.io) server that gives an agent
|
|
6
|
+
Edit PowerPoint files from an AI agent. It ships a ready-to-run [MCP](https://modelcontextprotocol.io) server that gives an agent 51 PowerPoint editing tools (for example "add a slide" or "replace text"). The same tools are also available as plain functions you can call yourself, along with their Zod input schemas and a codec for real-time collaboration (Y.Doc). The [`pptx-viewer-core`](https://www.npmjs.com/package/pptx-viewer-core) engine is bundled in, so a single install gives you everything and you never install the core separately.
|
|
7
7
|
|
|
8
8
|

|
|
9
9
|
|
|
@@ -31,7 +31,7 @@ No clone, no build, no separate core install. Point your MCP client at the publi
|
|
|
31
31
|
|
|
32
32
|
That is the entire setup. `npx` downloads `pptx-viewer-mcp` and its bundled `pptx-viewer-core` engine on first run, so there is nothing else to install. Add the config above, restart your client, and the tools are available.
|
|
33
33
|
|
|
34
|
-
This works in Claude Desktop, Claude Code, Cursor, and any MCP-compatible client. All
|
|
34
|
+
This works in Claude Desktop, Claude Code, Cursor, and any MCP-compatible client. All 51 tools are exposed over stdio in snake_case (for example `add_slide`, `batch_update_elements`). Every tool takes a `filePath` argument and the server handles load and save internally. File access is scoped to a root directory (`PPTX_TOOLS_ROOT`, defaulting to the process working directory) and restricted to `.pptx` and `.ppt` files.
|
|
35
35
|
|
|
36
36
|
> If you prefer a global install (`npm i -g pptx-viewer-mcp`), the same server is available as the `pptx-tools` binary. Point `command` at `pptx-tools` with no args.
|
|
37
37
|
|
|
@@ -71,23 +71,31 @@ See [Use as a library](#use-as-a-library) below for the higher-level `executeToo
|
|
|
71
71
|
|
|
72
72
|
## Exports
|
|
73
73
|
|
|
74
|
-
| Entry point | Contents
|
|
75
|
-
| ------------------------- |
|
|
76
|
-
| `pptx-viewer-mcp` |
|
|
77
|
-
| `pptx-viewer-mcp/schemas` | Zod schemas for every tool input
|
|
78
|
-
| `pptx-viewer-mcp/codec` | `PptxCodec`, the Y.Doc to PPTX bytes codec
|
|
79
|
-
| `pptx-viewer-mcp/mcp` | `
|
|
74
|
+
| Entry point | Contents |
|
|
75
|
+
| ------------------------- | ----------------------------------------------------------------------------------------------------- |
|
|
76
|
+
| `pptx-viewer-mcp` | 51 tool functions, the `PptxHandler` engine, provider types, and the execution pipeline |
|
|
77
|
+
| `pptx-viewer-mcp/schemas` | Zod schemas for every tool input |
|
|
78
|
+
| `pptx-viewer-mcp/codec` | `PptxCodec`, the Y.Doc to PPTX bytes codec |
|
|
79
|
+
| `pptx-viewer-mcp/mcp` | The runnable stdio server entry (what `npx pptx-viewer-mcp` executes); importing it starts the server |
|
|
80
80
|
|
|
81
81
|
## Tools
|
|
82
82
|
|
|
83
|
-
| Group
|
|
84
|
-
|
|
|
85
|
-
| Slide (8)
|
|
86
|
-
| Element (9)
|
|
87
|
-
| Table (2)
|
|
88
|
-
| Style (2)
|
|
89
|
-
| Content (3)
|
|
90
|
-
|
|
|
83
|
+
| Group | Tools |
|
|
84
|
+
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
85
|
+
| Slide (8) | `getSlide` `addSlide` `deleteSlides` `reorderSlides` `duplicateSlide` `updateSlideProperties` `setSlideTransition` `setCanvasSize` |
|
|
86
|
+
| Element (9) | `addElement` `updateElement` `deleteElements` `arrangeElements` `cloneElement` `setElementAnimation` `groupElements` `ungroupElements` `batchUpdateElements` |
|
|
87
|
+
| Table (2) | `updateTableCells` `manageTableStructure` |
|
|
88
|
+
| Style (2) | `updateElementStyle` `runAccessibilityCheck` |
|
|
89
|
+
| Content (3) | `findText` `replaceText` `manageComments` |
|
|
90
|
+
| Chart (5) | `createChart` `updateChart` `addChartSeries` `removeChartSeries` `updateChartSeriesData` |
|
|
91
|
+
| Theme (4) | `getThemeInfo` `applyThemePreset` `updateThemeColors` `updateThemeFonts` |
|
|
92
|
+
| SmartArt (1) | `manageSmartArt` |
|
|
93
|
+
| Template & layout (4) | `findPlaceholders` `applyTemplate` `getLayouts` `applyLayout` |
|
|
94
|
+
| Metadata & properties (4) | `getMetadata` `updateMetadata` `getPresentationProperties` `updatePresentationProperties` |
|
|
95
|
+
| Sections & hyperlinks (2) | `manageSections` `manageHyperlinks` |
|
|
96
|
+
| Geometry & locking (2) | `replaceGeometry` `setElementLock` |
|
|
97
|
+
| Validation (2) | `validatePresentation` `repairPresentation` |
|
|
98
|
+
| Export & conversion (3) | `convertToMarkdown` `exportToSvg` `exportSlideSvg` |
|
|
91
99
|
|
|
92
100
|
## Use as a library
|
|
93
101
|
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/schemas/slide-schemas.ts","../../src/schemas/element-schemas.ts","../../src/schemas/table-style-schemas.ts","../../src/schemas/theme-schemas.ts","../../src/schemas/chart-schemas.ts","../../src/schemas/smartart-schemas.ts","../../src/schemas/template-schemas.ts","../../src/schemas/metadata-schemas.ts","../../src/schemas/section-schemas.ts","../../src/schemas/export-schemas.ts","../../src/schemas/hyperlink-schemas.ts","../../src/schemas/geometry-schemas.ts","../../src/schemas/lock-schemas.ts","../../src/schemas/validation-schemas.ts","../../src/schemas/presentation-schemas.ts","../../src/schemas/layout-schemas.ts"],"mappings":";;cAEa,gBAAc,EAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/schemas/slide-schemas.ts","../../src/schemas/element-schemas.ts","../../src/schemas/table-style-schemas.ts","../../src/schemas/theme-schemas.ts","../../src/schemas/chart-schemas.ts","../../src/schemas/smartart-schemas.ts","../../src/schemas/template-schemas.ts","../../src/schemas/metadata-schemas.ts","../../src/schemas/section-schemas.ts","../../src/schemas/export-schemas.ts","../../src/schemas/hyperlink-schemas.ts","../../src/schemas/geometry-schemas.ts","../../src/schemas/lock-schemas.ts","../../src/schemas/validation-schemas.ts","../../src/schemas/presentation-schemas.ts","../../src/schemas/layout-schemas.ts"],"mappings":";;cAEa,gBAAc,EAAA;;;GAGzB,EAAA,KAAA;cAEW,gBAAc,EAAA;;;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;;;cClBW,kBAAgB,EAAA;;GAE3B,EAAA,KAAA;cAEW,mBAAiB,EAAA;;;;;GAK5B,EAAA,KAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptx-viewer-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "PowerPoint PPTX tools and MCP server: manipulate, convert, and collaborate on .pptx files from AI agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -70,16 +70,16 @@
|
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
73
|
-
"fast-xml-parser": "^5.10.
|
|
73
|
+
"fast-xml-parser": "^5.10.1",
|
|
74
74
|
"jszip": "^3.10.1",
|
|
75
75
|
"pptx-viewer-core": "^1.1.0",
|
|
76
76
|
"zod": "^4.4.3"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"tsdown": "^0.22.
|
|
79
|
+
"tsdown": "^0.22.9",
|
|
80
80
|
"tsup": "^8.5.1",
|
|
81
81
|
"typescript": "^7.0.2",
|
|
82
|
-
"vitest": "^4.1.
|
|
82
|
+
"vitest": "^4.1.10",
|
|
83
83
|
"yjs": "^13.6.31"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|