document-mcp 4.14.50 → 4.14.52

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
@@ -89,7 +89,7 @@ The server uses **stdio transport** (runs as a local process). This is supported
89
89
  One-liner (adds the MCP server directly):
90
90
 
91
91
  ```sh
92
- claude mcp add --transport stdio document-mcp -- npx -y document-mcp
92
+ claude mcp add --transport stdio document-mcp — npx -y document-mcp
93
93
  ```
94
94
 
95
95
  Or install as a Claude Code plugin (this repo is a plugin marketplace — includes auto-update on new releases):
@@ -113,7 +113,7 @@ Run `/reload-plugins` to activate in an already-running session. In Claude Deskt
113
113
  ### Connecting from Codex CLI
114
114
 
115
115
  ```sh
116
- codex mcp add document-mcp -- npx -y document-mcp
116
+ codex mcp add document-mcp — npx -y document-mcp
117
117
  ```
118
118
 
119
119
  Or via the Codex Desktop app: **Settings → MCP Servers → + Add**.
@@ -212,7 +212,7 @@ pnpm typecheck # turbo -> tsc --noEmit
212
212
  pnpm lint # turbo -> eslint . --fix --cache --max-warnings 0
213
213
  pnpm test # turbo -> vitest run --project unit
214
214
  pnpm test:workers # turbo -> vitest under the real Cloudflare Workers runtime (workerd) via @cloudflare/vitest-pool-workers, driving createServer() through an in-memory JSON-RPC pair
215
- pnpm test:smoke # turbo -> tsdown then vitest --project smoke -- spawns dist/bin.js as a real subprocess driven over genuine MCP stdio
215
+ pnpm test:smoke # turbo -> tsdown then vitest --project smoke — spawns dist/bin.js as a real subprocess driven over genuine MCP stdio
216
216
  ```
217
217
 
218
218
  ## Document I/O
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.50";
9
+ var version = "4.14.52";
10
10
  //#endregion
11
11
  //#region src/register-operation.ts
12
12
  function toErrorResult(error) {
@@ -21,7 +21,7 @@ function toErrorResult(error) {
21
21
  /**
22
22
  * Registers one document-operations DocumentOperation as an MCP tool: `title`/`description`/`inputSchema`/`outputSchema` come straight from the operation, and a successful `run()` result is wrapped in the identical `{ content: [...], structuredContent }` shape every tool in this package already returned before the operations moved out to document-operations.
23
23
  *
24
- * `mapError` lets a caller special-case one of the operation's own thrown error types into an enriched result (e.g. odb_render_report's OdbReportNotSpecifiedError, odm_to_pdf's OdmUnresolvedSectionError) -- return undefined to fall through to the default `toErrorResult` wrapping for every other error.
24
+ * `mapError` lets a caller special-case one of the operation's own thrown error types into an enriched result (e.g. odb_render_report's OdbReportNotSpecifiedError, odm_to_pdf's OdmUnresolvedSectionError) — return undefined to fall through to the default `toErrorResult` wrapping for every other error.
25
25
  */
26
26
  function registerOperation(server, operation, options) {
27
27
  server.registerTool(operation.name, {
@@ -199,9 +199,9 @@ function parsePort(raw) {
199
199
  return port;
200
200
  }
201
201
  /**
202
- * The real CLI entry logic, shared by both distribution shapes this package ships: `src/bin.ts` (the published npm `bin`, run under a real Node.js install) and `src/sea-entry.ts` (bundled into a Node single-executable application, which embeds its own Node runtime). Node's SEA feature runs only a CommonJS entry with no top-level await (see that file's own comment), so this function itself contains no top-level await of its own -- only `bin.ts` awaits calling it, at its own top level, which SEA never sees.
202
+ * The real CLI entry logic, shared by both distribution shapes this package ships: `src/bin.ts` (the published npm `bin`, run under a real Node.js install) and `src/sea-entry.ts` (bundled into a Node single-executable application, which embeds its own Node runtime). Node's SEA feature runs only a CommonJS entry with no top-level await (see that file's own comment), so this function itself contains no top-level await of its own — only `bin.ts` awaits calling it, at its own top level, which SEA never sees.
203
203
  *
204
- * Returns the bound `http.Server` for the `--transport http` path so a caller with a reason to stop it again (a test binding an ephemeral port for the duration of one assertion) can; `undefined` for `--transport stdio`, which has no equivalent handle to return -- `serveStdio` wires the process's own stdin/stdout directly and keeps the process alive on its own.
204
+ * Returns the bound `http.Server` for the `--transport http` path so a caller with a reason to stop it again (a test binding an ephemeral port for the duration of one assertion) can; `undefined` for `--transport stdio`, which has no equivalent handle to return — `serveStdio` wires the process's own stdin/stdout directly and keeps the process alive on its own.
205
205
  */
206
206
  async function main() {
207
207
  const args = process.argv.slice(2);
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.50";
6
+ var version = "4.14.52";
7
7
  //#endregion
8
8
  //#region src/register-operation.ts
9
9
  function toErrorResult(error) {
@@ -18,7 +18,7 @@ function toErrorResult(error) {
18
18
  /**
19
19
  * Registers one document-operations DocumentOperation as an MCP tool: `title`/`description`/`inputSchema`/`outputSchema` come straight from the operation, and a successful `run()` result is wrapped in the identical `{ content: [...], structuredContent }` shape every tool in this package already returned before the operations moved out to document-operations.
20
20
  *
21
- * `mapError` lets a caller special-case one of the operation's own thrown error types into an enriched result (e.g. odb_render_report's OdbReportNotSpecifiedError, odm_to_pdf's OdmUnresolvedSectionError) -- return undefined to fall through to the default `toErrorResult` wrapping for every other error.
21
+ * `mapError` lets a caller special-case one of the operation's own thrown error types into an enriched result (e.g. odb_render_report's OdbReportNotSpecifiedError, odm_to_pdf's OdmUnresolvedSectionError) — return undefined to fall through to the default `toErrorResult` wrapping for every other error.
22
22
  */
23
23
  function registerOperation(server, operation, options) {
24
24
  server.registerTool(operation.name, {
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.50";
5
+ var version = "4.14.52";
6
6
  //#endregion
7
7
  //#region src/register-operation.ts
8
8
  function toErrorResult(error) {
@@ -17,7 +17,7 @@ function toErrorResult(error) {
17
17
  /**
18
18
  * Registers one document-operations DocumentOperation as an MCP tool: `title`/`description`/`inputSchema`/`outputSchema` come straight from the operation, and a successful `run()` result is wrapped in the identical `{ content: [...], structuredContent }` shape every tool in this package already returned before the operations moved out to document-operations.
19
19
  *
20
- * `mapError` lets a caller special-case one of the operation's own thrown error types into an enriched result (e.g. odb_render_report's OdbReportNotSpecifiedError, odm_to_pdf's OdmUnresolvedSectionError) -- return undefined to fall through to the default `toErrorResult` wrapping for every other error.
20
+ * `mapError` lets a caller special-case one of the operation's own thrown error types into an enriched result (e.g. odb_render_report's OdbReportNotSpecifiedError, odm_to_pdf's OdmUnresolvedSectionError) — return undefined to fall through to the default `toErrorResult` wrapping for every other error.
21
21
  */
22
22
  function registerOperation(server, operation, options) {
23
23
  server.registerTool(operation.name, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-mcp",
3
- "version": "4.14.50",
3
+ "version": "4.14.52",
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.49",
94
- "documents.js": "14.0.3",
93
+ "document-operations": "1.1.51",
94
+ "documents.js": "14.1.1",
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.14.0",
106
+ "document-schema.js": "7.14.1",
107
107
  "eslint": "10.8.1",
108
108
  "husky": "9.1.7",
109
- "odf.js": "11.0.0",
109
+ "odf.js": "11.0.1",
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.0"
116
+ "wpd-codec": "5.1.1"
117
117
  }
118
118
  }