mcp-web-print-pdf 0.2.2 → 0.2.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 +13 -6
- package/README_EN.md +15 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,13 +25,9 @@ Claude / dsh ──stdio──> mcp-web-print-pdf ──ws──> Web打印专
|
|
|
25
25
|
|
|
26
26
|
## 安装
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
不需要安装。宿主通过 `npx -y mcp-web-print-pdf` 启动,首次运行会自动下载并缓存。
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
npm install
|
|
34
|
-
```
|
|
30
|
+
> 需要固定版本时在包名后加版本号,例如 `npx -y mcp-web-print-pdf@0.2.3`。
|
|
35
31
|
|
|
36
32
|
## 配置
|
|
37
33
|
|
|
@@ -416,6 +412,17 @@ MCP 的 stdio 通道单条消息默认上限 **10MB**(SDK 的 `ReadBuffer`)
|
|
|
416
412
|
- 客户端侧实现见 `ElctronPrintWeb` 仓库:消息入口在 `electronApp/server/websocket/standard/`,
|
|
417
413
|
参数白名单在 `core/generatePdf` 与 `core/printPdf`。
|
|
418
414
|
|
|
415
|
+
## 本地开发
|
|
416
|
+
|
|
417
|
+
```bash
|
|
418
|
+
git clone https://github.com/weixiaoyi/mcp-web-print-pdf.git
|
|
419
|
+
cd mcp-web-print-pdf
|
|
420
|
+
npm install
|
|
421
|
+
npm test
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
`npm test` 跑参数合并和默认 action 的单元测试;端到端冒烟见下一节。
|
|
425
|
+
|
|
419
426
|
## 本地验证(没装客户端也能跑)
|
|
420
427
|
|
|
421
428
|
```bash
|
package/README_EN.md
CHANGED
|
@@ -25,13 +25,10 @@ Claude / dsh ──stdio──> mcp-web-print-pdf ──ws──> Web Print Expe
|
|
|
25
25
|
|
|
26
26
|
## Installation
|
|
27
27
|
|
|
28
|
-
Hosts
|
|
28
|
+
Nothing to install. Hosts start it via `npx -y mcp-web-print-pdf`; the first run downloads and caches
|
|
29
|
+
the package.
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
npm install
|
|
34
|
-
```
|
|
31
|
+
> To pin a version, append it to the package name, for example `npx -y mcp-web-print-pdf@0.2.3`.
|
|
35
32
|
|
|
36
33
|
## Configuration
|
|
37
34
|
|
|
@@ -436,6 +433,18 @@ MCP).
|
|
|
436
433
|
`electronApp/server/websocket/standard/`, option whitelists in `core/generatePdf` and
|
|
437
434
|
`core/printPdf`.
|
|
438
435
|
|
|
436
|
+
## Local development
|
|
437
|
+
|
|
438
|
+
```bash
|
|
439
|
+
git clone https://github.com/weixiaoyi/mcp-web-print-pdf.git
|
|
440
|
+
cd mcp-web-print-pdf
|
|
441
|
+
npm install
|
|
442
|
+
npm test
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
`npm test` runs unit tests for option merging and the default action; the end-to-end smoke test is
|
|
446
|
+
below.
|
|
447
|
+
|
|
439
448
|
## Local verification (works without the client)
|
|
440
449
|
|
|
441
450
|
```bash
|
package/package.json
CHANGED