document-mcp 4.1.7 → 4.2.1

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/dist/bin.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.1.7";
11
+ var version = "4.2.1";
12
12
  //#endregion
13
13
  //#region src/io/document-input.ts
14
14
  const EXTENSION_TO_FORMAT = {
@@ -33,6 +33,9 @@ const EXTENSION_TO_FORMAT = {
33
33
  otf: "odf",
34
34
  markdown: "markdown",
35
35
  md: "markdown",
36
+ rtf: "rtf",
37
+ csv: "csv",
38
+ svg: "svg",
36
39
  pdf: "pdf"
37
40
  };
38
41
  function inferFormatFromExtension(path) {
@@ -146,7 +149,7 @@ function registerConvertTools(server) {
146
149
  const converter = createLocalDocumentConverter();
147
150
  server.registerTool("convert_document", {
148
151
  title: "Convert document",
149
- 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, 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.",
152
+ 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.",
150
153
  inputSchema: ConvertDocumentInputSchema,
151
154
  outputSchema: ConvertDocumentOutputSchema
152
155
  }, async ({ source, targetFormat, output, fonts, onSubstitutionDiagnostics, images }, ctx) => {
package/dist/index.cjs CHANGED
@@ -7,7 +7,7 @@ let node_fs = require("node:fs");
7
7
  let node_path = require("node:path");
8
8
  let document_outline_js = require("document-outline.js");
9
9
  //#region package.json
10
- var version = "4.1.7";
10
+ var version = "4.2.1";
11
11
  //#endregion
12
12
  //#region src/io/document-input.ts
13
13
  const EXTENSION_TO_FORMAT = {
@@ -32,6 +32,9 @@ const EXTENSION_TO_FORMAT = {
32
32
  otf: "odf",
33
33
  markdown: "markdown",
34
34
  md: "markdown",
35
+ rtf: "rtf",
36
+ csv: "csv",
37
+ svg: "svg",
35
38
  pdf: "pdf"
36
39
  };
37
40
  function inferFormatFromExtension(path) {
@@ -145,7 +148,7 @@ function registerConvertTools(server) {
145
148
  const converter = (0, documents_js.createLocalDocumentConverter)();
146
149
  server.registerTool("convert_document", {
147
150
  title: "Convert document",
148
- 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, 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.",
151
+ 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.",
149
152
  inputSchema: ConvertDocumentInputSchema,
150
153
  outputSchema: ConvertDocumentOutputSchema
151
154
  }, async ({ source, targetFormat, output, fonts, onSubstitutionDiagnostics, images }, ctx) => {
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { existsSync, readFileSync } from "node:fs";
6
6
  import { basename, join } from "node:path";
7
7
  import { buildOutline, isOutlineNode, outlineLeafText } from "document-outline.js";
8
8
  //#region package.json
9
- var version = "4.1.7";
9
+ var version = "4.2.1";
10
10
  //#endregion
11
11
  //#region src/io/document-input.ts
12
12
  const EXTENSION_TO_FORMAT = {
@@ -31,6 +31,9 @@ const EXTENSION_TO_FORMAT = {
31
31
  otf: "odf",
32
32
  markdown: "markdown",
33
33
  md: "markdown",
34
+ rtf: "rtf",
35
+ csv: "csv",
36
+ svg: "svg",
34
37
  pdf: "pdf"
35
38
  };
36
39
  function inferFormatFromExtension(path) {
@@ -144,7 +147,7 @@ function registerConvertTools(server) {
144
147
  const converter = createLocalDocumentConverter();
145
148
  server.registerTool("convert_document", {
146
149
  title: "Convert document",
147
- 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, 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.",
150
+ 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.",
148
151
  inputSchema: ConvertDocumentInputSchema,
149
152
  outputSchema: ConvertDocumentOutputSchema
150
153
  }, 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.1.7",
3
+ "version": "4.2.1",
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": {
@@ -88,7 +88,7 @@
88
88
  "dependencies": {
89
89
  "@modelcontextprotocol/server": "^2.0.0",
90
90
  "document-outline.js": "^3.2.1",
91
- "documents.js": "^6.2.2",
91
+ "documents.js": "^6.3.1",
92
92
  "zod": "^4.2.0"
93
93
  },
94
94
  "devDependencies": {