document-mcp 1.4.2 → 1.4.4

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,23 +50,31 @@ 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).
59
+ ### Connecting from Claude Code
60
+
61
+ ```sh
62
+ claude mcp add --transport stdio document-mcp -- npx -y document-mcp
63
+ ```
64
+
65
+ ### Connecting from Codex CLI
66
+
67
+ Add to `~/.codex/config.toml`:
68
+
69
+ ```toml
70
+ [mcp_servers.document-mcp]
71
+ command = "npx"
72
+ args = ["-y", "document-mcp"]
73
+ ```
66
74
 
67
- ### Connecting from Claude Code / Claude Desktop
75
+ ### Connecting from Claude Desktop
68
76
 
69
- 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):
77
+ Add to the `mcpServers` block in Claude Desktop's config file (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
70
78
 
71
79
  ```json
72
80
  {
@@ -92,6 +100,20 @@ Or, for local development against a checkout of this repository rather than the
92
100
  }
93
101
  ```
94
102
 
103
+ ### Development
104
+
105
+ Requires Node.js `>=20` and pnpm `11.6.0` (pinned via `packageManager` in `package.json`).
106
+
107
+ ```sh
108
+ pnpm install
109
+ pnpm build # turbo -> tsdown -> dist/ (ESM + CJS + .d.ts)
110
+ pnpm typecheck # turbo -> tsc --noEmit
111
+ pnpm lint # turbo -> eslint . --fix --cache --max-warnings 0
112
+ pnpm test # turbo -> vitest run --project unit
113
+ 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
114
+ pnpm test:smoke # turbo -> tsdown then vitest --project smoke -- spawns dist/bin.js as a real subprocess driven over genuine MCP stdio
115
+ ```
116
+
95
117
  ## Document I/O
96
118
 
97
119
  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.4";
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.4";
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.4";
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.4",
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": {