pptx-viewer-mcp 2.4.1 → 2.5.0
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 +6 -0
- package/dist/codec/index.d.ts +7 -7
- package/dist/codec/index.d.ts.map +1 -1
- package/dist/index.d.ts +174 -79
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +129 -0
- package/dist/index.mjs +125 -2
- package/dist/mcp/index.js +250 -0
- package/dist/mcp/index.mjs +251 -1
- package/dist/schemas/index.d.ts +115 -73
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +49 -0
- package/dist/schemas/index.mjs +44 -1
- package/package.json +8 -7
package/dist/schemas/index.js
CHANGED
|
@@ -876,6 +876,49 @@ var ApplyLayoutSchema = zod.z.object({
|
|
|
876
876
|
layoutName: zod.z.string().optional().describe("Layout name to apply"),
|
|
877
877
|
layoutType: zod.z.string().optional().describe("Layout type to apply (alternative to name)")
|
|
878
878
|
});
|
|
879
|
+
var GetOleContentSchema = zod.z.object({
|
|
880
|
+
filePath: zod.z.string().describe("Path to the PPTX file"),
|
|
881
|
+
slideIndex: zod.z.number().int().min(0).describe("Zero-based slide index"),
|
|
882
|
+
elementId: zod.z.string().describe("OLE element ID")
|
|
883
|
+
});
|
|
884
|
+
var SetOleSheetCellSchema = zod.z.object({
|
|
885
|
+
filePath: zod.z.string().describe("Path to the PPTX file"),
|
|
886
|
+
slideIndex: zod.z.number().int().min(0).describe("Zero-based slide index"),
|
|
887
|
+
elementId: zod.z.string().describe("OLE element ID (Excel payload: .xlsx or .xls)"),
|
|
888
|
+
row: zod.z.number().int().min(0).describe("Zero-based row index on the first worksheet"),
|
|
889
|
+
col: zod.z.number().int().min(0).describe("Zero-based column index on the first worksheet"),
|
|
890
|
+
value: zod.z.string().describe("New cell value")
|
|
891
|
+
});
|
|
892
|
+
var SetOleDocumentParagraphSchema = zod.z.object({
|
|
893
|
+
filePath: zod.z.string().describe("Path to the PPTX file"),
|
|
894
|
+
slideIndex: zod.z.number().int().min(0).describe("Zero-based slide index"),
|
|
895
|
+
elementId: zod.z.string().describe("OLE element ID (Word payload: .docx)"),
|
|
896
|
+
paragraphIndex: zod.z.number().int().min(0).describe("Zero-based paragraph index"),
|
|
897
|
+
text: zod.z.string().describe("New paragraph text")
|
|
898
|
+
});
|
|
899
|
+
var SetOleDeckSlideTitleSchema = zod.z.object({
|
|
900
|
+
filePath: zod.z.string().describe("Path to the PPTX file"),
|
|
901
|
+
slideIndex: zod.z.number().int().min(0).describe("Zero-based slide index"),
|
|
902
|
+
elementId: zod.z.string().describe("OLE element ID (nested-deck payload: .pptx)"),
|
|
903
|
+
deckSlideIndex: zod.z.number().int().min(0).describe("Zero-based slide index within the nested deck"),
|
|
904
|
+
deckElementId: zod.z.string().describe(
|
|
905
|
+
"ID of the text-bearing shape to edit within the nested slide, from ole_get_content's deckSlides[n].elements[i].elementId"
|
|
906
|
+
),
|
|
907
|
+
title: zod.z.string().describe("New text for the chosen shape")
|
|
908
|
+
});
|
|
909
|
+
var ReplaceOleFileSchema = zod.z.object({
|
|
910
|
+
filePath: zod.z.string().describe("Path to the PPTX file"),
|
|
911
|
+
slideIndex: zod.z.number().int().min(0).describe("Zero-based slide index"),
|
|
912
|
+
elementId: zod.z.string().describe("OLE element ID"),
|
|
913
|
+
fileData: zod.z.string().describe('New payload as a base64 data URL (e.g. "data:application/pdf;base64,...")'),
|
|
914
|
+
fileName: zod.z.string().optional().describe("Optional new file name (also updates the resolved MIME type)")
|
|
915
|
+
});
|
|
916
|
+
var SetOleObjectNameSchema = zod.z.object({
|
|
917
|
+
filePath: zod.z.string().describe("Path to the PPTX file"),
|
|
918
|
+
slideIndex: zod.z.number().int().min(0).describe("Zero-based slide index"),
|
|
919
|
+
elementId: zod.z.string().describe("OLE element ID"),
|
|
920
|
+
name: zod.z.string().describe("New Object Name (p:oleObj/@name); blank/whitespace clears it")
|
|
921
|
+
});
|
|
879
922
|
|
|
880
923
|
exports.AccessibilityCheckSchema = AccessibilityCheckSchema;
|
|
881
924
|
exports.AddChartSeriesSchema = AddChartSeriesSchema;
|
|
@@ -906,6 +949,7 @@ exports.FormatChartDataPointSchema = FormatChartDataPointSchema;
|
|
|
906
949
|
exports.FormatChartSeriesSchema = FormatChartSeriesSchema;
|
|
907
950
|
exports.GetLayoutsSchema = GetLayoutsSchema;
|
|
908
951
|
exports.GetMetadataSchema = GetMetadataSchema;
|
|
952
|
+
exports.GetOleContentSchema = GetOleContentSchema;
|
|
909
953
|
exports.GetPresentationPropertiesSchema = GetPresentationPropertiesSchema;
|
|
910
954
|
exports.GetSlideSchema = GetSlideSchema;
|
|
911
955
|
exports.GetThemeInfoSchema = GetThemeInfoSchema;
|
|
@@ -923,12 +967,17 @@ exports.RenameElementSchema = RenameElementSchema;
|
|
|
923
967
|
exports.ReorderSlidesSchema = ReorderSlidesSchema;
|
|
924
968
|
exports.RepairPresentationSchema = RepairPresentationSchema;
|
|
925
969
|
exports.ReplaceGeometrySchema = ReplaceGeometrySchema;
|
|
970
|
+
exports.ReplaceOleFileSchema = ReplaceOleFileSchema;
|
|
926
971
|
exports.ReplaceTextSchema = ReplaceTextSchema;
|
|
927
972
|
exports.SetCanvasSizeSchema = SetCanvasSizeSchema;
|
|
928
973
|
exports.SetChartColorMapOverrideSchema = SetChartColorMapOverrideSchema;
|
|
929
974
|
exports.SetChartHelperLineSchema = SetChartHelperLineSchema;
|
|
930
975
|
exports.SetElementAnimationSchema = SetElementAnimationSchema;
|
|
931
976
|
exports.SetElementLockSchema = SetElementLockSchema;
|
|
977
|
+
exports.SetOleDeckSlideTitleSchema = SetOleDeckSlideTitleSchema;
|
|
978
|
+
exports.SetOleDocumentParagraphSchema = SetOleDocumentParagraphSchema;
|
|
979
|
+
exports.SetOleObjectNameSchema = SetOleObjectNameSchema;
|
|
980
|
+
exports.SetOleSheetCellSchema = SetOleSheetCellSchema;
|
|
932
981
|
exports.SetSlideTransitionSchema = SetSlideTransitionSchema;
|
|
933
982
|
exports.SetTableStyleSectionSchema = SetTableStyleSectionSchema;
|
|
934
983
|
exports.TABLE_STYLE_SECTIONS = TABLE_STYLE_SECTIONS;
|
package/dist/schemas/index.mjs
CHANGED
|
@@ -874,5 +874,48 @@ var ApplyLayoutSchema = z.object({
|
|
|
874
874
|
layoutName: z.string().optional().describe("Layout name to apply"),
|
|
875
875
|
layoutType: z.string().optional().describe("Layout type to apply (alternative to name)")
|
|
876
876
|
});
|
|
877
|
+
var GetOleContentSchema = z.object({
|
|
878
|
+
filePath: z.string().describe("Path to the PPTX file"),
|
|
879
|
+
slideIndex: z.number().int().min(0).describe("Zero-based slide index"),
|
|
880
|
+
elementId: z.string().describe("OLE element ID")
|
|
881
|
+
});
|
|
882
|
+
var SetOleSheetCellSchema = z.object({
|
|
883
|
+
filePath: z.string().describe("Path to the PPTX file"),
|
|
884
|
+
slideIndex: z.number().int().min(0).describe("Zero-based slide index"),
|
|
885
|
+
elementId: z.string().describe("OLE element ID (Excel payload: .xlsx or .xls)"),
|
|
886
|
+
row: z.number().int().min(0).describe("Zero-based row index on the first worksheet"),
|
|
887
|
+
col: z.number().int().min(0).describe("Zero-based column index on the first worksheet"),
|
|
888
|
+
value: z.string().describe("New cell value")
|
|
889
|
+
});
|
|
890
|
+
var SetOleDocumentParagraphSchema = z.object({
|
|
891
|
+
filePath: z.string().describe("Path to the PPTX file"),
|
|
892
|
+
slideIndex: z.number().int().min(0).describe("Zero-based slide index"),
|
|
893
|
+
elementId: z.string().describe("OLE element ID (Word payload: .docx)"),
|
|
894
|
+
paragraphIndex: z.number().int().min(0).describe("Zero-based paragraph index"),
|
|
895
|
+
text: z.string().describe("New paragraph text")
|
|
896
|
+
});
|
|
897
|
+
var SetOleDeckSlideTitleSchema = z.object({
|
|
898
|
+
filePath: z.string().describe("Path to the PPTX file"),
|
|
899
|
+
slideIndex: z.number().int().min(0).describe("Zero-based slide index"),
|
|
900
|
+
elementId: z.string().describe("OLE element ID (nested-deck payload: .pptx)"),
|
|
901
|
+
deckSlideIndex: z.number().int().min(0).describe("Zero-based slide index within the nested deck"),
|
|
902
|
+
deckElementId: z.string().describe(
|
|
903
|
+
"ID of the text-bearing shape to edit within the nested slide, from ole_get_content's deckSlides[n].elements[i].elementId"
|
|
904
|
+
),
|
|
905
|
+
title: z.string().describe("New text for the chosen shape")
|
|
906
|
+
});
|
|
907
|
+
var ReplaceOleFileSchema = z.object({
|
|
908
|
+
filePath: z.string().describe("Path to the PPTX file"),
|
|
909
|
+
slideIndex: z.number().int().min(0).describe("Zero-based slide index"),
|
|
910
|
+
elementId: z.string().describe("OLE element ID"),
|
|
911
|
+
fileData: z.string().describe('New payload as a base64 data URL (e.g. "data:application/pdf;base64,...")'),
|
|
912
|
+
fileName: z.string().optional().describe("Optional new file name (also updates the resolved MIME type)")
|
|
913
|
+
});
|
|
914
|
+
var SetOleObjectNameSchema = z.object({
|
|
915
|
+
filePath: z.string().describe("Path to the PPTX file"),
|
|
916
|
+
slideIndex: z.number().int().min(0).describe("Zero-based slide index"),
|
|
917
|
+
elementId: z.string().describe("OLE element ID"),
|
|
918
|
+
name: z.string().describe("New Object Name (p:oleObj/@name); blank/whitespace clears it")
|
|
919
|
+
});
|
|
877
920
|
|
|
878
|
-
export { AccessibilityCheckSchema, AddChartSeriesSchema, AddChartUserShapeSchema, AddElementSchema, AddSlideSchema, ApplyLayoutSchema, ApplyTemplateSchema, ApplyThemePresetSchema, ArrangeElementsSchema, AssignTableStyleSchema, BatchUpdateElementsSchema, CloneElementSchema, ConvertToMarkdownSchema, CreateChartSchema, CreateTableStyleSchema, DeleteElementsSchema, DeleteSlidesSchema, DeleteTableStyleSchema, DuplicateSlideSchema, ExportSlideSvgSchema, ExportToJsonSchema, ExportToSvgSchema, FindPlaceholdersSchema, FindTextSchema, FormatChartDataLabelSchema, FormatChartDataPointSchema, FormatChartSeriesSchema, GetLayoutsSchema, GetMetadataSchema, GetPresentationPropertiesSchema, GetSlideSchema, GetThemeInfoSchema, GroupElementsSchema, ImportFromJsonSchema, ListChartUserShapesSchema, ManageCommentsSchema, ManageHyperlinksSchema, ManageSectionsSchema, ManageSmartArtSchema, ManageTableStructureSchema, RemoveChartSeriesSchema, RemoveChartUserShapeSchema, RenameElementSchema, ReorderSlidesSchema, RepairPresentationSchema, ReplaceGeometrySchema, ReplaceTextSchema, SetCanvasSizeSchema, SetChartColorMapOverrideSchema, SetChartHelperLineSchema, SetElementAnimationSchema, SetElementLockSchema, SetSlideTransitionSchema, SetTableStyleSectionSchema, TABLE_STYLE_SECTIONS, TableStyleBordersSchema, TableStyleCell3DSchema, TableStyleFillSchema, TableStyleTextSchema, UngroupElementsSchema, UpdateChartSchema, UpdateChartSeriesDataSchema, UpdateChartUserShapeSchema, UpdateElementSchema, UpdateElementStyleSchema, UpdateMetadataSchema, UpdatePresentationPropertiesSchema, UpdateSlidePropertiesSchema, UpdateTableCellsSchema, UpdateThemeColorsSchema, UpdateThemeFontsSchema, ValidatePresentationSchema };
|
|
921
|
+
export { AccessibilityCheckSchema, AddChartSeriesSchema, AddChartUserShapeSchema, AddElementSchema, AddSlideSchema, ApplyLayoutSchema, ApplyTemplateSchema, ApplyThemePresetSchema, ArrangeElementsSchema, AssignTableStyleSchema, BatchUpdateElementsSchema, CloneElementSchema, ConvertToMarkdownSchema, CreateChartSchema, CreateTableStyleSchema, DeleteElementsSchema, DeleteSlidesSchema, DeleteTableStyleSchema, DuplicateSlideSchema, ExportSlideSvgSchema, ExportToJsonSchema, ExportToSvgSchema, FindPlaceholdersSchema, FindTextSchema, FormatChartDataLabelSchema, FormatChartDataPointSchema, FormatChartSeriesSchema, GetLayoutsSchema, GetMetadataSchema, GetOleContentSchema, GetPresentationPropertiesSchema, GetSlideSchema, GetThemeInfoSchema, GroupElementsSchema, ImportFromJsonSchema, ListChartUserShapesSchema, ManageCommentsSchema, ManageHyperlinksSchema, ManageSectionsSchema, ManageSmartArtSchema, ManageTableStructureSchema, RemoveChartSeriesSchema, RemoveChartUserShapeSchema, RenameElementSchema, ReorderSlidesSchema, RepairPresentationSchema, ReplaceGeometrySchema, ReplaceOleFileSchema, ReplaceTextSchema, SetCanvasSizeSchema, SetChartColorMapOverrideSchema, SetChartHelperLineSchema, SetElementAnimationSchema, SetElementLockSchema, SetOleDeckSlideTitleSchema, SetOleDocumentParagraphSchema, SetOleObjectNameSchema, SetOleSheetCellSchema, SetSlideTransitionSchema, SetTableStyleSectionSchema, TABLE_STYLE_SECTIONS, TableStyleBordersSchema, TableStyleCell3DSchema, TableStyleFillSchema, TableStyleTextSchema, UngroupElementsSchema, UpdateChartSchema, UpdateChartSeriesDataSchema, UpdateChartUserShapeSchema, UpdateElementSchema, UpdateElementStyleSchema, UpdateMetadataSchema, UpdatePresentationPropertiesSchema, UpdateSlidePropertiesSchema, UpdateTableCellsSchema, UpdateThemeColorsSchema, UpdateThemeFontsSchema, ValidatePresentationSchema };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptx-viewer-mcp",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
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,17 @@
|
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
73
|
-
"fast-xml-parser": "^5.11.
|
|
74
|
-
"jszip": "^3.10.
|
|
75
|
-
"pptx-viewer-core": "^3.
|
|
76
|
-
"zod": "
|
|
73
|
+
"fast-xml-parser": "^5.11.1",
|
|
74
|
+
"jszip": "^3.10.2",
|
|
75
|
+
"pptx-viewer-core": "^3.8.0",
|
|
76
|
+
"zod": ">=4.4.3 <4.5.3"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"
|
|
79
|
+
"@types/node": "^26.5.1",
|
|
80
|
+
"tsdown": "^0.23.0",
|
|
80
81
|
"tsup": "^8.5.1",
|
|
81
82
|
"typescript": "^7.0.2",
|
|
82
|
-
"vitest": "^4.1.
|
|
83
|
+
"vitest": "^4.1.11",
|
|
83
84
|
"yjs": "^13.6.32"
|
|
84
85
|
},
|
|
85
86
|
"peerDependencies": {
|