document-mcp 4.14.94 → 4.14.96

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
@@ -6,7 +6,7 @@ import { McpServer, createMcpHandler } from "@modelcontextprotocol/server";
6
6
  import { computeFormulaOperation, convertDocumentOperation, describeFontFileOperation, documentAppendParagraphsOperation, documentCreateOperation, docxExtrasOperation, fontsOperation, fromPackageOperation, listDocumentConversionsOperation, metadataReadOperation, metadataWriteOperation, odbFormsOperation, odbQueryOperation, odbRenderReportOperation, odbReportsOperation, odbTablesOperation, odbToCsvOperation, odbToXlsxOperation, odmToPdfOperation, outlineDocumentOperation, pdfInspectOperation } from "document-operations";
7
7
  import { OdbReportNotSpecifiedError, OdmUnresolvedSectionError } from "documents.js";
8
8
  //#region package.json
9
- var version = "4.14.94";
9
+ var version = "4.14.96";
10
10
  //#endregion
11
11
  //#region src/register-operation.ts
12
12
  function toErrorResult(error) {
@@ -182,6 +182,8 @@ async function serveHttp(port, host) {
182
182
  //#endregion
183
183
  //#region src/cli.ts
184
184
  const DEFAULT_HTTP_PORT = 3e3;
185
+ /** The highest valid TCP port number (16 bits, so 2^16 - 1). */
186
+ const MAX_TCP_PORT = 65535;
185
187
  function readFlag(args, name) {
186
188
  const prefix = `--${name}=`;
187
189
  for (const [index, arg] of args.entries()) {
@@ -195,7 +197,7 @@ function readFlag(args, name) {
195
197
  }
196
198
  function parsePort(raw) {
197
199
  const port = Number.parseInt(raw, 10);
198
- if (!Number.isInteger(port) || String(port) !== raw.trim() || port < 0 || port > 65535) throw new Error(`--port must be an integer between 0 and 65535, got "${raw}"`);
200
+ if (!Number.isInteger(port) || String(port) !== raw.trim() || port < 0 || port > 65535) throw new Error(`--port must be an integer between 0 and ${String(MAX_TCP_PORT)}, got "${raw}"`);
199
201
  return port;
200
202
  }
201
203
  /**
package/dist/index.cjs CHANGED
@@ -3,7 +3,7 @@ let _modelcontextprotocol_server = require("@modelcontextprotocol/server");
3
3
  let document_operations = require("document-operations");
4
4
  let documents_js = require("documents.js");
5
5
  //#region package.json
6
- var version = "4.14.94";
6
+ var version = "4.14.96";
7
7
  //#endregion
8
8
  //#region src/register-operation.ts
9
9
  function toErrorResult(error) {
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { McpServer } from "@modelcontextprotocol/server";
2
2
  import { computeFormulaOperation, convertDocumentOperation, describeFontFileOperation, documentAppendParagraphsOperation, documentCreateOperation, docxExtrasOperation, fontsOperation, fromPackageOperation, listDocumentConversionsOperation, metadataReadOperation, metadataWriteOperation, odbFormsOperation, odbQueryOperation, odbRenderReportOperation, odbReportsOperation, odbTablesOperation, odbToCsvOperation, odbToXlsxOperation, odmToPdfOperation, outlineDocumentOperation, pdfInspectOperation } from "document-operations";
3
3
  import { OdbReportNotSpecifiedError, OdmUnresolvedSectionError } from "documents.js";
4
4
  //#region package.json
5
- var version = "4.14.94";
5
+ var version = "4.14.96";
6
6
  //#endregion
7
7
  //#region src/register-operation.ts
8
8
  function toErrorResult(error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-mcp",
3
- "version": "4.14.94",
3
+ "version": "4.14.96",
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,8 +90,8 @@
90
90
  "dependencies": {
91
91
  "@modelcontextprotocol/node": "2.0.0",
92
92
  "@modelcontextprotocol/server": "2.0.0",
93
- "document-operations": "1.1.91",
94
- "documents.js": "14.4.28",
93
+ "document-operations": "1.1.93",
94
+ "documents.js": "14.4.30",
95
95
  "zod": "4.4.3"
96
96
  },
97
97
  "devDependencies": {
@@ -103,16 +103,16 @@
103
103
  "@stryker-mutator/vitest-runner": "10.0.0",
104
104
  "@types/node": "26.2.0",
105
105
  "@vitest/coverage-v8": "4.1.11",
106
- "document-schema.js": "7.15.1",
106
+ "document-schema.js": "7.15.2",
107
107
  "eslint": "10.8.1",
108
108
  "husky": "9.1.7",
109
- "odf.js": "11.1.7",
109
+ "odf.js": "11.1.8",
110
110
  "publint": "0.3.22",
111
111
  "semantic-release": "25.0.9",
112
112
  "tsdown": "0.22.14",
113
113
  "turbo": "2.10.8",
114
114
  "typescript": "6.0.3",
115
115
  "vitest": "4.1.11",
116
- "wpd-codec": "5.1.14"
116
+ "wpd-codec": "5.1.15"
117
117
  }
118
118
  }