document-mcp 4.14.94 → 4.14.95
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 +4 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
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.
|
|
9
|
+
var version = "4.14.95";
|
|
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
|
|
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.
|
|
6
|
+
var version = "4.14.95";
|
|
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.
|
|
5
|
+
var version = "4.14.95";
|
|
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.
|
|
3
|
+
"version": "4.14.95",
|
|
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.
|
|
94
|
-
"documents.js": "14.4.
|
|
93
|
+
"document-operations": "1.1.92",
|
|
94
|
+
"documents.js": "14.4.29",
|
|
95
95
|
"zod": "4.4.3"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|