pptx-viewer-mcp 2.5.0 → 2.5.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 CHANGED
@@ -7,6 +7,25 @@ A release listed with no entries carried no Conventional Commit in this package'
7
7
  scope: scripts/release-plan.mjs re-releases a package whenever any of its files
8
8
  change, not only on conventional ones.
9
9
 
10
+ ## [2.5.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-mcp@2.5.1) - 2026-09-10
11
+
12
+ ### Bug Fixes
13
+
14
+ - Preserve rich table cells during row and column edits (by @Sudhansh6) ([e83c2eb](https://github.com/ChristopherVR/pptx-viewer/commit/e83c2ebe92b78a7d32ed1d90ebe6765573a2c148))
15
+
16
+ ## [2.5.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-mcp@2.5.0) - 2026-09-09
17
+
18
+ ### Features
19
+
20
+ - **core:** Edit embedded OLE content in place across all five bindings (by @ChristopherVR) ([3f51347](https://github.com/ChristopherVR/pptx-viewer/commit/3f513476e979cc2401cf0f20e5e000bc7af0a0ec))
21
+ - **core:** Edit legacy Word 97-2003 (.doc) OLE documents in place (by @ChristopherVR) ([cfad261](https://github.com/ChristopherVR/pptx-viewer/commit/cfad261b07d1ad5fb79b122fd8eeff29cfe3ab5e))
22
+
23
+ ### Dependencies
24
+
25
+ - **deps:** Bump the minor-and-patch group with 3 updates (by @dependabot[bot]) ([6e40989](https://github.com/ChristopherVR/pptx-viewer/commit/6e409896e58d8e60a6a94ae3c4d51c6b6a5e7108))
26
+ - **deps:** Merge dependabot #212 (by @ChristopherVR) ([a69fe7e](https://github.com/ChristopherVR/pptx-viewer/commit/a69fe7eaad513d06808570b31bf032f4310bafbd))
27
+ - **deps:** Update every dependency to its latest in-range version (by @ChristopherVR) ([1f242b7](https://github.com/ChristopherVR/pptx-viewer/commit/1f242b71b25a902f4ea817a45853c5f1a19db2c0))
28
+
10
29
  ## [2.4.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-mcp@2.4.1) - 2026-09-06
11
30
 
12
31
  ### Bug Fixes
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # pptx-viewer-mcp
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/pptx-viewer-mcp.svg)](https://www.npmjs.com/package/pptx-viewer-mcp)
4
- [![license](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
4
+ [![license](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](../../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 63 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.
6
+ Edit PowerPoint files from an AI agent. It ships a ready-to-run [MCP](https://modelcontextprotocol.io) server with 73 PowerPoint editing tools, including adding slides, replacing text, editing charts, and updating embedded objects. The same operations are available as plain functions you can call yourself, alongside 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 a dependency, so one install provides the complete editing stack.
7
7
 
8
8
  ![An AI agent calling validated MCP tools to edit and save a PowerPoint file](https://raw.githubusercontent.com/ChristopherVR/pptx-viewer/main/.github/assets/packages/mcp-tools.svg)
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 67 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.
34
+ This works in Claude Desktop, Claude Code, Cursor, and any MCP-compatible client. All 73 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 loading and saving 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
 
@@ -73,30 +73,37 @@ See [Use as a library](#use-as-a-library) below for the higher-level `executeToo
73
73
 
74
74
  | Entry point | Contents |
75
75
  | ------------------------- | ----------------------------------------------------------------------------------------------------- |
76
- | `pptx-viewer-mcp` | 67 tool functions, the `PptxHandler` engine, provider types, and the execution pipeline |
76
+ | `pptx-viewer-mcp` | Tool functions, the `PptxHandler` engine, provider types, and the execution pipeline |
77
77
  | `pptx-viewer-mcp/schemas` | Zod schemas for every tool input |
78
78
  | `pptx-viewer-mcp/codec` | `PptxCodec`, the Y.Doc to PPTX bytes codec |
79
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 | 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
- | Table style (4) | `setTableStyleSection` `createTableStyle` `deleteTableStyle` `assignTableStyle` |
89
- | Style (2) | `updateElementStyle` `runAccessibilityCheck` |
90
- | Content (3) | `findText` `replaceText` `manageComments` |
91
- | Chart (14) | `createChart` `updateChart` `addChartSeries` `removeChartSeries` `updateChartSeriesData` `listChartUserShapes` `addChartUserShape` `updateChartUserShape` `removeChartUserShape` `formatChartDataPoint` `formatChartDataLabel` `formatChartSeries` `setChartHelperLine` `setChartColorMapOverride` |
92
- | Theme (4) | `getThemeInfo` `applyThemePreset` `updateThemeColors` `updateThemeFonts` |
93
- | SmartArt (1) | `manageSmartArt` |
94
- | Template & layout (4) | `findPlaceholders` `applyTemplate` `getLayouts` `applyLayout` |
95
- | Metadata & properties (4) | `getMetadata` `updateMetadata` `getPresentationProperties` `updatePresentationProperties` |
96
- | Sections & hyperlinks (2) | `manageSections` `manageHyperlinks` |
97
- | Geometry & locking (2) | `replaceGeometry` `setElementLock` |
98
- | Validation (2) | `validatePresentation` `repairPresentation` |
99
- | Export & conversion (5) | `convertToMarkdown` `exportToSvg` `exportSlideSvg` `exportToJson` `importFromJson` |
83
+ | Group | Tools |
84
+ | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
85
+ | Slide (8) | `getSlide` `addSlide` `deleteSlides` `reorderSlides` `duplicateSlide` `updateSlideProperties` `setSlideTransition` `setCanvasSize` |
86
+ | Element (10) | `addElement` `updateElement` `renameElement` `deleteElements` `arrangeElements` `cloneElement` `setElementAnimation` `groupElements` `ungroupElements` `batchUpdateElements` |
87
+ | Table (2) | `updateTableCells` `manageTableStructure` |
88
+ | Table style (4) | `setTableStyleSection` `createTableStyle` `deleteTableStyle` `assignTableStyle` |
89
+ | Style (2) | `updateElementStyle` `runAccessibilityCheck` |
90
+ | Content (3) | `findText` `replaceText` `manageComments` |
91
+ | Chart (14) | `createChart` `updateChart` `addChartSeries` `removeChartSeries` `updateChartSeriesData` `listChartUserShapes` `addChartUserShape` `updateChartUserShape` `removeChartUserShape` `formatChartDataPoint` `formatChartDataLabel` `formatChartSeries` `setChartHelperLine` `setChartColorMapOverride` |
92
+ | Theme (4) | `getThemeInfo` `applyThemePreset` `updateThemeColors` `updateThemeFonts` |
93
+ | SmartArt (1) | `manageSmartArt` |
94
+ | Conversion (1) | `convertToMarkdown` |
95
+ | Template (2) | `findPlaceholders` `applyTemplate` |
96
+ | Metadata (2) | `getMetadata` `updateMetadata` |
97
+ | Sections (1) | `manageSections` |
98
+ | Export (2) | `exportToSvg` `exportSlideSvg` |
99
+ | JSON (2) | `exportToJson` `importFromJson` |
100
+ | Hyperlinks (1) | `manageHyperlinks` |
101
+ | Geometry (1) | `replaceGeometry` |
102
+ | Locking (1) | `setElementLock` |
103
+ | Validation (2) | `validatePresentation` `repairPresentation` |
104
+ | Presentation (2) | `getPresentationProperties` `updatePresentationProperties` |
105
+ | Layout (2) | `getLayouts` `applyLayout` |
106
+ | Embedded objects (6) | `getOleContent` `setOleSheetCell` `setOleDocumentParagraph` `setOleDeckSlideTitle` `replaceOleFile` `setOleObjectName` |
100
107
 
101
108
  ## Use as a library
102
109
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/execution.ts","../src/tools/slide-tools.ts","../src/tools/helpers.ts","../src/tools/element-tools.ts","../src/tools/table-tools.ts","../src/tools/table-style-tools.ts","../src/tools/style-tools.ts","../src/tools/content-tools.ts","../src/tools/conversion-tools.ts","../src/tools/theme-tools.ts","../src/tools/chart-tools.ts","../src/tools/chart-formatting-tools.ts","../src/tools/chart-user-shape-tools.ts","../src/tools/smartart-tools.ts","../src/tools/merge-tools.ts","../src/tools/template-tools.ts","../src/tools/metadata-tools.ts","../src/tools/section-tools.ts","../src/tools/export-tools.ts","../src/tools/json-tools.ts","../src/tools/hyperlink-tools.ts","../src/tools/geometry-tools.ts","../src/tools/lock-tools.ts","../src/tools/validation-tools.ts","../src/tools/presentation-tools.ts","../src/tools/layout-tools.ts","../src/tools/ole-tools.ts"],"mappings":";;;;;;;UAOiB;;EAEhB,UAAU;;EAEV,gBAAgB,i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,KAAK,aACL,QAAQ,8BACN;EAAa;;UA8BC;EAChB;EACA;EACA;EACA;EACA;EACA;;wBAGe,mBACf,KAAK,aACL,QAAQ,2BACN;EAAa;EAAoB;;UAmCnB;EAChB;EACA;;wBAGe,cACf,KAAK,aACL,QAAQ,sBACN;EAAa;EAAqB;;;;wBChSrB;wBAIA;;wBAKA,gBAAgB,IAAI,gBAAc;;wBAwGlC,iBAAiB,OAAO;;wBA0BxB,mBAAmB,oBAAoB;;;UCpHtC;EAChB;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;;UAGgB;EAChB;EACA;;wBAGe,WACf,KAAK,aACL,QAAQ,mBACN,WAAW;UAmKG;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;EAOA,iBAAiB;EACjB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;;EAEA;;wBAGe,cACf,KAAK,aACL,QAAQ,sBACN;EAAa;;UA6HC;EAChB;EACA;;EAEA;;wBAGe,cACf,KAAK,aACL,QAAQ,sBACN;EAAa;EAAmB;;UA4BlB;EAChB;EACA;;wBAGe,eACf,KAAK,aACL,QAAQ,uBACN;EAAa;;UA0BC;EAChB;EACA;EAEA;EACA;EAEA;EACA;;wBAGe,gBACf,KAAK,aACL,QAAQ,wBACN;EAAa;;UA6GC;EAChB;EACA;EACA;EACA;EACA;;UAGgB;EAChB;;wBAGe,aACf,KAAK,aACL,QAAQ,qBACN,WAAW;UA6CG;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;;wBAGe,oBACf,KAAK,aACL,QAAQ,4BACN;EAAa;;UAsDC;EAChB;EACA;;UAGgB;EAChB;;wBAGe,cACf,KAAK,aACL,QAAQ,sBACN,WAAW;UAmCG;EAChB;EACA;;UAGgB;EAChB;;wBAGe,gBACf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KAAK,aACL,QAAQ,gCACN,QAAQ,WAAW;UAcL;EAChB;EACA;EACA;;EAEA;EACA;;;;;;;;;wBAUqB,qBACrB,KAAK,aACL,QAAQ,6BACN,QAAQ,WAAW;UAmBL;EAChB;EACA;;EAEA;;;;;;;;wBASqB,kBACrB,KAAK,aACL,QAAQ,yBACN,QAAQ,WAAW;UAaL;EAChB;EACA;;EAEA;;EAEA;;;;;;;wBAQqB,gBACrB,KAAK,aACL,QAAQ,uBACN,QAAQ,WAAW"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/execution.ts","../src/tools/slide-tools.ts","../src/tools/helpers.ts","../src/tools/element-tools.ts","../src/tools/table-tools.ts","../src/tools/table-style-tools.ts","../src/tools/style-tools.ts","../src/tools/content-tools.ts","../src/tools/conversion-tools.ts","../src/tools/theme-tools.ts","../src/tools/chart-tools.ts","../src/tools/chart-formatting-tools.ts","../src/tools/chart-user-shape-tools.ts","../src/tools/smartart-tools.ts","../src/tools/merge-tools.ts","../src/tools/template-tools.ts","../src/tools/metadata-tools.ts","../src/tools/section-tools.ts","../src/tools/export-tools.ts","../src/tools/json-tools.ts","../src/tools/hyperlink-tools.ts","../src/tools/geometry-tools.ts","../src/tools/lock-tools.ts","../src/tools/validation-tools.ts","../src/tools/presentation-tools.ts","../src/tools/layout-tools.ts","../src/tools/ole-tools.ts"],"mappings":";;;;;;;UAOiB;;EAEhB,UAAU;;EAEV,gBAAgB,iBAAiB,QAAQ;;EAEzC,gBAAgB,iBAAiB,QAAQ;;;;;;;;;;;UAYzB;;EAEhB;;EAEA;;;;;;UAOgB,WAAW;;EAE3B,UAAU;;EAEV,QAAQ;;EAER;;;;;;EAMA,cAAc;;;;;;UAWE;;EAEhB,QAAQ;IAAqB,MAAM;;;EAEnC,SAAS;IACR,QAAQ,MAAM,KAAM,OAAO,YAAY,kBAAkB;IACzD,UAAU,MAAM,MAAO,QAAQ;;;EAGhC,YAAY;;;;;;;UAQI;EAChB,SAAS,eA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;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;;UAGgB;EAChB;EACA;;wBAGe,WACf,KAAK,aACL,QAAQ,mBACN,WAAW;UAmKG;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;EAOA,iBAAiB;EACjB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;;EAEA;;wBAGe,cACf,KAAK,aACL,QAAQ,sBACN;EAAa;;UA6HC;EAChB;EACA;;EAEA;;wBAGe,cACf,KAAK,aACL,QAAQ,sBACN;EAAa;EAAmB;;UA4BlB;EAChB;EACA;;wBAGe,eACf,KAAK,aACL,QAAQ,uBACN;EAAa;;UA0BC;EAChB;EACA;EAEA;EACA;EAEA;EACA;;wBAGe,gBACf,KAAK,aACL,QAAQ,wBACN;EAAa;;UA6GC;EAChB;EACA;EACA;EACA;EACA;;UAGgB;EAChB;;wBAGe,aACf,KAAK,aACL,QAAQ,qBACN,WAAW;UA6CG;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;;wBAGe,oBACf,KAAK,aACL,QAAQ,4BACN;EAAa;;UAsDC;EAChB;EACA;;UAGgB;EAChB;;wBAGe,cACf,KAAK,aACL,QAAQ,sBACN,WAAW;UAmCG;EAChB;EACA;;UAGgB;EAChB;;wBAGe,gBACf,KAAK,aACL,QAAQ,wBACN,WAAW;UA6CG;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;wBAGe,oBACf,KAAK,aACL,QAAQ,4BACN;EAAa;;;;UC9zBC;EAChB;EACA;EACA,OAAO;IAAQ;IAAa;IAAa;;;wBAG1B,iBACf,KAAK,aACL,QAAQ,yBACN;EAAa;;UA6CC;EAChB;EACA;EACA;EACA;EACA;EACA;;wBAGe,qBACf,KAAK,aACL,QAAQ,6BACN;EAAa;EAAkB;;;;UCpBjB;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@@ -1201,8 +1201,6 @@ function batchUpdateElements(ctx, params) {
1201
1201
  result: { updatedCount: count }
1202
1202
  };
1203
1203
  }
1204
-
1205
- // src/tools/table-tools.ts
1206
1204
  function updateTableCells(ctx, params) {
1207
1205
  const err = validateSlideIndex(params.slideIndex, ctx.pptxData.slides.length);
1208
1206
  if (err) {
@@ -1259,6 +1257,8 @@ function manageTableStructure(ctx, params) {
1259
1257
  throw new Error(`Table '${params.elementId}' has no tableData.`);
1260
1258
  }
1261
1259
  const { rows, columnWidths } = tbl.tableData;
1260
+ const source = { ...tbl, tableData: structuredClone(tbl.tableData) };
1261
+ let edit;
1262
1262
  const colCount = columnWidths.length;
1263
1263
  const rowCount = rows.length;
1264
1264
  switch (params.action) {
@@ -1271,6 +1271,7 @@ function manageTableStructure(ctx, params) {
1271
1271
  }))
1272
1272
  };
1273
1273
  rows.splice(pos, 0, newRow);
1274
+ edit = { axis: "row", action: "insert", index: pos };
1274
1275
  break;
1275
1276
  }
1276
1277
  case "deleteRow": {
@@ -1282,6 +1283,7 @@ function manageTableStructure(ctx, params) {
1282
1283
  throw new Error(`Row index ${ref} out of range (0\u2013${rowCount - 1}).`);
1283
1284
  }
1284
1285
  rows.splice(ref, 1);
1286
+ edit = { axis: "row", action: "delete", index: ref };
1285
1287
  break;
1286
1288
  }
1287
1289
  case "insertColumn": {
@@ -1292,6 +1294,7 @@ function manageTableStructure(ctx, params) {
1292
1294
  columnWidths[i] *= scaleFactor;
1293
1295
  }
1294
1296
  columnWidths.splice(pos, 0, newWidth);
1297
+ edit = { axis: "column", action: "insert", index: pos };
1295
1298
  for (let r = 0; r < rows.length; r++) {
1296
1299
  rows[r].cells.splice(pos, 0, {
1297
1300
  text: params.cellTexts?.[r] ?? ""
@@ -1309,6 +1312,7 @@ function manageTableStructure(ctx, params) {
1309
1312
  }
1310
1313
  const removedWidth = columnWidths[ref];
1311
1314
  columnWidths.splice(ref, 1);
1315
+ edit = { axis: "column", action: "delete", index: ref };
1312
1316
  const remaining = columnWidths.length;
1313
1317
  if (remaining > 0) {
1314
1318
  const extra = removedWidth / remaining;
@@ -1325,6 +1329,10 @@ function manageTableStructure(ctx, params) {
1325
1329
  throw new Error(`Unknown action: ${String(params.action)}`);
1326
1330
  }
1327
1331
  }
1332
+ const rawXml = pptxViewerCore.rebuildTableStructureInRawXml(source, tbl.tableData, edit);
1333
+ if (rawXml) {
1334
+ tbl.rawXml = rawXml;
1335
+ }
1328
1336
  return {
1329
1337
  pptxData: ctx.pptxData,
1330
1338
  dirty: true,
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { PptxHandler, hasTextProperties, resolveDisplayedChartTypeName, resolveThemeColorRef, cloneElement as cloneElement$1, isTemplateElementId, makeStoreAwareId, reassignDescendantIds, groupElements as groupElements$1, ungroupElements as ungroupElements$1, TABLE_STYLE_PART_SEQUENCE, normalizeTableStyleGuid, createTableStyleEntry, addTableStyleToMap, deleteTableStyleFromMap, PptxMarkdownConverter, ThemePresets, getThemePreset, setChartType, setChartTitle, setChartGrouping, setChartLegend, setChartDataLabels, setChartAxis, setChartCategories, addChartSeries, removeChartSeries, updateChartSeriesValues, ChartBuilder, setChartDataPointStyle, setChartDataPointExplosion, setChartDataPointMarker, setChartDataPointLabel, setChartSeriesMarker, setChartSeriesTrendline, setChartSeriesErrorBars, setChartHelperLine, setChartColorMapOverride, listChartUserShapes, addChartUserShape, updateChartUserShape, removeChartUserShape, decomposeSmartArt, demoteSmartArtNode, promoteSmartArtNode, reorderSmartArtNode, updateSmartArtNodeText, removeSmartArtNode, addSmartArtNode, mergePresentation, diffPresentations, findPlaceholders, applyTemplate, getSectionForSlide, moveSlidesToSection, reorderSections, removeSection, addSection, SvgExporter, buildPptxJsonDocument, deserializePptxFromJson, applyImportedPptxData, replaceWithCustomGeometry, replaceShapeGeometry, setElementLocked, validatePptx, repairPptx, findLayoutByName, findLayoutByType, resolveOleEditorKindFromPayload, getOleNestedDeckDetail, getOleDocumentParagraphs, getOleSheetGrid, applyOleSheetCellEdit, applyOleDocumentParagraphEdit, applyOleNestedDeckElementTextEdit, setOleObjectName, parseDataUrlToBytes, replaceOleFile } from 'pptx-viewer-core';
1
+ import { PptxHandler, hasTextProperties, resolveDisplayedChartTypeName, resolveThemeColorRef, cloneElement as cloneElement$1, isTemplateElementId, makeStoreAwareId, reassignDescendantIds, groupElements as groupElements$1, ungroupElements as ungroupElements$1, rebuildTableStructureInRawXml, TABLE_STYLE_PART_SEQUENCE, normalizeTableStyleGuid, createTableStyleEntry, addTableStyleToMap, deleteTableStyleFromMap, PptxMarkdownConverter, ThemePresets, getThemePreset, setChartType, setChartTitle, setChartGrouping, setChartLegend, setChartDataLabels, setChartAxis, setChartCategories, addChartSeries, removeChartSeries, updateChartSeriesValues, ChartBuilder, setChartDataPointStyle, setChartDataPointExplosion, setChartDataPointMarker, setChartDataPointLabel, setChartSeriesMarker, setChartSeriesTrendline, setChartSeriesErrorBars, setChartHelperLine, setChartColorMapOverride, listChartUserShapes, addChartUserShape, updateChartUserShape, removeChartUserShape, decomposeSmartArt, demoteSmartArtNode, promoteSmartArtNode, reorderSmartArtNode, updateSmartArtNodeText, removeSmartArtNode, addSmartArtNode, mergePresentation, diffPresentations, findPlaceholders, applyTemplate, getSectionForSlide, moveSlidesToSection, reorderSections, removeSection, addSection, SvgExporter, buildPptxJsonDocument, deserializePptxFromJson, applyImportedPptxData, replaceWithCustomGeometry, replaceShapeGeometry, setElementLocked, validatePptx, repairPptx, findLayoutByName, findLayoutByType, resolveOleEditorKindFromPayload, getOleNestedDeckDetail, getOleDocumentParagraphs, getOleSheetGrid, applyOleSheetCellEdit, applyOleDocumentParagraphEdit, applyOleNestedDeckElementTextEdit, setOleObjectName, parseDataUrlToBytes, replaceOleFile } from 'pptx-viewer-core';
2
2
  export { PptxHandler } from 'pptx-viewer-core';
3
3
 
4
4
  // src/execution.ts
@@ -1200,8 +1200,6 @@ function batchUpdateElements(ctx, params) {
1200
1200
  result: { updatedCount: count }
1201
1201
  };
1202
1202
  }
1203
-
1204
- // src/tools/table-tools.ts
1205
1203
  function updateTableCells(ctx, params) {
1206
1204
  const err = validateSlideIndex(params.slideIndex, ctx.pptxData.slides.length);
1207
1205
  if (err) {
@@ -1258,6 +1256,8 @@ function manageTableStructure(ctx, params) {
1258
1256
  throw new Error(`Table '${params.elementId}' has no tableData.`);
1259
1257
  }
1260
1258
  const { rows, columnWidths } = tbl.tableData;
1259
+ const source = { ...tbl, tableData: structuredClone(tbl.tableData) };
1260
+ let edit;
1261
1261
  const colCount = columnWidths.length;
1262
1262
  const rowCount = rows.length;
1263
1263
  switch (params.action) {
@@ -1270,6 +1270,7 @@ function manageTableStructure(ctx, params) {
1270
1270
  }))
1271
1271
  };
1272
1272
  rows.splice(pos, 0, newRow);
1273
+ edit = { axis: "row", action: "insert", index: pos };
1273
1274
  break;
1274
1275
  }
1275
1276
  case "deleteRow": {
@@ -1281,6 +1282,7 @@ function manageTableStructure(ctx, params) {
1281
1282
  throw new Error(`Row index ${ref} out of range (0\u2013${rowCount - 1}).`);
1282
1283
  }
1283
1284
  rows.splice(ref, 1);
1285
+ edit = { axis: "row", action: "delete", index: ref };
1284
1286
  break;
1285
1287
  }
1286
1288
  case "insertColumn": {
@@ -1291,6 +1293,7 @@ function manageTableStructure(ctx, params) {
1291
1293
  columnWidths[i] *= scaleFactor;
1292
1294
  }
1293
1295
  columnWidths.splice(pos, 0, newWidth);
1296
+ edit = { axis: "column", action: "insert", index: pos };
1294
1297
  for (let r = 0; r < rows.length; r++) {
1295
1298
  rows[r].cells.splice(pos, 0, {
1296
1299
  text: params.cellTexts?.[r] ?? ""
@@ -1308,6 +1311,7 @@ function manageTableStructure(ctx, params) {
1308
1311
  }
1309
1312
  const removedWidth = columnWidths[ref];
1310
1313
  columnWidths.splice(ref, 1);
1314
+ edit = { axis: "column", action: "delete", index: ref };
1311
1315
  const remaining = columnWidths.length;
1312
1316
  if (remaining > 0) {
1313
1317
  const extra = removedWidth / remaining;
@@ -1324,6 +1328,10 @@ function manageTableStructure(ctx, params) {
1324
1328
  throw new Error(`Unknown action: ${String(params.action)}`);
1325
1329
  }
1326
1330
  }
1331
+ const rawXml = rebuildTableStructureInRawXml(source, tbl.tableData, edit);
1332
+ if (rawXml) {
1333
+ tbl.rawXml = rawXml;
1334
+ }
1327
1335
  return {
1328
1336
  pptxData: ctx.pptxData,
1329
1337
  dirty: true,
package/dist/mcp/index.js CHANGED
@@ -3617,8 +3617,6 @@ function assignTableStyle(ctx, params) {
3617
3617
  result: { elementId: params.elementId, styleId: normalizedId }
3618
3618
  };
3619
3619
  }
3620
-
3621
- // src/tools/table-tools.ts
3622
3620
  function updateTableCells(ctx, params) {
3623
3621
  const err = validateSlideIndex(params.slideIndex, ctx.pptxData.slides.length);
3624
3622
  if (err) {
@@ -3675,6 +3673,8 @@ function manageTableStructure(ctx, params) {
3675
3673
  throw new Error(`Table '${params.elementId}' has no tableData.`);
3676
3674
  }
3677
3675
  const { rows, columnWidths } = tbl.tableData;
3676
+ const source = { ...tbl, tableData: structuredClone(tbl.tableData) };
3677
+ let edit;
3678
3678
  const colCount = columnWidths.length;
3679
3679
  const rowCount = rows.length;
3680
3680
  switch (params.action) {
@@ -3687,6 +3687,7 @@ function manageTableStructure(ctx, params) {
3687
3687
  }))
3688
3688
  };
3689
3689
  rows.splice(pos, 0, newRow);
3690
+ edit = { axis: "row", action: "insert", index: pos };
3690
3691
  break;
3691
3692
  }
3692
3693
  case "deleteRow": {
@@ -3698,6 +3699,7 @@ function manageTableStructure(ctx, params) {
3698
3699
  throw new Error(`Row index ${ref} out of range (0\u2013${rowCount - 1}).`);
3699
3700
  }
3700
3701
  rows.splice(ref, 1);
3702
+ edit = { axis: "row", action: "delete", index: ref };
3701
3703
  break;
3702
3704
  }
3703
3705
  case "insertColumn": {
@@ -3708,6 +3710,7 @@ function manageTableStructure(ctx, params) {
3708
3710
  columnWidths[i] *= scaleFactor;
3709
3711
  }
3710
3712
  columnWidths.splice(pos, 0, newWidth);
3713
+ edit = { axis: "column", action: "insert", index: pos };
3711
3714
  for (let r = 0; r < rows.length; r++) {
3712
3715
  rows[r].cells.splice(pos, 0, {
3713
3716
  text: params.cellTexts?.[r] ?? ""
@@ -3725,6 +3728,7 @@ function manageTableStructure(ctx, params) {
3725
3728
  }
3726
3729
  const removedWidth = columnWidths[ref];
3727
3730
  columnWidths.splice(ref, 1);
3731
+ edit = { axis: "column", action: "delete", index: ref };
3728
3732
  const remaining = columnWidths.length;
3729
3733
  if (remaining > 0) {
3730
3734
  const extra = removedWidth / remaining;
@@ -3741,6 +3745,10 @@ function manageTableStructure(ctx, params) {
3741
3745
  throw new Error(`Unknown action: ${String(params.action)}`);
3742
3746
  }
3743
3747
  }
3748
+ const rawXml = pptxViewerCore.rebuildTableStructureInRawXml(source, tbl.tableData, edit);
3749
+ if (rawXml) {
3750
+ tbl.rawXml = rawXml;
3751
+ }
3744
3752
  return {
3745
3753
  pptxData: ctx.pptxData,
3746
3754
  dirty: true,
@@ -2,7 +2,7 @@
2
2
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
3
3
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
4
4
  import { z } from 'zod';
5
- import { validatePptx, repairPptx, PptxHandler, hasTextProperties, resolveThemeColorRef, cloneElement as cloneElement$1, isTemplateElementId, makeStoreAwareId, reassignDescendantIds, groupElements as groupElements$1, ungroupElements as ungroupElements$1, TABLE_STYLE_PART_SEQUENCE, normalizeTableStyleGuid, createTableStyleEntry, addTableStyleToMap, deleteTableStyleFromMap, PptxMarkdownConverter, ThemePresets, getThemePreset, setChartType, setChartTitle, setChartGrouping, setChartLegend, setChartDataLabels, setChartAxis, setChartCategories, addChartSeries, removeChartSeries, updateChartSeriesValues, ChartBuilder, setChartDataPointStyle, setChartDataPointExplosion, setChartDataPointMarker, setChartDataPointLabel, setChartSeriesMarker, setChartSeriesTrendline, setChartSeriesErrorBars, setChartHelperLine, setChartColorMapOverride, listChartUserShapes, addChartUserShape, updateChartUserShape, removeChartUserShape, decomposeSmartArt, demoteSmartArtNode, promoteSmartArtNode, reorderSmartArtNode, updateSmartArtNodeText, removeSmartArtNode, addSmartArtNode, findPlaceholders, applyTemplate, getSectionForSlide, moveSlidesToSection, reorderSections, removeSection, addSection, SvgExporter, buildPptxJsonDocument, deserializePptxFromJson, applyImportedPptxData, replaceWithCustomGeometry, replaceShapeGeometry, setElementLocked, findLayoutByName, findLayoutByType, resolveOleEditorKindFromPayload, getOleNestedDeckDetail, getOleDocumentParagraphs, getOleSheetGrid, applyOleSheetCellEdit, applyOleDocumentParagraphEdit, applyOleNestedDeckElementTextEdit, parseDataUrlToBytes, replaceOleFile, setOleObjectName, resolveDisplayedChartTypeName } from 'pptx-viewer-core';
5
+ import { validatePptx, repairPptx, PptxHandler, hasTextProperties, resolveThemeColorRef, cloneElement as cloneElement$1, isTemplateElementId, makeStoreAwareId, reassignDescendantIds, groupElements as groupElements$1, ungroupElements as ungroupElements$1, rebuildTableStructureInRawXml, TABLE_STYLE_PART_SEQUENCE, normalizeTableStyleGuid, createTableStyleEntry, addTableStyleToMap, deleteTableStyleFromMap, PptxMarkdownConverter, ThemePresets, getThemePreset, setChartType, setChartTitle, setChartGrouping, setChartLegend, setChartDataLabels, setChartAxis, setChartCategories, addChartSeries, removeChartSeries, updateChartSeriesValues, ChartBuilder, setChartDataPointStyle, setChartDataPointExplosion, setChartDataPointMarker, setChartDataPointLabel, setChartSeriesMarker, setChartSeriesTrendline, setChartSeriesErrorBars, setChartHelperLine, setChartColorMapOverride, listChartUserShapes, addChartUserShape, updateChartUserShape, removeChartUserShape, decomposeSmartArt, demoteSmartArtNode, promoteSmartArtNode, reorderSmartArtNode, updateSmartArtNodeText, removeSmartArtNode, addSmartArtNode, findPlaceholders, applyTemplate, getSectionForSlide, moveSlidesToSection, reorderSections, removeSection, addSection, SvgExporter, buildPptxJsonDocument, deserializePptxFromJson, applyImportedPptxData, replaceWithCustomGeometry, replaceShapeGeometry, setElementLocked, findLayoutByName, findLayoutByType, resolveOleEditorKindFromPayload, getOleNestedDeckDetail, getOleDocumentParagraphs, getOleSheetGrid, applyOleSheetCellEdit, applyOleDocumentParagraphEdit, applyOleNestedDeckElementTextEdit, parseDataUrlToBytes, replaceOleFile, setOleObjectName, resolveDisplayedChartTypeName } from 'pptx-viewer-core';
6
6
  import { writeFile, readFile } from 'fs/promises';
7
7
  import { resolve, isAbsolute, sep } from 'path';
8
8
 
@@ -3615,8 +3615,6 @@ function assignTableStyle(ctx, params) {
3615
3615
  result: { elementId: params.elementId, styleId: normalizedId }
3616
3616
  };
3617
3617
  }
3618
-
3619
- // src/tools/table-tools.ts
3620
3618
  function updateTableCells(ctx, params) {
3621
3619
  const err = validateSlideIndex(params.slideIndex, ctx.pptxData.slides.length);
3622
3620
  if (err) {
@@ -3673,6 +3671,8 @@ function manageTableStructure(ctx, params) {
3673
3671
  throw new Error(`Table '${params.elementId}' has no tableData.`);
3674
3672
  }
3675
3673
  const { rows, columnWidths } = tbl.tableData;
3674
+ const source = { ...tbl, tableData: structuredClone(tbl.tableData) };
3675
+ let edit;
3676
3676
  const colCount = columnWidths.length;
3677
3677
  const rowCount = rows.length;
3678
3678
  switch (params.action) {
@@ -3685,6 +3685,7 @@ function manageTableStructure(ctx, params) {
3685
3685
  }))
3686
3686
  };
3687
3687
  rows.splice(pos, 0, newRow);
3688
+ edit = { axis: "row", action: "insert", index: pos };
3688
3689
  break;
3689
3690
  }
3690
3691
  case "deleteRow": {
@@ -3696,6 +3697,7 @@ function manageTableStructure(ctx, params) {
3696
3697
  throw new Error(`Row index ${ref} out of range (0\u2013${rowCount - 1}).`);
3697
3698
  }
3698
3699
  rows.splice(ref, 1);
3700
+ edit = { axis: "row", action: "delete", index: ref };
3699
3701
  break;
3700
3702
  }
3701
3703
  case "insertColumn": {
@@ -3706,6 +3708,7 @@ function manageTableStructure(ctx, params) {
3706
3708
  columnWidths[i] *= scaleFactor;
3707
3709
  }
3708
3710
  columnWidths.splice(pos, 0, newWidth);
3711
+ edit = { axis: "column", action: "insert", index: pos };
3709
3712
  for (let r = 0; r < rows.length; r++) {
3710
3713
  rows[r].cells.splice(pos, 0, {
3711
3714
  text: params.cellTexts?.[r] ?? ""
@@ -3723,6 +3726,7 @@ function manageTableStructure(ctx, params) {
3723
3726
  }
3724
3727
  const removedWidth = columnWidths[ref];
3725
3728
  columnWidths.splice(ref, 1);
3729
+ edit = { axis: "column", action: "delete", index: ref };
3726
3730
  const remaining = columnWidths.length;
3727
3731
  if (remaining > 0) {
3728
3732
  const extra = removedWidth / remaining;
@@ -3739,6 +3743,10 @@ function manageTableStructure(ctx, params) {
3739
3743
  throw new Error(`Unknown action: ${String(params.action)}`);
3740
3744
  }
3741
3745
  }
3746
+ const rawXml = rebuildTableStructureInRawXml(source, tbl.tableData, edit);
3747
+ if (rawXml) {
3748
+ tbl.rawXml = rawXml;
3749
+ }
3742
3750
  return {
3743
3751
  pptxData: ctx.pptxData,
3744
3752
  dirty: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-viewer-mcp",
3
- "version": "2.5.0",
3
+ "version": "2.5.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",
@@ -72,7 +72,7 @@
72
72
  "@modelcontextprotocol/sdk": "^1.30.0",
73
73
  "fast-xml-parser": "^5.11.1",
74
74
  "jszip": "^3.10.2",
75
- "pptx-viewer-core": "^3.8.0",
75
+ "pptx-viewer-core": "^3.15.0",
76
76
  "zod": ">=4.4.3 <4.5.3"
77
77
  },
78
78
  "devDependencies": {
@@ -80,7 +80,7 @@
80
80
  "tsdown": "^0.23.0",
81
81
  "tsup": "^8.5.1",
82
82
  "typescript": "^7.0.2",
83
- "vitest": "^4.1.11",
83
+ "vitest": "^5.0.0",
84
84
  "yjs": "^13.6.32"
85
85
  },
86
86
  "peerDependencies": {