{"_id":"mcp-web-print-pdf","_rev":"6-2bc3fe705ebec9414abb7a6f77279639","name":"mcp-web-print-pdf","dist-tags":{"latest":"0.2.4"},"versions":{"0.0.0-stage":{"name":"mcp-web-print-pdf","version":"0.0.0-stage","_id":"mcp-web-print-pdf@0.0.0-stage","stub":true,"maintainers":[{"name":"weixiaoyi","email":"2278095567@qq.com"}],"dist":{"shasum":"343ce7c6b76dd2622ff004c310fe64c43d3c7880","tarball":"https://registry.npmjs.org/mcp-web-print-pdf/-/mcp-web-print-pdf-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-0CT9gK40ygP5cdEm2/RqfsJX7DvMH/TmwfAja5EmXnD+/iqCFddebUHD6oW/HokgOB4jMOz1eIRTkNF8j0FVYA==","signatures":[{"sig":"MEQCIA3i9kqP7d6wV1alTTuZaENX7MdZIcXTnjHJ66gTGnAtAiBbYF2d5NrAfbH/G6yXkCR1g3ILaqyf/yYyykQ1bAfQ7g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":339},"_npmUser":{"name":"weixiaoyi","email":"2278095567@qq.com"},"description":"Temporary package placeholder for staged publishing","directories":{}},"0.2.0":{"name":"mcp-web-print-pdf","version":"0.2.0","keywords":["mcp","model-context-protocol","print","printer","web-print-pdf","silent-print","html-to-pdf","thermal","receipt","label"],"author":{"name":"weixiaoyi"},"license":"MIT","_id":"mcp-web-print-pdf@0.2.0","maintainers":[{"name":"weixiaoyi","email":"2278095567@qq.com"}],"homepage":"https://github.com/weixiaoyi/mcp-web-print-pdf#readme","bugs":{"url":"https://github.com/weixiaoyi/mcp-web-print-pdf/issues"},"bin":{"mcp-web-print-pdf":"bin/mcp.js"},"dist":{"shasum":"c076043e9c17f604fa735faaa69ff1266978b99e","tarball":"https://registry.npmjs.org/mcp-web-print-pdf/-/mcp-web-print-pdf-0.2.0.tgz","fileCount":8,"integrity":"sha512-vjgkp1Kx+Sa0NHh5UOEP4TKLH2zniSQgvluLTvS47YhCqPNxQORJPr/P5FzRvp+ZcYsorPZQn+gqfU8Mi386gg==","signatures":[{"sig":"MEYCIQCPZKZ7giLUx3YFPLJYyMp0k8dPY8HXY75t62EvC9rBHAIhAPqYwL6eWNEcNe0G59ZwRB5ysQ2JjBfPrNoIPCQFqT/n","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDUwL6IiJDZdxmk2bEUZp/S2eArIRn4g9yJgDP0B4QsIgIhAPlbA36feXDG1cN3CmY1bxJ4dATLqMNOn9AQyoo96F2F","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66863},"type":"module","engines":{"node":">=18"},"gitHead":"1283ad0543e8d9cbd2847f71d159fdfde9a9e4a8","scripts":{"mock":"node test/mock-server.js","smoke":"node test/smoke.js","start":"node bin/mcp.js"},"_npmUser":{"name":"weixiaoyi","email":"2278095567@qq.com"},"repository":{"url":"git+https://github.com/weixiaoyi/mcp-web-print-pdf.git","type":"git"},"_npmVersion":"10.9.3","description":"MCP server for Web打印专家 / web-print-pdf — full API coverage: HTML, URL, PDF, image, batch printing to local printers","directories":{},"_nodeVersion":"22.18.0","dependencies":{"ws":"^8.18.0","zod":"^3.23.8","@modelcontextprotocol/sdk":"^1.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mcp-web-print-pdf_0.2.0_1793342969660_0.712019431219124","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"mcp-web-print-pdf","version":"0.2.1","keywords":["mcp","model-context-protocol","print","printer","web-print-pdf","silent-print","html-to-pdf","thermal","receipt","label"],"author":{"name":"weixiaoyi"},"license":"MIT","_id":"mcp-web-print-pdf@0.2.1","maintainers":[{"name":"weixiaoyi","email":"2278095567@qq.com"}],"homepage":"https://github.com/weixiaoyi/mcp-web-print-pdf#readme","bugs":{"url":"https://github.com/weixiaoyi/mcp-web-print-pdf/issues"},"bin":{"mcp-web-print-pdf":"bin/mcp.js"},"dist":{"shasum":"1cee08db0fe3b5546ef0534ffb980b40e75ebba8","tarball":"https://registry.npmjs.org/mcp-web-print-pdf/-/mcp-web-print-pdf-0.2.1.tgz","fileCount":8,"integrity":"sha512-5NOjUa1xs//z1cqLuIotBVdINgB9+ZUrnlN/u0qyakKYQd1eVu1lS9TJoqBJczcVfD7LgUVOMUAd5GPFXNq9jA==","signatures":[{"sig":"MEQCIE3o4S/s/89jSZB3226mRPAN44EbhpbTK4MeMVKp2TrQAiBwNqK5ba0ox7p+thP+ZRe7U3fpfCFi8LgiYCza2/dx+w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDCOLWsUbiw6GcD8l7NaEs8D3I+v70T631j6brCYeJDgQIgM0N+JKRwcFYP79o9WgK4O1RLVUUJZuamvYSFa91C96E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":67187},"type":"module","engines":{"node":">=18"},"gitHead":"e3d009bd84a3d620e2d8f46b788a798a173eb4ca","scripts":{"mock":"node test/mock-server.js","test":"node --test test/options.test.js","smoke":"node test/smoke.js","start":"node bin/mcp.js"},"_npmUser":{"name":"weixiaoyi","email":"2278095567@qq.com"},"repository":{"url":"git+https://github.com/weixiaoyi/mcp-web-print-pdf.git","type":"git"},"_npmVersion":"10.9.3","description":"MCP server for Web打印专家 / web-print-pdf — full API coverage: HTML, URL, PDF, image, batch printing to local printers","directories":{},"_nodeVersion":"22.18.0","dependencies":{"ws":"^8.18.0","zod":"^3.23.8","@modelcontextprotocol/sdk":"^1.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mcp-web-print-pdf_0.2.1_1793351787987_0.915735041410052","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"mcp-web-print-pdf","version":"0.2.2","keywords":["mcp","model-context-protocol","print","printer","web-print-pdf","silent-print","html-to-pdf","thermal","receipt","label"],"author":{"name":"weixiaoyi"},"license":"MIT","_id":"mcp-web-print-pdf@0.2.2","maintainers":[{"name":"weixiaoyi","email":"2278095567@qq.com"}],"homepage":"https://webprintpdf.com/","bugs":{"url":"https://github.com/weixiaoyi/mcp-web-print-pdf/issues"},"bin":{"mcp-web-print-pdf":"bin/mcp.js"},"dist":{"shasum":"e09c031073719bb090b0b9591752ee78226bdb45","tarball":"https://registry.npmjs.org/mcp-web-print-pdf/-/mcp-web-print-pdf-0.2.2.tgz","fileCount":8,"integrity":"sha512-VGzZnzqPKtzOgurI6lxdiDjzapwnfbTcENjbKzPksK/Zlsl/PqP+jNFdVEARfxrKtrH7Jo3zs1kgKqNiHL3QIw==","signatures":[{"sig":"MEYCIQCEAgJFN6nIRXzg5uXbSvbeEVDClG7RrFa/FPBTls+zpwIhALhu7D2/pbwa17aOUo0Uce6d4k0TL8/NnOrEXC34DzbY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDlYwYDrl3Jodm7Q4c655v73+T452Qtkm4wIV4PFMD+ewIgMTw+xAgActZIFk+1sLG5odhzn2kcqWkQI9pHHDzXTQE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69177},"type":"module","engines":{"node":">=18"},"gitHead":"9223daf0853959d6b8f7cfdcd52883c0d60d9bbe","scripts":{"mock":"node test/mock-server.js","test":"node --test test/options.test.js","smoke":"node test/smoke.js","start":"node bin/mcp.js"},"_npmUser":{"name":"weixiaoyi","email":"2278095567@qq.com"},"repository":{"url":"git+https://github.com/weixiaoyi/mcp-web-print-pdf.git","type":"git"},"_npmVersion":"10.9.3","description":"MCP server for Web打印专家 / web-print-pdf — full API coverage: HTML, URL, PDF, image, batch printing to local printers","directories":{},"_nodeVersion":"22.18.0","dependencies":{"ws":"^8.18.0","zod":"^3.23.8","@modelcontextprotocol/sdk":"^1.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mcp-web-print-pdf_0.2.2_1793356676823_0.8440750807549264","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"mcp-web-print-pdf","version":"0.2.3","keywords":["mcp","model-context-protocol","print","printer","web-print-pdf","silent-print","html-to-pdf","thermal","receipt","label"],"author":{"name":"weixiaoyi"},"license":"MIT","_id":"mcp-web-print-pdf@0.2.3","maintainers":[{"name":"weixiaoyi","email":"2278095567@qq.com"}],"homepage":"https://webprintpdf.com/","bugs":{"url":"https://github.com/weixiaoyi/mcp-web-print-pdf/issues"},"bin":{"mcp-web-print-pdf":"bin/mcp.js"},"dist":{"shasum":"bfdecc0c55880ef607fbc91d69ff5eaa5f2cd1b1","tarball":"https://registry.npmjs.org/mcp-web-print-pdf/-/mcp-web-print-pdf-0.2.3.tgz","fileCount":8,"integrity":"sha512-luoW61MjB+A4LN1KGkgLRZyhNqwqe4WAH2SHXb99NeDqc0rD15e9rQ4NySjTPVeLGr2BsjGfCXvraHhMPa2CGQ==","signatures":[{"sig":"MEUCIE956F2xg5yW/OB+opRqSUSOcYxuduGJMMTwqkR7xcvuAiEAwnZQ2AJJYA/zxDHm8nI2H26xGfb16My5VCLybR7fnx4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDAbhqOXiefQkOnE+gcHitYXtq+XjgaFZ9jx6vyPL2qHQIhAKE4DaNC3zlm1Wm93q66zRAFzVcYUmAAPMxAjlj4Tdy7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69793},"type":"module","engines":{"node":">=18"},"gitHead":"0e2d6810b1bca75151cc2783012f0e7729a639a3","scripts":{"mock":"node test/mock-server.js","test":"node --test test/options.test.js","smoke":"node test/smoke.js","start":"node bin/mcp.js"},"_npmUser":{"name":"weixiaoyi","email":"2278095567@qq.com"},"repository":{"url":"git+https://github.com/weixiaoyi/mcp-web-print-pdf.git","type":"git"},"_npmVersion":"10.9.3","description":"MCP server for Web打印专家 / web-print-pdf — full API coverage: HTML, URL, PDF, image, batch printing to local printers","directories":{},"_nodeVersion":"22.18.0","dependencies":{"ws":"^8.18.0","zod":"^3.23.8","@modelcontextprotocol/sdk":"^1.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mcp-web-print-pdf_0.2.3_1793357132791_0.9178131965931557","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"_id":"mcp-web-print-pdf@0.2.4","bin":{"mcp-web-print-pdf":"bin/mcp.js"},"bugs":{"url":"https://github.com/weixiaoyi/mcp-web-print-pdf/issues"},"dist":{"shasum":"de8d5e5e8c9e732d211c9b2420ce7aee6ee7ea5d","tarball":"https://registry.npmjs.org/mcp-web-print-pdf/-/mcp-web-print-pdf-0.2.4.tgz","fileCount":8,"integrity":"sha512-xnNP7/giSzIxhxTzlG470hnqr2JFK2lsnXMigM3RFgSb/m8F3i55WVDCiMhI6pxNXpSjsP3C0z3ef17f9EaM3Q==","signatures":[{"sig":"MEUCIQDUcauzYNIrcZ30Crkj6u9VWoenj9Eh2DNt3vN0dEuklAIgUU3vll0DPGeAyjUO3t1SSDzKlPonQaosBB0WF8flLLw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD0cNxekrbYJY8PfTGwnzHtCWjF61w44yY5Wk5+f76G7wIgTTRdnCtDlyZgwWk63A0Ox9mQLSHcBgwE+10wmRNRtRY="}],"unpackedSize":86333},"name":"mcp-web-print-pdf","type":"module","author":{"name":"weixiaoyi"},"engines":{"node":">=18"},"gitHead":"aadc866058ab9e3d0cf37c05f057abe7902bef9d","license":"MIT","scripts":{"mock":"node test/mock-server.js","test":"node --test test/options.test.js","smoke":"node test/smoke.js","start":"node bin/mcp.js"},"version":"0.2.4","_npmUser":{"name":"weixiaoyi","email":"2278095567@qq.com"},"homepage":"https://webprintpdf.com/","keywords":["mcp","mcp-server","model-context-protocol","print","printer","printing","silent-print","html-to-pdf","print-html","web-print-pdf","thermal","thermal-printer","receipt","label","claude","cursor","ai-agent","llm"],"repository":{"url":"git+https://github.com/weixiaoyi/mcp-web-print-pdf.git","type":"git"},"_npmVersion":"10.9.3","description":"MCP server for Web打印专家 / web-print-pdf: let AI agents print HTML, web pages, PDFs and images to local printers — silent printing, thermal receipts, labels, batch jobs","directories":{},"maintainers":[{"name":"weixiaoyi","email":"2278095567@qq.com"}],"_nodeVersion":"22.18.0","dependencies":{"ws":"^8.18.0","zod":"^3.23.8","@modelcontextprotocol/sdk":"^1.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-web-print-pdf_0.2.4_1793357991119_0.51596216096424"}}},"time":{"created":"2026-10-30T06:47:22.739Z","modified":"2026-10-30T10:59:51.358Z","0.0.0-stage":"2026-10-30T06:47:22.739Z","0.2.0":"2026-10-30T06:49:29.747Z","0.2.1":"2026-10-30T09:16:28.078Z","0.2.2":"2026-10-30T10:37:56.909Z","0.2.3":"2026-10-30T10:45:32.875Z","0.2.4":"2026-10-30T10:59:51.204Z"},"bugs":{"url":"https://github.com/weixiaoyi/mcp-web-print-pdf/issues"},"author":{"name":"weixiaoyi"},"license":"MIT","homepage":"https://webprintpdf.com/","keywords":["mcp","mcp-server","model-context-protocol","print","printer","printing","silent-print","html-to-pdf","print-html","web-print-pdf","thermal","thermal-printer","receipt","label","claude","cursor","ai-agent","llm"],"repository":{"url":"git+https://github.com/weixiaoyi/mcp-web-print-pdf.git","type":"git"},"description":"MCP server for Web打印专家 / web-print-pdf: let AI agents print HTML, web pages, PDFs and images to local printers — silent printing, thermal receipts, labels, batch jobs","maintainers":[{"name":"weixiaoyi","email":"2278095567@qq.com"}],"readme":"<p align=\"center\"><img src=\"https://raw.githubusercontent.com/weixiaoyi/mcp-web-print-pdf/master/assets/logo.svg\" width=\"96\" height=\"96\" alt=\"mcp-web-print-pdf logo\"></p>\n\n<h1 align=\"center\">mcp-web-print-pdf</h1>\n\n<p align=\"center\">\n  <b>让 AI agent 把 HTML / 网页 / PDF / 图片直接打印到本机打印机</b><br>\n  <sub>MCP server for silent printing · Claude Desktop · Cursor · Claude Code · VS Code · Cline · Codex · dsh</sub>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/mcp-web-print-pdf\"><img src=\"https://img.shields.io/npm/v/mcp-web-print-pdf?logo=npm&logoColor=white&label=npm&color=cb3837\" alt=\"npm version\"></a>\n  <a href=\"https://www.npmjs.com/package/mcp-web-print-pdf\"><img src=\"https://img.shields.io/npm/dm/mcp-web-print-pdf?logo=npm&logoColor=white&label=downloads&color=cb3837\" alt=\"npm downloads\"></a>\n  <a href=\"https://modelcontextprotocol.io\"><img src=\"https://img.shields.io/badge/MCP-compatible-6f42c1\" alt=\"MCP compatible\"></a>\n  <a href=\"https://github.com/weixiaoyi/mcp-web-print-pdf/blob/master/package.json\"><img src=\"https://img.shields.io/badge/node-%E2%89%A518-339933?logo=node.js&logoColor=white\" alt=\"node >=18\"></a>\n  <a href=\"https://github.com/weixiaoyi/mcp-web-print-pdf/blob/master/LICENSE\"><img src=\"https://img.shields.io/github/license/weixiaoyi/mcp-web-print-pdf?color=2b9348\" alt=\"license MIT\"></a>\n  <a href=\"https://github.com/weixiaoyi/mcp-web-print-pdf/actions/workflows/test.yml\"><img src=\"https://github.com/weixiaoyi/mcp-web-print-pdf/actions/workflows/test.yml/badge.svg?branch=master\" alt=\"CI\"></a>\n  <a href=\"https://github.com/weixiaoyi/mcp-web-print-pdf/stargazers\"><img src=\"https://img.shields.io/github/stars/weixiaoyi/mcp-web-print-pdf?style=social\" alt=\"GitHub stars\"></a>\n  <a href=\"https://github.com/weixiaoyi/mcp-web-print-pdf/blob/master/CONTRIBUTING.md\"><img src=\"https://img.shields.io/badge/PRs-welcome-brightgreen\" alt=\"PRs welcome\"></a>\n</p>\n\n<p align=\"center\">\n  <b>中文</b> · <a href=\"https://github.com/weixiaoyi/mcp-web-print-pdf/blob/master/README_EN.md\">English</a> ·\n  <a href=\"https://webprintpdf.com/\">官网</a> ·\n  <a href=\"https://webprintpdf.com/docs/mcp-print/\">接入文档</a> ·\n  <a href=\"https://webprintpdf.com/downloadApp/\">下载客户端</a>\n</p>\n\n---\n\n一句话：**装一个 MCP server，模型就能「说一句、打一张」**——不必截图、不必弹浏览器、不必让用户按 Ctrl+P。\n\n它**不改**「Web打印专家」客户端，也不改 `web-print-pdf` 浏览器库——只是给客户端已有的\n`ws://127.0.0.1:16794/websocket/standard` 再加一个客户端，并把 `web-print-pdf@2.x` 的公开 API\n一对一映射成 16 个 MCP 工具。\n\n```\nClaude / Cursor / Cline / dsh ──stdio──> mcp-web-print-pdf ──ws──> Web打印专家客户端 ──> 打印机\n```\n\n## 为什么用它\n\n| 你想要的 | 常见做法 | 用 mcp-web-print-pdf |\n|---|---|---|\n| 让模型打印一张发票 / 报表 | 截图 → 手工打开 → Ctrl+P | 模型调 `printHtml`，静默出纸 |\n| 批量打 100 张面单 | 循环开页面、逐个确认 | 一次 `batchPrint` 提交混合任务 |\n| 80mm 热敏小票 | 前端 `window.print()`，样式全乱 | `pdf_options` 控制纸宽 / 边距 / 水印 |\n| 打印本机 PDF | 上传到网盘再让用户下载 | `printFile` 按路径直连客户端 |\n| 电子面单 / 标签机 | 需要专用 SDK | 走系统打印驱动 + `print_options` |\n\n和 Playwright / Puppeteer 打印相比，它不是「无头浏览器另存 PDF」，而是**调用本机已装好的打印驱动**：\n支持热敏、针式、标签机，支持纸盒 / 双面 / 缩放 / 锐化等驱动级参数，也不用额外下载 Chromium。\n\n## 30 秒上手\n\n```json\n{\n  \"mcpServers\": {\n    \"webprint\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-web-print-pdf\"]\n    }\n  }\n}\n```\n\n1. 装并启动 [Web打印专家客户端](https://webprintpdf.com/downloadApp/)（监听 `ws://127.0.0.1:16794/websocket/standard`）\n2. 把上面的 JSON 贴进宿主配置（各宿主位置见[配置](#配置)）\n3. 让模型先 `getConnectStatus` 探活，再 `printHtml` 出一张测试页\n\n> 首次运行 `npx` 会自动下载并缓存；要固定版本写 `npx -y mcp-web-print-pdf@0.2.3`。\n\n## 目录\n\n- [为什么用它](#为什么用它) · [30 秒上手](#30-秒上手) · [支持的宿主](#支持的宿主)\n- [前置条件](#前置条件) · [安装](#安装) · [配置](#配置)\n- [工具](#工具) · [参数](#参数) · [示例](#示例)\n- [常见问题 FAQ](#常见问题-faq)\n- [大文件怎么打](#大文件怎么打) · [实现要点](#实现要点)\n- [本地开发](#本地开发) · [已知边界](#已知边界) · [相关链接](#相关链接)\n\n## 支持的宿主\n\n| 宿主 | 配置位置 | 顶层键 |\n|---|---|---|\n| [Claude Desktop](#claude-desktop) | `claude_desktop_config.json` | `mcpServers` |\n| [Cursor](#cursor) | `.cursor/mcp.json`、`~/.cursor/mcp.json` | `mcpServers` |\n| [Claude Code](#claude-code) | `claude mcp add` 或 `.mcp.json` | `mcpServers` |\n| [VS Code + Copilot](#vs-code--github-copilot) | `.vscode/mcp.json` | `servers` |\n| [DeepSeek Harness（dsh）](#deepseek-harnessdsh) | `cordis.patch.yml` | — |\n| [Codex CLI](#openai-codex-cli) | `~/.codex/config.toml` | `[mcp_servers.…]` |\n| [Cline / Roo / Kilo](#cline--roo-code--kilo-code) | `cline_mcp_settings.json` | `mcpServers` |\n| [Cherry Studio](#cherry-studio) · [Trae](#trae) | 图形界面 | `mcpServers` |\n| [其它宿主](#其它宿主) | 见下表 | `mcpServers` |\n\n## 前置条件\n\n- 本机安装并启动 [Web打印专家客户端](https://webprintpdf.com/downloadApp/)（Windows 10/11、macOS 11+、Linux / 银河麒麟 / 统信 UOS）\n- 客户端默认监听 `ws://127.0.0.1:16794/websocket/standard`\n- 不需要改客户端或前端代码；本 MCP 只是把 [web-print-pdf](https://www.npmjs.com/package/web-print-pdf) 的公开 API 映射成 MCP 工具\n- MCP 接入指南：<https://webprintpdf.com/docs/mcp-print/>\n\n## 安装\n\n不需要安装。宿主通过 `npx -y mcp-web-print-pdf` 启动，首次运行会自动下载并缓存。\n\n> 需要固定版本时在包名后加版本号，例如 `npx -y mcp-web-print-pdf@0.2.3`。\n\n## 配置\n\n所有宿主都通过 stdio 启动同一个 MCP server，统一用：\n\n```json\n{ \"command\": \"npx\", \"args\": [\"-y\", \"mcp-web-print-pdf\"] }\n```\n\n> 从源码调试时，把 `command` 换成 `node`、`args` 换成 `[\"<repo>/bin/mcp.js\"]` 即可，其余字段不变。\n\n### Claude Desktop\n\n`%APPDATA%\\Claude\\claude_desktop_config.json`：\n\n```json\n{\n  \"mcpServers\": {\n    \"webprint\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-web-print-pdf\"],\n      \"env\": { \"WEBPRINT_PORT\": \"16794\" }\n    }\n  }\n}\n```\n\n### Cursor\n\n项目级 `.cursor/mcp.json`（只对当前项目生效），或全局 `~/.cursor/mcp.json`：\n\n```json\n{\n  \"mcpServers\": {\n    \"webprint\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-web-print-pdf\"],\n      \"env\": { \"WEBPRINT_PORT\": \"16794\" }\n    }\n  }\n}\n```\n\n改完在 Cursor 的 **Settings → MCP** 里确认 `webprint` 是绿灯；工具会出现在 Agent 的工具列表里。\n\n### DeepSeek Harness（dsh）\n\ndsh 用 `@deepseek-ai/dsh-mcp-client` 挂载外部 MCP。编辑当前 profile 的\n`~/.dsh/profiles/<profile>/cordis.patch.yml`，追加一段 `insert`：\n\n```yaml\n- insert:\n    - id: mcp-webprint\n      name: '@deepseek-ai/dsh-mcp-client'\n      config:\n        serverName: webprint\n        transport: stdio\n        command: npx\n        args:\n          - '-y'\n          - 'mcp-web-print-pdf'\n        toolCallTimeoutMs: 180000\n```\n\n保存后 dsh 会热加载（`serverName` 需匹配 `[A-Za-z0-9_-]{1,32}`，且同一 profile 内唯一）。\n模型侧看到的工具名带命名空间：`mcp__webprint__printHtml`、`mcp__webprint__getPrinterList`、\n`mcp__webprint__batchPrint` …\n\n### Claude Code\n\n```bash\nclaude mcp add --scope user webprint -- npx -y mcp-web-print-pdf\nclaude mcp list\n```\n\n`--scope user` 全局可用；去掉则只对当前项目生效。团队共享可以提交项目根的 `.mcp.json`：\n\n```json\n{\n  \"mcpServers\": {\n    \"webprint\": {\n      \"type\": \"stdio\",\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-web-print-pdf\"]\n    }\n  }\n}\n```\n\n### VS Code + GitHub Copilot\n\n`.vscode/mcp.json`（注意顶层是 `servers`，不是 `mcpServers`）：\n\n```json\n{\n  \"servers\": {\n    \"webprint\": {\n      \"type\": \"stdio\",\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-web-print-pdf\"]\n    }\n  }\n}\n```\n\n命令面板运行 **MCP: List Servers** 可启动 / 重启 / 看输出；便携格式 `.mcp.json` 则用 `mcpServers`。\n\n### OpenAI Codex CLI\n\n`~/.codex/config.toml`：\n\n```toml\n[mcp_servers.webprint]\ncommand = \"npx\"\nargs = [\"-y\", \"mcp-web-print-pdf\"]\n```\n\n### Cline / Roo Code / Kilo Code\n\nCline 面板 → MCP Servers → Configure → Configure MCP Servers，编辑 `cline_mcp_settings.json`：\n\n```json\n{\n  \"mcpServers\": {\n    \"webprint\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-web-print-pdf\"],\n      \"disabled\": false\n    }\n  }\n}\n```\n\nRoo Code / Kilo Code 是 Cline 的分叉，配置结构相同，只是文件路径不同。\n\n### Cherry Studio\n\n设置 → **MCP 服务器** → **添加服务器**：\n\n- 类型：`STDIO`\n- 命令：`npx`\n- 参数：`-y mcp-web-print-pdf`\n\n保存后回到聊天框，打开输入框旁的 MCP 开关即可。\n\n### Trae\n\n设置 → **MCP** → **手动添加**，粘贴：\n\n```json\n{\n  \"mcpServers\": {\n    \"webprint\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-web-print-pdf\"]\n    }\n  }\n}\n```\n\n项目级配置放在 `.trae/mcp.json`（需先在设置里打开「项目级 MCP」）。\n\n### 其它宿主\n\n| 宿主 | 配置位置 | 顶层键 |\n|---|---|---|\n| CodeBuddy | `settings.json` | `mcpServers`（加 `\"disabled\": false`） |\n| Qoder | `~/.qoder/settings.json` | `mcpServers`（或 `qoder mcp add webprint -- npx -y mcp-web-print-pdf`） |\n| JetBrains AI Assistant | Settings → Tools → AI Assistant → MCP → Add | `mcpServers`（也可直接 Import from Claude） |\n| Windsurf | `~/.codeium/windsurf/mcp_config.json` | `mcpServers` |\n| GitHub Copilot CLI | `~/.copilot/mcp-config.json` | `mcpServers` |\n\n> ChatGPT / claude.ai 网页版只接受远程 HTTP MCP，不能直连本机的 stdio server；要支持它们需要再加一层\n> HTTP 桥（本项目暂未提供）。Gemini CLI 个人版已转向 Antigravity，这里不再单列。\n\n> 客户端端口默认 `16794`，可用 `WEBPRINT_PORT` 覆盖；WebSocket 请求超时默认 120s，可用\n> `WEBPRINT_TIMEOUT`（毫秒）覆盖。\n\n## 工具\n\n工具名与 `web-print-pdf@2.x` 的方法名一一对应（`utils.` 前缀不能出现在 MCP 工具名里，故省略）。\n只有 `printFile` 是本仓库额外加的——上游没有「按本机路径打印」的方法。\n\n### 状态与打印机\n\n| 工具 | 对应 | 作用 |\n|---|---|---|\n| `getConnectStatus` | `utils.getConnectStatus` | 检查客户端是否在线 |\n| `getPrinterList` | `utils.getPrinterList` | 列出本机打印机（名称 + 驱动） |\n| `getPrinterPapers` | `utils.getPrinterPapers` | 查询某台打印机支持的纸张，用于填 `paper_format` / `print_options.bin` |\n\n### 打印\n\n所有打印工具默认 `dry_run: false`：直接出纸；要只渲染预览请显式传 `dry_run: true`\n（或 `extra_options.action: \"preview\"`）。默认会真的用纸，请先确认打印机和纸张。\n\n> 不传 `paper_format` 时，PDF 渲染默认用 A4，但打印阶段会沿用客户端默认打印机的纸张。\n> 要固定纸张（比如热敏 80mm、面单 100×150），请显式传 `paper_format` / `pdf_options`。\n\n| 工具 | 作用 |\n|---|---|\n| `printHtml` | 打印 HTML 字符串 |\n| `printHtmlByUrl` | 抓取网页后打印 |\n| `printHtmlByBase64` | 打印 Base64 HTML |\n| `printPdfByUrl` | 打印 PDF 链接 |\n| `printPdfByBase64` | 打印 Base64 PDF |\n| `printImageByUrl` | 打印图片链接 |\n| `printImageByBase64` | 打印 Base64 图片 |\n| `printFile` | 按扩展名自动选通道，打印本机 `.pdf` / `.html` / 图片（额外提供） |\n| `batchPrint` | 一次提交多个混合任务 |\n\n> `batchPrint` 的任务格式以客户端为准：每项是 `{ type, data, pdfOptions?, printOptions?, extraOptions? }`，\n> **不是**上游 README 示例里的 `content` / `url` / `base64`。`data` 按 `type` 解释：`printHtml` 放 HTML，\n> `…ByUrl` 放地址，`…ByBase64` 放 base64。\n\n### 客户端设置\n\n| 工具 | 对应 | 说明 |\n|---|---|---|\n| `setTitle` | `utils.setTitle(title \\| null)` | 设置窗口标题 |\n| `setThemeColor` | `utils.setThemeColor(color \\| null)` | 设置主题色 |\n| `switchTabsVisibility` | `utils.switchTabsVisibility(tabs \\| null)` | 切换标签页显隐 |\n| `setContactUsTabInnerHtml` | `utils.setContactUsTabInnerHtml(html \\| null)` | 设置「联系我们」页面 |\n\n这四个都支持 `reset: true` 恢复默认——有些宿主会把 JSON `null` 序列化成字符串 `\"null\"`，这时用\n`reset: true` 比传 `null` 稳。\n\n> 0.1.0 用的是 snake_case（`print_status` / `list_printers` / `print_html` / `print_pdf_url`），\n> 0.2.0 起统一改成上游方法名，对应关系：`print_status` → `getConnectStatus`、`list_printers` →\n> `getPrinterList`、`print_html` → `printHtml`、`print_pdf_url` → `printPdfByUrl`。\n\n## 参数\n\n打印工具共用一套参数，与上游四个实参一一对应：\n\n| MCP 参数 | 对应 | 说明 |\n|---|---|---|\n| 内容字段 | 第 1 个实参 | `html` / `url` / `base64` / `path` / `tasks` |\n| `pdf_options` | `pdfOptions` | 排版成 PDF：纸张、边距、页眉页脚、背景、水印、页码… |\n| `print_options` | `printOptions` | 投递打印机：打印机名、份数、单双面、缩放、纸盒、热敏锐化… |\n| `extra_options` | `extraOptions` | `action`、`requestTimeout`、`cookies`、`httpHeaders`、`localStorages`… |\n| `dry_run` | — | 默认出纸；`true` 只预览；显式 `action` 优先 |\n| `paper_format` | — | 便捷参数，等价于 `print_options.paperFormat` |\n| `printer_name` | — | 便捷参数，等价于 `print_options.printerName` |\n| `copies` | — | 便捷参数，等价于 `print_options.copies` |\n\n三个 options 对象中，`pdf_options` / `print_options` 走客户端白名单校验（字段名写错会直接报错）；\n`extra_options` 允许任意自定义键，会原样透传并在响应里返回。\n\n合并规则：**对象里显式写的字段优先**，便捷参数只补空缺。\n\n### `pdf_options`\n\n`paperFormat`、`width`、`height`、`displayHeaderFooter`、`headerTemplate`、`footerTemplate`、\n`landscape`、`margin{top,right,bottom,left}`、`pageRanges[{from,to}]`、`preferCSSPageSize`、\n`printBackground`、`scale`、`outline`、`tagged`、`watermark`、`pageNumber`。\n\n> `pdfOptions.paperFormat` 只认固定枚举（A0–A6 / Letter / Legal / Tabloid / Ledger）。\n> 80mm 小票、100×150 面单这类自定义尺寸请改用 `width` + `height`，不要设 `paperFormat`。\n\n### `print_options`\n\n`paperFormat`（任意纸名，含打印机专有尺寸）、`colorful`、`landscape`、`printerName`、\n`pageRanges`、`copies`、`duplexMode`（`simplex` / `duplex` / `duplexshort` / `duplexlong`）、\n`scaleMode`（`noscale` / `shrink` / `fit`）、`subset`（`odd` / `even`）、`bin`、`sharp`、\n`dpi` / `threshold`（`sharp: true` 时的光栅参数，默认 203 / 160）。\n\n### `extra_options`\n\n`action`（`print` / `preview`）、`requestTimeout`（秒）、`devtool`、`cookies`、`httpHeaders`、\n`localStorages`、`sessionStorages`，以及任意自定义键（会随响应原样返回）。\n\n## 示例\n\n预览一张 A4 发票（不出纸）：\n\n```json\n{\n  \"tool\": \"printHtml\",\n  \"arguments\": {\n    \"html\": \"<h1>发票 #12345</h1><p>合计 ¥99.99</p>\",\n    \"dry_run\": true,\n    \"paper_format\": \"A4\",\n    \"pdf_options\": { \"printBackground\": true, \"margin\": { \"top\": \"10mm\", \"bottom\": \"10mm\" } }\n  }\n}\n```\n\n真正打印到指定打印机、双面、两份：\n\n```json\n{\n  \"tool\": \"printHtml\",\n  \"arguments\": {\n    \"html\": \"<h1>对账单</h1>\",\n    \"dry_run\": false,\n    \"printer_name\": \"财务室激光\",\n    \"copies\": 2,\n    \"print_options\": { \"duplexMode\": \"duplex\", \"colorful\": false }\n  }\n}\n```\n\n打印 80mm 热敏小票（自定义纸宽）：\n\n```json\n{\n  \"tool\": \"printHtml\",\n  \"arguments\": {\n    \"html\": \"<div style='width:72mm'>小票内容</div>\",\n    \"dry_run\": false,\n    \"pdf_options\": { \"width\": \"80mm\", \"height\": \"297mm\", \"margin\": { \"top\": \"0\", \"bottom\": \"0\", \"left\": \"2mm\", \"right\": \"2mm\" } },\n    \"print_options\": { \"paperFormat\": \"80mm\", \"sharp\": true }\n  }\n}\n```\n\n打印本机 PDF 文件：\n\n```json\n{ \"tool\": \"printFile\", \"arguments\": { \"path\": \"<path-to-pdf>\", \"dry_run\": false } }\n```\n\n批量混合任务：\n\n```json\n{\n  \"tool\": \"batchPrint\",\n  \"arguments\": {\n    \"dry_run\": false,\n    \"printer_name\": \"仓库标签机\",\n    \"tasks\": [\n      { \"type\": \"printHtml\", \"data\": \"<h1>面单 1</h1>\" },\n      { \"type\": \"printPdfByUrl\", \"data\": \"https://example.com/a.pdf\" },\n      { \"type\": \"printHtmlByUrl\", \"data\": \"https://example.com/report\" }\n    ]\n  }\n}\n```\n\n> 批量任务里每个 `extraOptions.action` 必须一致（客户端在浅合并后会校验），所以别在单个任务里\n> 混用 `print` 和 `preview`；统一用顶层 `dry_run` 控制即可。\n\n## 常见问题 FAQ\n\n### MCP 是什么？为什么打印要经过 MCP？\n\nMCP（Model Context Protocol）是模型调用外部工具的通用协议。把打印能力做成 MCP server 后，\nClaude、Cursor、Cline、dsh 这些宿主不用各写一套对接代码，接一次就能在所有宿主里用同一批工具。\n\n### 需要联网吗？\n\n不需要。所有打印请求都走本机 `ws://127.0.0.1:16794/websocket/standard`，只有首次 `npx` 下载包时需要网络。\n\n### 需要额外买授权吗？\n\n预览（`extra_options.action = \"preview\"` / `dry_run: true`）只渲染不送印，不检查授权；\n正式出纸由 Web打印专家客户端校验，未授权时会返回 `Not allowed to use, please purchase authorization`。\n\n### 会不会「偷偷」打印、浪费纸？\n\n默认 `dry_run: false` 是直接出纸（和服务端 API 语义一致）。调试阶段请显式传 `dry_run: true`，\n确认排版后再改成 `false`。\n\n### 支持热敏小票机 / 标签打印机吗？\n\n支持。热敏、针式、面单机都走系统打印驱动，用 `pdf_options.width/height` 控制版面，\n用 `print_options.paperFormat` 指定驱动里的纸名，必要时开 `sharp: true` + `dpi` 提升小票清晰度。\n\n### 和 Playwright / Puppeteer 打印有什么区别？\n\nPlaywright 是在无头 Chromium 里渲染成 PDF 再调用系统打印，需要单独下载浏览器内核，\n拿不到驱动级参数（纸盒、锐化、双面翻转）；本项目直接把参数交给已经装好的客户端和驱动，\n更贴近「真的在这台机器上打印」。\n\n### 支持 macOS / Linux / 国产系统吗？\n\n客户端支持 Windows 10/11、macOS 11+，以及 Linux / 银河麒麟 / 统信 UOS；本 MCP 是纯 Node 进程（Node ≥ 18），\n能跑客户端的地方就能跑它。\n\n### 为什么预览只返回一个 URL，模型看不到图？\n\n预览返回的是 `pdfUrl` / `printPreviewUrl`，MCP 通道里没有图片内容。要让模型「看图」，\n需要额外把 PDF 转成 PNG 再喂给模型。\n\n### 大文件 / 大 HTML 为什么失败？\n\nMCP 的 stdio 单条消息默认上限 10MB，Base64 会再膨胀约 4/3。大文件请用 `printFile`（本机读文件）\n或先挂到 HTTP 地址用 `printPdfByUrl` / `printImageByUrl`。\n\n### 端口不是 16794 怎么办？\n\n设环境变量 `WEBPRINT_PORT`；请求超时设 `WEBPRINT_TIMEOUT`（毫秒）。这两个都从宿主配置的 `env` 传入。\n\n### 能让 ChatGPT / claude.ai 网页版直接用吗？\n\n暂时不行。网页版只接受远程 HTTP MCP，需要额外一层 HTTP 桥接本机 stdio server（本项目未提供）。\n\n### 打印出来是空白 / 内容被截断？\n\n通常是纸张尺寸和内容不匹配：显式传 `paper_format` 或 `pdf_options.width/height`，并打开\n`printBackground: true`（背景色 / 背景图默认不打）。\n\n## 大文件怎么打\n\nMCP 的 stdio 通道单条消息默认上限 **10MB**（SDK 的 `ReadBuffer`），所以：\n\n- `printHtmlByBase64` / `printPdfByBase64` / `printImageByBase64` 只适合小文件——\n  约 7MB 以内的 base64（≈5MB 原始文件）。超过后连接会被直接关闭，工具里来不及报错。\n- 大 PDF / 图片 / HTML 请用 `printFile`：由 MCP server 在本机读取文件，再通过 WebSocket 发给\n  客户端，绕开 MCP 的消息上限。\n- 也可以先把文件挂到 HTTP 地址，用 `printPdfByUrl` / `printImageByUrl` / `printHtmlByUrl`。\n\n## 与 [web-print-pdf@2.1.9](https://www.npmjs.com/package/web-print-pdf) 的覆盖对照\n\n| 上游公开 API | 本 MCP |\n|---|---|\n| `printHtml` / `printHtmlByUrl` / `printHtmlByBase64` | ✅ 同名 |\n| `printPdfByUrl` / `printPdfByBase64` | ✅ 同名 |\n| `printImageByUrl` / `printImageByBase64` | ✅ 同名 |\n| `batchPrint` | ✅ 同名 |\n| `utils.getConnectStatus` / `utils.getPrinterList` / `utils.getPrinterPapers` | ✅ 去掉 `utils.` 前缀后同名 |\n| `utils.setTitle` / `utils.setThemeColor` / `utils.switchTabsVisibility` / `utils.setContactUsTabInnerHtml` | ✅ 去掉 `utils.` 前缀后同名 |\n| `utils.onResponse` / `utils.onError` | — 事件回调，MCP 里每个调用都有返回值，不需要 |\n| `_printByRawMessage` | — 下划线私有 API，未纳入 |\n\n外加一个上游没有的方法：`printFile`（按本机路径打印，避免把大文件塞进 MCP 消息）。\n\n## 实现要点\n\n- 请求字段放在消息**顶层**（`content` / `url` / `printOptions` …），不在 `data` 里；这是客户端\n  `websocket/standard/index.js` 的约定，与 `web-print-pdf` 的 `dist/index.js` 一致。\n- 响应形如 `{ id, type, timestamp, success, data }`，`data` 里通常有 `pdfFileName` /\n  `pdfUrl` / `printPreviewUrl` / `pdfPath`。\n- `extraOptions.action = 'preview'` 时，客户端走 `core/printPdf._printPreview()`，只渲染不送印，\n  也**不检查授权**；`action = 'print'` 才会检查 `NOTALLOWUSE`。\n- `pdfOptions.paperFormat` 只认固定枚举；`printOptions.paperFormat` 认任意纸名——代码里对两者分别处理。\n- 客户端对 `pdfOptions` / `printOptions` 做**白名单校验**，未知字段直接报错；`extraOptions` 允许自定义键。\n- HTML / PDF 的 Base64 入参会去掉 `data:...;base64,` 前缀和空白字符；图片通道相反——客户端要求\n  `data:image/...;base64,` 前缀并把它原样塞进 `<img src>`，所以服务端会对裸 base64 按文件头补前缀。\n- stdout 是 MCP 协议通道，日志一律走 stderr。\n- 客户端侧实现见 `ElctronPrintWeb` 仓库：消息入口在 `electronApp/server/websocket/standard/`，\n  参数白名单在 `core/generatePdf` 与 `core/printPdf`。\n\n## 本地开发\n\n```bash\ngit clone https://github.com/weixiaoyi/mcp-web-print-pdf.git\ncd mcp-web-print-pdf\nnpm install\nnpm test\n```\n\n`npm test` 跑参数合并和默认 action 的单元测试；端到端冒烟见下一节。\n\n## 本地验证（没装客户端也能跑）\n\n```bash\n# 终端 1：假客户端（覆盖全部消息类型）\nnode test/mock-server.js\n\n# 终端 2：端到端冒烟，会走一遍 16 个工具\nnode test/smoke.js\n\n# 或交互式调试\nnpx @modelcontextprotocol/inspector node bin/mcp.js\n```\n\n装好宿主后也可以直接用模型验证：dsh 下工具名是 `mcp__webprint__printHtml` 这种带命名空间的形式，\n先 `getConnectStatus` 探活，再 `printHtml` + `dry_run: true` 看预览是否生成即可。\n\n## 已知边界\n\n- 只支持本机已启动的客户端；没有云端中继。\n- 打印是异步队列，返回的是「已提交」，不是「已出纸」。\n- 「已提交」只代表进了 Windows 打印队列；打印机暂停 / 离线 / 缺纸时队列会停住。可用\n  `Get-PrintJob -PrinterName \"<打印机名>\"` 看作业状态，别只看工具返回值。\n- 未授权时 `dry_run: false` 会报 `Not allowed to use, please purchase authorization`。\n- 预览返回的是 URL，agent 看不到图；要「给模型看图」还需把 PDF 转 PNG。\n- `printFile` 会读取 agent 指定的本机文件，只应在可信环境里启用。\n- 走 Base64 的工具受 MCP stdio 10MB 单条消息上限约束，大文件用 `printFile` 或 URL 通道。\n- 批量任务的所有 `extraOptions.action` 必须一致，否则客户端报错。\n- MCP 宿主一般给单次工具调用 60s 左右超时；批量或大文件可能被宿主掐断，需要调大宿主超时或拆批。\n- 预览模式下非法的 `printerName` 可能被客户端忽略而不报错，正式出纸前建议用 `action: \"print\"` 验证。\n- 参数与消息结构按 `ElctronPrintWeb`（客户端 1.0.9）源码校准：`batchPrint` 任务用 `data` 字段，\n  不是 `web-print-pdf` README 示例里的 `content` / `url` / `base64`。\n\n## 相关链接\n\n- 官网：<https://webprintpdf.com/>\n- 文档：<https://webprintpdf.com/docs/>\n- MCP 接入指南：<https://webprintpdf.com/docs/mcp-print/>\n- 客户端下载：<https://webprintpdf.com/downloadApp/>\n- web-print-pdf（npm）：<https://www.npmjs.com/package/web-print-pdf>\n- 本仓库：<https://github.com/weixiaoyi/mcp-web-print-pdf>\n- 更新日志：[CHANGELOG.md](https://github.com/weixiaoyi/mcp-web-print-pdf/blob/master/CHANGELOG.md)\n- 面向 AI 的说明：[llms.txt](https://github.com/weixiaoyi/mcp-web-print-pdf/blob/master/llms.txt)\n\n## 贡献\n\nIssue、PR、文档纠错都欢迎，先看 [CONTRIBUTING.md](https://github.com/weixiaoyi/mcp-web-print-pdf/blob/master/CONTRIBUTING.md)。\n\n如果这个项目帮你省了时间，点个 ⭐ 能让更多找「MCP 打印」的人看到它。\n\n## License\n\nMIT\n","readmeFilename":"README.md"}