TradeCheck Local Invoice Review

io.github.f-tigerv0.2.0更新于 Oct 10, 2026

Review orders and supplier invoices locally with exact arithmetic and source-linked findings.

概览

AI 生成的概览

在本地以精确小数运算核对采购订单与供应商发票,给出可溯源到来源的差异,并起草一封未发送的供应商澄清函。

功能
TradeCheck 是一个通过 MCP 暴露的确定性本地核对引擎。其工具可导入粘贴的 CSV 或 TSV 采购订单与发票表格(需显式指定从零开始的列映射),返回稳定的虚构示例,将数据核对为分页的差异列表,并起草英文或中文的未发送供应商澄清函。核对内容包括标识符、币种一致性、采购订单行映射、SKU 与单位、单价变动、累计数量、重复的供货编号,以及行、小计与表头算术。
适用场景
适合进口商和采购团队让助手比对一份采购订单、一份供应商发票及所提供的既往发票历史,并准备给供应商的澄清信息。仅适用于对所提供数据做双向匹配;无法核实交付、收货、质量、海关、制裁、银行信息或付款资格。
运行要求
作为本地 stdio 进程在桌面电脑上运行;清单声明无需认证、环境变量或请求头。需要 Node.js 22 或更高版本,安装固定版本的依赖,并将构建后的服务器路径注册到兼容 MCP 的桌面助手。服务器本身不发起网络请求。
安装前请注意
服务器不读取文档路径、不存储文档,但助手宿主可能按模型提供商自身的费用与数据条款,将附件和工具数据发送给该提供商。来源引用与完整性由调用方声明,并非加密证据。价格差异是匹配行上的带符号合计,不是多付款项或追回金额;payment_authorized 始终为 false。供应商草稿不会发送。未启用任何付费服务。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

TradeCheck MCP · 0.2.0 beta

A local tool for importer and purchasing-team invoice review. It compares one purchase order, one supplier invoice and supplied prior invoice history, then prepares an unsent supplier clarification. It is a deterministic review engine exposed through MCP plus a guided agent prompt. It is not a hosted model, OCR service, ERP integration or autonomous payment agent.

Try the browser workbench: https://rfqdesk.agiscorecard.com/agent

Start here

  1. Install Node.js 22 or newer. Download and extract the beta archive from the site.
  2. Open a terminal in the extracted tradecheck-mcp directory. Install the pinned dependencies and test the bundled build:
sh
npm ci --ignore-scripts --no-audit --no-fundnpm testnpm run demo

The demo connects a real MCP client over stdio, loads a fictional order and finds a signed price difference of EUR 44.00 and a cumulative quantity of 320 against 300 ordered. These are fictional discrepancies, not recovered money.

  1. Register the server with your MCP-compatible desktop assistant. For Claude Code, substitute your actual absolute path:
sh
claude mcp add tradecheck -- node /absolute/path/tradecheck-mcp/dist/server.js

Run /mcp in Claude Code and check that four TradeCheck tools appear. For Cursor, add this entry to its MCP configuration:

json
{"mcpServers":{"tradecheck":{"command":"node","args":["/absolute/path/tradecheck-mcp/dist/server.js"]}}}

On Windows use an absolute path such as C:/Users/you/tradecheck-mcp/dist/server.js. If node is not found by your desktop app, use its absolute executable path. The server is local stdio, not a remote URL.

  1. Ask the assistant: “Use TradeCheck's review_supplier_invoice prompt. First show the fictional example. Then help me prepare my PO and invoice, confirm the extracted fields with me, and produce a two-way review plus an unsent supplier clarification.”

If your host does not surface prompts, paste AGENT-WORKFLOW.md. Its ability to read PDF or image attachments depends on that host; this package does not perform OCR. No model evaluation of extraction quality has been completed. A real SDK client round trip is tested; the listed desktop hosts have not each been tested in this release.

Available tools

ToolInputOutput
tradecheck_import_tablesPO/invoice header metadata, CSV/TSV text and explicit zero-based column mappingsUnreviewed structured data, unknown prior history
tradecheck_example{}Stable fictional input and contract
tradecheck_reconcile{data, offset?:0, limit?:20}Summary, a page of findings, total finding count, next offset
tradecheck_supplier_draft{data, language?:"en"}Unsent subject/body with up to 20 exception/gap items

Read tradecheck://contract for scope. Use the example JSON instead of inventing fields. Decimal numbers must be strings. Unknown required amounts must be resolved; blank is not zero. Keep history_status:"unknown" when earlier invoices may be missing. Set extraction_reviewed:true only after a person reviews the fields against the original documents.

What is checked

Exact PO/supplier identifiers, currency consistency, explicit PO line mapping, SKU and unit, unit-price changes, cumulative supplied quantities, repeated supplied IDs, line/subtotal/header arithmetic. Legitimate partial billing is informational. All calculations use integer decimal scales and half-up rounding per line. Monetary totals use two decimals, or whole yen for JPY. Quantity supports three decimals and unit price four.

Supported currencies: USD, EUR, GBP, CAD, AUD, CNY, SGD, CHF, JPY. No FX or unit conversion. A matching SKU is not enough to infer a PO line. The input supports at most 100 PO/current lines, 20 earlier invoices and 1,000 earlier lines. Reports paginate at 25 findings maximum; each finding includes up to six source locators and an explicit refs_omitted count. The browser/full JSON report retains all supplied references.

Limits that affect the result

  • Two-way matching cannot verify delivery, receipt, quality, contract acceptance, customs, sanctions, bank details or payment eligibility.
  • Source references and completeness are caller assertions. They are not cryptographic evidence or independent document verification.
  • No negative values, credit notes, deposits, discounts, tax validation or alternate rounding conventions. Such documents require a different workflow.
  • Price variance is a signed total across comparable matched lines, not an overpayment, saving or recovered amount.
  • An empty exception list means only no exceptions in the supported supplied data. payment_authorized is always false.
  • Chinese drafts use a Chinese introduction and preserve English diagnostic lines; the assistant may translate them while preserving values and references.

Privacy and operation

The MCP makes no network requests, reads no document paths, stores no documents and has no telemetry. It only processes values the caller supplies. Your AI assistant may send attachments and tool data to its model provider; its fees and data terms still apply. The public browser demo runs locally. Optional site events contain no document data.

No paid service is enabled. The proposed €29/month team workspace is research only; saved histories, supplier mapping and batch management are not available. Beta use is governed by LICENSE.txt; dependency licenses are in THIRD-PARTY-NOTICES.txt.

Development and verification

sh
npm run buildnpm testnpm run demonpm run package

The package command stages an explicit allowlist, including the tested build, fixtures, documentation, sources and pinned dependencies manifest. It excludes repository contents, credentials, node_modules and buyer documents. Verify the download against SHA256SUMS.

The protocol and decimal contract tests are not a measurement of LLM, OCR or commercial accuracy. See EVALUATION.md for independent read-only protocol scenarios when included.

Spreadsheet input in v0.2

Paste CSV or tab-separated cells including headers. The browser previews five rows and all mappings; up to 100 data rows are imported. Columns must be explicitly mapped with no reuse. Filenames and physical row locators are preserved. Every header amount, currency, supplier and order ID is required. Localized decimals and numeric formulas are rejected; unknown charges are never zero-filled. Prior history begins unknown and extraction_reviewed begins false. Confirm against original documents before reconciliation. The MCP accepts the same text and zero-based mappings through tradecheck_import_tables.

Release archives use a fixed timestamp and explicit source allowlist. Bump the package/download version when release contents change. The audit report schema remains version 0.1.0; package version 0.2.0 adds input preparation without changing report semantics.

来源:agents/tradecheck-mcp/README.md,提交 2e748c7

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v0.2.0最新Oct 10, 2026