GCC e-Invoice Preflight Oracle

tech.noahsarch由 noahsarch.tech 发布官方发布者v0.1.1更新于 Nov 1, 2026

Validate UAE PINT AE and Saudi ZATCA e-invoices: UBL, official Schematron, QR, fix hints.

发布方自己的服务:Business-Day Oracle

已验证Streamable HTTP可网页运行金融商业与电商

概览

AI 生成的概览

远程 MCP 服务器,用于对阿联酋 PINT AE 与沙特 ZATCA 电子发票做预检,返回判定结果、官方规则问题与修复提示。

可以做什么
  • 按 UBL 2.1 XSD、PINT AE Schematron 及阿联酋交叉检查校验单张 UBL 发票或贷记单,或执行 ZATCA 预检
  • 对最多 100 份文档做批量预检,给出就绪率、最常见拒收规则,可选生成可打印 HTML
  • 在不校验的情况下提取 UBL 文档的卖方、买方、金额、增值税明细与规则集
  • 按严重级别或文本查询官方 PINT AE 规则编号、级别与条文
  • 校验阿联酋 TRN 格式并推导 Peppol 0235 参与方标识
  • 解码或编码沙特电子发票二维码的 base64 TLV
适用场景
适合在向认证服务商或 ZATCA 提交前准备或测试阿联酋、沙特电子发票时使用,可提前发现架构、Schematron 与二维码问题,也适用于 ERP 回归测试批次和上线就绪检查。
运行要求
远程 streamable HTTP 端点,无需本地安装。批量就绪报告等付费工具需要提供方发放的 X-API-Key 请求头;目录与免费工具无需该密钥。
安装前请注意
批量就绪报告按文档计费,调用可能产生费用。发票文档会发送至第三方服务;服务器声明仅在内存中校验、不存储也不记录日志。请将 API 密钥视为机密。

安装

在 SourceWeft 中

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

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/tech.noahsarch%2Feinvoice-preflight/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "gcc-e-invoice-preflight-oracle": {
      "type": "http",
      "url": "https://einvoice.noahsarch.tech/mcp"
    }
  }
}

工具

7

validate_invoice

Validate one e-invoice (UAE PINT AE / KSA ZATCA)

Full preflight of one UBL Invoice or CreditNote: XML well-formedness, UBL 2.1 XSD, the official PINT AE Schematron (≈300 rules incl. the UAE jurisdiction overlay) or the ZATCA pre-check, plus advisory cross-checks. Returns a verdict and every finding with rule id, severity, fields, location and fix hint. Example: xml '<Invoice …>', jurisdiction 'auto'. Response: result with verdict (ACCEPTED | ACCEPTED_WITH_WARNINGS | REJECTED), findings[] (id, severity, message, fields, location, fix_hint, source = xsd | schematron | preflight), counts, ruleset version and timings, plus data_confidence, estimated_items[], sources[], data_version, warnings[] and a disclaimer. Documents are validated in memory and never stored or logged.

输入参数xml必填preflightinclude_infojurisdiction

readiness_report

Validate up to 100 e-invoices and summarise readiness

Batch preflight for a go-live check or an ERP regression suite: per-document verdicts, readiness percentage, the most frequent rejection rules across the batch, optional printable HTML. Charged per document. Response: result with verdict (ACCEPTED | ACCEPTED_WITH_WARNINGS | REJECTED), findings[] (id, severity, message, fields, location, fix_hint, source = xsd | schematron | preflight), counts, ruleset version and timings, plus data_confidence, estimated_items[], sources[], data_version, warnings[] and a disclaimer. Documents are validated in memory and never stored or logged.

输入参数formatdocuments必填preflightjurisdiction

extract_summary

Read the key fields of a UBL invoice

Seller/buyer (names, TRN, endpoint, legal registration, emirate), dates, currency, totals, VAT breakdown, line count, payment means, attachments and the detected rule set — without validating. Free. Response: result with verdict (ACCEPTED | ACCEPTED_WITH_WARNINGS | REJECTED), findings[] (id, severity, message, fields, location, fix_hint, source = xsd | schematron | preflight), counts, ruleset version and timings, plus data_confidence, estimated_items[], sources[], data_version, warnings[] and a disclaimer. Documents are validated in memory and never stored or logged.

输入参数xml必填

list_rules

List the official PINT AE rules

Rule ids, severities and texts from the installed PINT AE Schematron (shared PINT rules and the -ae jurisdiction rules), filterable by severity or text, with fix hints where we have them. Free. Example: contains 'TaxPointDate'. Response: result with verdict (ACCEPTED | ACCEPTED_WITH_WARNINGS | REJECTED), findings[] (id, severity, message, fields, location, fix_hint, source = xsd | schematron | preflight), counts, ruleset version and timings, plus data_confidence, estimated_items[], sources[], data_version, warnings[] and a disclaimer. Documents are validated in memory and never stored or logged.

输入参数containsseverityjurisdiction

check_trn

Check a UAE TRN and derive the Peppol endpoint

Format check of a UAE Tax Registration Number (15 digits) and derivation of the TIN / Peppol participant identifier (scheme 0235 = first 10 digits). Free. Example: trn '100 1234 5670 0003'. Response: result with verdict (ACCEPTED | ACCEPTED_WITH_WARNINGS | REJECTED), findings[] (id, severity, message, fields, location, fix_hint, source = xsd | schematron | preflight), counts, ruleset version and timings, plus data_confidence, estimated_items[], sources[], data_version, warnings[] and a disclaimer. Documents are validated in memory and never stored or logged.

输入参数trn必填

zatca_qr_decode

Decode a ZATCA QR (TLV)

Decode the base64 TLV of a Saudi e-invoice QR into seller name, VAT number, timestamp, totals, hash, signature and key tags, with phase detection and format issues. Free. Response: result with verdict (ACCEPTED | ACCEPTED_WITH_WARNINGS | REJECTED), findings[] (id, severity, message, fields, location, fix_hint, source = xsd | schematron | preflight), counts, ruleset version and timings, plus data_confidence, estimated_items[], sources[], data_version, warnings[] and a disclaimer. Documents are validated in memory and never stored or logged.

输入参数qr必填

zatca_qr_encode

Build a ZATCA QR (TLV) payload

Encode the five phase-1 fields (plus optional phase-2 hash/signature/key tags) into the base64 TLV string that goes into the QR image and the UBL QR reference. Free. Response: result with verdict (ACCEPTED | ACCEPTED_WITH_WARNINGS | REJECTED), findings[] (id, severity, message, fields, location, fix_hint, source = xsd | schematron | preflight), counts, ruleset version and timings, plus data_confidence, estimated_items[], sources[], data_version, warnings[] and a disclaimer. Documents are validated in memory and never stored or logged.

输入参数timestamp必填vat_total必填public_keyvat_number必填seller_name必填invoice_hashtotal_with_vat必填ecdsa_signaturecertificate_signature

版本历史

1
  1. v0.1.1最新Nov 1, 2026

评分

已满足适用检查项的 83%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。

其他 Noahsarch 集成