Purchase Order

io.github.theluckystrike由 GitHub 账号 theluckystrike 发布v0.22.6更新于 Oct 24, 2026

Purchase orders for suppliers: VAT line items, a delivery date, an A4 PDF, mark received.

概览

AI 生成的概览

本地 MCP 服务器,让助手创建、列出、生成和接收贷项通知单与采购订单,支持增值税、多币种和 A4 PDF 输出。

可以做什么
针对已有发票创建、列出、查看和删除贷项通知单,支持全额、部分和按行贷记,并按发票实际税率拆分增值税,另有纯文本和 A4 PDF 版本(PDF 为 Pro)。创建、列出、查看、收货和删除采购订单,含行项目、增值税、币种和预计交货日期,另有纯文本和 A4 PDF 版本(PDF 为 Pro)。生成按币种统计的已贷记金额、在订金额和逾期交货的账单报表(Pro)。查询并激活许可证,读取未结订单资源和催货提示词。
适用场景
适合需要为退货或重复开票开具贷项通知单、或向供应商下采购订单,并希望助手配合发票服务器中的发票一起起草、计算和跟踪这些单据的场景。
运行要求
作为桌面本地进程运行;npm 包尚未发布,目前可用 .mcpb 一键包或克隆后构建安装。它读取配套发票服务器中的发票和客户,应与其一同运行。可选的 Pro 许可证密钥通过 MCP_LICENSE_KEY 环境变量提供,离线校验。除此之外无需账户、API 密钥或网络访问。
安装前请注意
单据写入本地数据目录,且可被删除;单据一旦入账或已生成渲染文件便拒绝删除。PDF 输出和账单报表需要付费 Pro 许可证(一次性购买),免费版每个自然月限五份单据。许可证密钥属于机密,应避免放入共享配置。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Purchase Order,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-billing-docs

Credit notes and purchase orders, on the same engine as your invoices.

When a client sends work back, or you billed them twice, you owe them a credit note: a document that names the invoice it reverses and takes the money off it, with the VAT unwound at the rate you charged. When you order from a supplier, you owe them a purchase order: what you want, at what price, by when, with your own details on it. This server writes both, against the invoices and the clients the mcp-invoice server already holds, and it will not let a credit note give back more money than the invoice charged. Sending the same document twice is refused by the id of the one already there, and a document nothing depends on can be deleted, so a re-send never costs you a free-tier slot. Everything stays on your machine.

Built on @theluckystrike/mcp-invoice/lib: the money, VAT, currency and formatting code is the invoice server's, not a second copy of it, so a credit note and the invoice it reverses agree to the minor unit.

In the official MCP Registry (io.github.theluckystrike/billing-docs-credit-notes-purchase-orders).

[billing-docs demo]

npm publish for @theluckystrike/mcp-billing-docs is pending, so npx -y @theluckystrike/mcp-billing-docs returns 404 today. Until then, the .mcpb one-click bundle or a clone+build is the working path.

Install

Claude Desktop (claude_desktop_config.json):

json
{  "mcpServers": {    "billing-docs": {      "command": "npx",      "args": ["-y", "@theluckystrike/mcp-billing-docs"]    }  }}

Claude Code:

sh
claude mcp add billing-docs -- npx -y @theluckystrike/mcp-billing-docs

Cursor (.cursor/mcp.json):

json
{  "mcpServers": {    "billing-docs": {      "command": "npx",      "args": ["-y", "@theluckystrike/mcp-billing-docs"]    }  }}

Run mcp-invoice alongside it: this server reads that server's invoices and clients, and both take their name, address, VAT id and default currency from one shared business profile.

Tools

toolwhat it does
credit_note_createCredit an invoice: the whole thing, a gross amount, or named lines with quantities
credit_note_listEvery credit note, with the credited total per currency. Filter by invoice, client or date
credit_note_getOne credit note in full
credit_note_pdfThe A4 PDF, titled CREDIT NOTE and carrying the invoice number it reverses (Pro)
credit_note_textThe plain-text version to paste into an email
credit_note_deleteRemove one that was never posted to its invoice or rendered: the free monthly slot comes back
purchase_order_createRaise an order: line items, VAT, currency, expected delivery date
purchase_order_listEvery order with its status: open, partially received, received
purchase_order_getOne order in full, with its receipts
purchase_order_pdfThe A4 PDF, titled PURCHASE ORDER (Pro)
purchase_order_textThe plain-text version to send the supplier
purchase_order_receiveMark an order received, in full or in part
purchase_order_deleteRemove one with nothing received against it and no render: the free monthly slot comes back
billing_docs_reportCredited per currency, on order per currency, deliveries past their date (Pro)
license_status, license_activateFree or Pro, and how to upgrade

One resource, billing-docs://open-orders, and one prompt, chase_deliveries.

Free vs Pro

FreePro
Documents per calendar month5, credit notes and purchase orders togetherUnlimited
credit_note_delete, purchase_order_deleteYes: the cap counts what is in the store, so a delete returns the slotYes
credit_note_text, purchase_order_textYes, unlimitedYes
Full, partial and per-line credit notes, VAT, multi-currency, receiving ordersYesYes
credit_note_pdf, purchase_order_pdfNoYes, plus your logo and no footer credit
billing_docs_reportNoYes

Get Pro: https://mcp.zovo.one/buy/billing-docs ($19 one-time for this server, $39 for the bundle).

A measured thing

Crediting part of a mixed-VAT invoice at one rate is wrong by more than the rounding you would expect. An invoice of EUR 1,000.00 consulting at 23% plus EUR 500.00 print at 8% totals EUR 1,770.00. Credit ten percent of it, EUR 177.00, the way a single-rate credit note would: net EUR 143.90, VAT EUR 33.10. This server splits the credit across the rates the invoice actually used, in proportion to each rate's share of the total, and gets net EUR 150.00 with VAT of EUR 23.00 at 23% and EUR 4.00 at 8%, EUR 27.00 in all. The gross the client sees is identical either way. The VAT line differs by EUR 6.10, 22.6 percent of it, and that is the number that goes on a VAT return.

Asserted in test/unit.test.mjs, "a credit note by amount splits the gross across the invoice's VAT rates and reuses each rate".

Privacy

All data stays local: ${XDG_DATA_HOME:-~/.local/share}/mcp-servers/billing-docs/. No account, no API key, no network call, ever. Licence keys are verified offline.

Built by theluckystrike. Support: [email protected]

Use these docs as an MCP server

Any MCP client (Claude, Cursor, Windsurf, VS Code) can read this repository's documentation directly via GitMCP - no install:

来源:servers/billing-docs/README.md,提交 6535b33

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

3
  1. v0.22.6最新Oct 14, 2026
  2. v0.22.3Sep 23, 2026
  3. v0.21.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分