document-mcp 4.7.3 → 4.8.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/README.md CHANGED
@@ -211,7 +211,7 @@ Every tool that takes or produces document bytes goes through the same two hybri
211
211
 
212
212
  | Tool | Description |
213
213
  | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
214
- | `convert_document` | Converts a document from one supported format to another via `documents.js`'s `DocumentConverter` port — docx, pptx, xlsx, odt, odp, ods, odg, odf, markdown, and pdf. Not every `(source, targetFormat)` pair is direct; call `list_document_conversions` first. |
214
+ | `convert_document` | Converts a document from one supported format to another via `documents.js`'s `DocumentConverter` port — docx, pptx, xlsx, odt, odp, ods, odg, odf, markdown, rtf, wpd, doc, xls, ppt, epub, csv, svg, and pdf. Not every `(source, targetFormat)` pair is direct; call `list_document_conversions` first. |
215
215
  | `list_document_conversions` | Lists every `(source, target)` format pair `convert_document` actually supports. |
216
216
  | `metadata_read` | Reads a document's title/author/subject/keywords/creator/producer/created-and-modified timestamps. Works across every supported format, including xlsx and odf. |
217
217
  | `metadata_write` | Patches a document's title/author/subject/keywords in place. Does not convert format — source and target format must match (or both be `pdf`); odf (a standalone formula document) is rejected as either, since it has no write path back out at all. |
package/dist/bin.js CHANGED
@@ -12,7 +12,7 @@ import { existsSync, readFileSync } from "node:fs";
12
12
  import { basename, join } from "node:path";
13
13
  import { buildOutline, isOutlineNode, outlineLeafText } from "document-outline.js";
14
14
  //#region package.json
15
- var version = "4.7.3";
15
+ var version = "4.8.0";
16
16
  //#endregion
17
17
  //#region src/io/document-input.ts
18
18
  const EXTENSION_TO_FORMAT = {
@@ -39,6 +39,10 @@ const EXTENSION_TO_FORMAT = {
39
39
  md: "markdown",
40
40
  rtf: "rtf",
41
41
  wpd: "wpd",
42
+ doc: "doc",
43
+ xls: "xls",
44
+ ppt: "ppt",
45
+ epub: "epub",
42
46
  csv: "csv",
43
47
  svg: "svg",
44
48
  pdf: "pdf"
@@ -247,7 +251,7 @@ function registerConvertTools(server) {
247
251
  const converter = createLocalDocumentConverter();
248
252
  server.registerTool("convert_document", {
249
253
  title: "Convert document",
250
- description: "Converts a document from one supported format to another via documents.js's DocumentConverter port -- docx, pptx, xlsx, odt, odp, ods, odg, odf, markdown, rtf, csv, svg, and pdf. Not every (source, targetFormat) pair is supported directly (odf, for instance, only ever converts to pdf); call list_document_conversions first to see which pairs actually are.",
254
+ description: "Converts a document from one supported format to another via documents.js's DocumentConverter port -- docx, pptx, xlsx, odt, odp, ods, odg, odf, markdown, rtf, wpd, doc, xls, ppt, epub, csv, svg, and pdf. Not every (source, targetFormat) pair is supported directly (odf, for instance, only ever converts to pdf); call list_document_conversions first to see which pairs actually are.",
251
255
  inputSchema: ConvertDocumentInputSchema,
252
256
  outputSchema: ConvertDocumentOutputSchema
253
257
  }, async ({ source, targetFormat, output, fonts, onSubstitutionDiagnostics, images }, ctx) => {
package/dist/index.cjs CHANGED
@@ -9,7 +9,7 @@ let node_fs = require("node:fs");
9
9
  let node_path = require("node:path");
10
10
  let document_outline_js = require("document-outline.js");
11
11
  //#region package.json
12
- var version = "4.7.3";
12
+ var version = "4.8.0";
13
13
  //#endregion
14
14
  //#region src/io/document-input.ts
15
15
  const EXTENSION_TO_FORMAT = {
@@ -36,6 +36,10 @@ const EXTENSION_TO_FORMAT = {
36
36
  md: "markdown",
37
37
  rtf: "rtf",
38
38
  wpd: "wpd",
39
+ doc: "doc",
40
+ xls: "xls",
41
+ ppt: "ppt",
42
+ epub: "epub",
39
43
  csv: "csv",
40
44
  svg: "svg",
41
45
  pdf: "pdf"
@@ -244,7 +248,7 @@ function registerConvertTools(server) {
244
248
  const converter = (0, documents_js.createLocalDocumentConverter)();
245
249
  server.registerTool("convert_document", {
246
250
  title: "Convert document",
247
- description: "Converts a document from one supported format to another via documents.js's DocumentConverter port -- docx, pptx, xlsx, odt, odp, ods, odg, odf, markdown, rtf, csv, svg, and pdf. Not every (source, targetFormat) pair is supported directly (odf, for instance, only ever converts to pdf); call list_document_conversions first to see which pairs actually are.",
251
+ description: "Converts a document from one supported format to another via documents.js's DocumentConverter port -- docx, pptx, xlsx, odt, odp, ods, odg, odf, markdown, rtf, wpd, doc, xls, ppt, epub, csv, svg, and pdf. Not every (source, targetFormat) pair is supported directly (odf, for instance, only ever converts to pdf); call list_document_conversions first to see which pairs actually are.",
248
252
  inputSchema: ConvertDocumentInputSchema,
249
253
  outputSchema: ConvertDocumentOutputSchema
250
254
  }, async ({ source, targetFormat, output, fonts, onSubstitutionDiagnostics, images }, ctx) => {
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import { existsSync, readFileSync } from "node:fs";
8
8
  import { basename, join } from "node:path";
9
9
  import { buildOutline, isOutlineNode, outlineLeafText } from "document-outline.js";
10
10
  //#region package.json
11
- var version = "4.7.3";
11
+ var version = "4.8.0";
12
12
  //#endregion
13
13
  //#region src/io/document-input.ts
14
14
  const EXTENSION_TO_FORMAT = {
@@ -35,6 +35,10 @@ const EXTENSION_TO_FORMAT = {
35
35
  md: "markdown",
36
36
  rtf: "rtf",
37
37
  wpd: "wpd",
38
+ doc: "doc",
39
+ xls: "xls",
40
+ ppt: "ppt",
41
+ epub: "epub",
38
42
  csv: "csv",
39
43
  svg: "svg",
40
44
  pdf: "pdf"
@@ -243,7 +247,7 @@ function registerConvertTools(server) {
243
247
  const converter = createLocalDocumentConverter();
244
248
  server.registerTool("convert_document", {
245
249
  title: "Convert document",
246
- description: "Converts a document from one supported format to another via documents.js's DocumentConverter port -- docx, pptx, xlsx, odt, odp, ods, odg, odf, markdown, rtf, csv, svg, and pdf. Not every (source, targetFormat) pair is supported directly (odf, for instance, only ever converts to pdf); call list_document_conversions first to see which pairs actually are.",
250
+ description: "Converts a document from one supported format to another via documents.js's DocumentConverter port -- docx, pptx, xlsx, odt, odp, ods, odg, odf, markdown, rtf, wpd, doc, xls, ppt, epub, csv, svg, and pdf. Not every (source, targetFormat) pair is supported directly (odf, for instance, only ever converts to pdf); call list_document_conversions first to see which pairs actually are.",
247
251
  inputSchema: ConvertDocumentInputSchema,
248
252
  outputSchema: ConvertDocumentOutputSchema
249
253
  }, async ({ source, targetFormat, output, fonts, onSubstitutionDiagnostics, images }, ctx) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-mcp",
3
- "version": "4.7.3",
3
+ "version": "4.8.0",
4
4
  "description": "MCP (Model Context Protocol) server exposing documents.js's document-conversion, .odb, metadata, and font tooling as MCP tools.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -90,10 +90,10 @@
90
90
  "dependencies": {
91
91
  "@modelcontextprotocol/node": "^2.0.0",
92
92
  "@modelcontextprotocol/server": "^2.0.0",
93
- "document-compute.js": "^1.3.28",
93
+ "document-compute.js": "^1.3.29",
94
94
  "document-outline.js": "^3.5.5",
95
95
  "document-schema.js": "^7.1.0",
96
- "documents.js": "^7.6.3",
96
+ "documents.js": "^7.7.0",
97
97
  "zod": "^4.2.0"
98
98
  },
99
99
  "devDependencies": {