document-mcp 1.4.2 → 1.4.3

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
@@ -50,24 +50,18 @@ graph TD
50
50
 
51
51
  ## Getting started
52
52
 
53
- Requires Node.js `>=20` and pnpm `11.6.0` (pinned via `packageManager` in `package.json`).
53
+ Run the server directly no install step needed:
54
54
 
55
55
  ```sh
56
- pnpm install
57
- pnpm build # turbo -> tsdown -> dist/ (ESM + CJS + .d.ts)
58
- pnpm typecheck # turbo -> tsc --noEmit
59
- pnpm lint # turbo -> eslint . --fix --cache --max-warnings 0
60
- pnpm test # turbo -> vitest run --project unit
61
- 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
62
- pnpm test:smoke # turbo -> tsdown then vitest --project smoke -- spawns dist/bin.js as a real subprocess driven over genuine MCP stdio
56
+ npx document-mcp
63
57
  ```
64
58
 
65
- Once published, run the server directly via `npx document-mcp` (stdio transport, no install step needed).
66
-
67
59
  ### Connecting from Claude Code / Claude Desktop
68
60
 
69
61
  Add an entry to the client's MCP server configuration (`claude mcp add` for Claude Code, or the `mcpServers` block in Claude Desktop's config file):
70
62
 
63
+ Add an entry to the client's MCP server configuration (`claude mcp add` for Claude Code, or the `mcpServers` block in Claude Desktop's config file):
64
+
71
65
  ```json
72
66
  {
73
67
  "mcpServers": {
@@ -92,6 +86,20 @@ Or, for local development against a checkout of this repository rather than the
92
86
  }
93
87
  ```
94
88
 
89
+ ### Development
90
+
91
+ Requires Node.js `>=20` and pnpm `11.6.0` (pinned via `packageManager` in `package.json`).
92
+
93
+ ```sh
94
+ pnpm install
95
+ pnpm build # turbo -> tsdown -> dist/ (ESM + CJS + .d.ts)
96
+ pnpm typecheck # turbo -> tsc --noEmit
97
+ pnpm lint # turbo -> eslint . --fix --cache --max-warnings 0
98
+ pnpm test # turbo -> vitest run --project unit
99
+ 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
100
+ pnpm test:smoke # turbo -> tsdown then vitest --project smoke -- spawns dist/bin.js as a real subprocess driven over genuine MCP stdio
101
+ ```
102
+
95
103
  ## Document I/O
96
104
 
97
105
  Every tool that takes or produces document bytes goes through the same two hybrid shapes, documented once here rather than repeated per tool below.
package/dist/bin.js CHANGED
@@ -7,7 +7,7 @@ import { readFile, writeFile } from "node:fs/promises";
7
7
  import { existsSync, readFileSync } from "node:fs";
8
8
  import { basename, join } from "node:path";
9
9
  //#region package.json
10
- var version = "1.4.2";
10
+ var version = "1.4.3";
11
11
  //#endregion
12
12
  //#region src/io/document-input.ts
13
13
  const EXTENSION_TO_FORMAT = {
package/dist/index.cjs CHANGED
@@ -6,7 +6,7 @@ let node_fs_promises = require("node:fs/promises");
6
6
  let node_fs = require("node:fs");
7
7
  let node_path = require("node:path");
8
8
  //#region package.json
9
- var version = "1.4.2";
9
+ var version = "1.4.3";
10
10
  //#endregion
11
11
  //#region src/io/document-input.ts
12
12
  const EXTENSION_TO_FORMAT = {
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { readFile, writeFile } from "node:fs/promises";
5
5
  import { existsSync, readFileSync } from "node:fs";
6
6
  import { basename, join } from "node:path";
7
7
  //#region package.json
8
- var version = "1.4.2";
8
+ var version = "1.4.3";
9
9
  //#endregion
10
10
  //#region src/io/document-input.ts
11
11
  const EXTENSION_TO_FORMAT = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-mcp",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
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": {