mcp-web-print-pdf 0.2.1 → 0.2.2

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.
Files changed (3) hide show
  1. package/README.md +21 -1
  2. package/README_EN.md +21 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -8,10 +8,21 @@
8
8
  `ws://127.0.0.1:16794/websocket/standard` 再加一个客户端,并把 `web-print-pdf@2.x` 的公开 API
9
9
  一对一映射成 MCP 工具。
10
10
 
11
+ - 官网:<https://webprintpdf.com/>
12
+ - 底层 npm 包:[web-print-pdf](https://www.npmjs.com/package/web-print-pdf)
13
+ - 文档:<https://webprintpdf.com/docs/>
14
+
11
15
  ```
12
16
  Claude / dsh ──stdio──> mcp-web-print-pdf ──ws──> Web打印专家客户端 ──> 打印机
13
17
  ```
14
18
 
19
+ ## 前置条件
20
+
21
+ - 本机安装并启动 [Web打印专家客户端](https://webprintpdf.com/downloadApp/)(Windows 10/11、macOS 11+、Linux / 银河麒麟 / 统信 UOS)
22
+ - 客户端默认监听 `ws://127.0.0.1:16794/websocket/standard`
23
+ - 不需要改客户端或前端代码;本 MCP 只是把 [web-print-pdf](https://www.npmjs.com/package/web-print-pdf) 的公开 API 映射成 MCP 工具
24
+ - MCP 接入指南:<https://webprintpdf.com/docs/mcp-print/>
25
+
15
26
  ## 安装
16
27
 
17
28
  宿主会自动通过 `npx -y mcp-web-print-pdf` 拉取,不需要全局安装。
@@ -374,7 +385,7 @@ MCP 的 stdio 通道单条消息默认上限 **10MB**(SDK 的 `ReadBuffer`)
374
385
  客户端,绕开 MCP 的消息上限。
375
386
  - 也可以先把文件挂到 HTTP 地址,用 `printPdfByUrl` / `printImageByUrl` / `printHtmlByUrl`。
376
387
 
377
- ## 与 `web-print-pdf@2.1.9` 的覆盖对照
388
+ ## 与 [web-print-pdf@2.1.9](https://www.npmjs.com/package/web-print-pdf) 的覆盖对照
378
389
 
379
390
  | 上游公开 API | 本 MCP |
380
391
  |---|---|
@@ -437,6 +448,15 @@ npx @modelcontextprotocol/inspector node bin/mcp.js
437
448
  - 参数与消息结构按 `ElctronPrintWeb`(客户端 1.0.9)源码校准:`batchPrint` 任务用 `data` 字段,
438
449
  不是 `web-print-pdf` README 示例里的 `content` / `url` / `base64`。
439
450
 
451
+ ## 相关链接
452
+
453
+ - 官网:<https://webprintpdf.com/>
454
+ - 文档:<https://webprintpdf.com/docs/>
455
+ - MCP 接入指南:<https://webprintpdf.com/docs/mcp-print/>
456
+ - 客户端下载:<https://webprintpdf.com/downloadApp/>
457
+ - web-print-pdf(npm):<https://www.npmjs.com/package/web-print-pdf>
458
+ - 本仓库:<https://github.com/weixiaoyi/mcp-web-print-pdf>
459
+
440
460
  ## License
441
461
 
442
462
  MIT
package/README_EN.md CHANGED
@@ -8,10 +8,21 @@ It does **not** modify the Web Print Expert client or the `web-print-pdf` browse
8
8
  adds another client to the existing `ws://127.0.0.1:16794/websocket/standard` endpoint and maps the
9
9
  public `web-print-pdf@2.x` API one-to-one onto MCP tools.
10
10
 
11
+ - Website: <https://webprintpdf.com/>
12
+ - Underlying npm package: [web-print-pdf](https://www.npmjs.com/package/web-print-pdf)
13
+ - Docs: <https://webprintpdf.com/docs/>
14
+
11
15
  ```
12
16
  Claude / dsh ──stdio──> mcp-web-print-pdf ──ws──> Web Print Expert client ──> printer
13
17
  ```
14
18
 
19
+ ## Prerequisites
20
+
21
+ - Install and start the [Web Print Expert client](https://webprintpdf.com/downloadApp/) (Windows 10/11, macOS 11+, Linux / Kylin / UOS)
22
+ - The client listens on `ws://127.0.0.1:16794/websocket/standard` by default
23
+ - No changes to the client or your frontend code; this MCP just maps the public [web-print-pdf](https://www.npmjs.com/package/web-print-pdf) API onto MCP tools
24
+ - MCP guide: <https://webprintpdf.com/docs/mcp-print/>
25
+
15
26
  ## Installation
16
27
 
17
28
  Hosts fetch it automatically via `npx -y mcp-web-print-pdf`; no global install is required.
@@ -388,7 +399,7 @@ MCP's stdio channel has a default **10MB** per-message limit (the SDK's `ReadBuf
388
399
  the client over WebSocket, bypassing the MCP message limit.
389
400
  - Alternatively host the file over HTTP and use `printPdfByUrl` / `printImageByUrl` / `printHtmlByUrl`.
390
401
 
391
- ## Coverage vs `web-print-pdf@2.1.9`
402
+ ## Coverage vs [web-print-pdf@2.1.9](https://www.npmjs.com/package/web-print-pdf)
392
403
 
393
404
  | Upstream public API | This MCP |
394
405
  |---|---|
@@ -465,6 +476,15 @@ check that a preview appears.
465
476
  `batchPrint` tasks use a `data` field, not the `content` / `url` / `base64` fields shown in the
466
477
  `web-print-pdf` README examples.
467
478
 
479
+ ## Links
480
+
481
+ - Website: <https://webprintpdf.com/>
482
+ - Docs: <https://webprintpdf.com/docs/>
483
+ - MCP guide: <https://webprintpdf.com/docs/mcp-print/>
484
+ - Client download: <https://webprintpdf.com/downloadApp/>
485
+ - web-print-pdf (npm): <https://www.npmjs.com/package/web-print-pdf>
486
+ - This repository: <https://github.com/weixiaoyi/mcp-web-print-pdf>
487
+
468
488
  ## License
469
489
 
470
490
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-web-print-pdf",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "MCP server for Web打印专家 / web-print-pdf — full API coverage: HTML, URL, PDF, image, batch printing to local printers",
5
5
  "type": "module",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  "receipt",
39
39
  "label"
40
40
  ],
41
- "homepage": "https://github.com/weixiaoyi/mcp-web-print-pdf#readme",
41
+ "homepage": "https://webprintpdf.com/",
42
42
  "repository": {
43
43
  "type": "git",
44
44
  "url": "git+https://github.com/weixiaoyi/mcp-web-print-pdf.git"