Po Pilot Mcp

io.github.maskchanel14-source由 GitHub 帳號 maskchanel14-source 發布v1.0.0更新於 Oct 26, 2026

Post-Stocky Shopify replenishment, MOQ Purchase Order generator, and 3-way invoice match MCP.

發布方自己的服務:QuickBooks Connector by Meridian

概覽

AI 產生的概覽

本機 MCP 伺服器,為 Shopify 商家計算補貨計畫、產生含到岸成本的供應商採購單,並進行三方發票核對。

可以做什麼
  • 計算補貨計畫:依 SKU 給出 ABC 分類、排除缺貨影響的日均銷量、安全庫存、再訂購點與建議訂購量
  • 產生供應商採購單:整箱取整、MOQ、供應商最低訂購量、美國關稅與運費到岸成本、Open-to-Buy 現金上限,並輸出 Shopify 草稿採購單與 POS 調撥 CSV
  • 將採購單、倉庫收貨數量與供應商發票做三方核對,給出核驗後應付金額、QuickBooks 與 Xero 帳單 CSV 及扣款備忘郵件
  • 從貼上的 Stocky 採購單 CSV 匯出檔重建供應商檔案、實際交期與整箱倍數
適用情境
適合失去 Stocky 採購邏輯的 Shopify 商家與美國批發商,讓助理執行再訂購計算、草擬供應商採購單或稽核供應商發票。示範模式與 CSV 輸入可在沒有商店憑證的情況下先行評估。
執行需求
以 npm 套件形式透過 npx 在本機執行(需 Node.js),使用 stdio 傳輸,也可選用本機 Streamable HTTP 端點。示範或 CSV 模式無需憑證;連接即時 Shopify 需 SHOPIFY_STORE_DOMAIN 與唯讀的 SHOPIFY_ACCESS_TOKEN,付費方案另需 PO_PILOT_LICENSE_KEY。
安裝前請注意
即時商店模式需以環境變數提供 Shopify Admin 存取權杖(SHOPIFY_ACCESS_TOKEN)與授權金鑰(PO_PILOT_LICENSE_KEY)。免費沙箱每次呼叫限 25 個 SKU 與 15 個發票 SKU;無限用量、即時 Shopify 同步與 n8n 工作流程需購買一次性授權或雲端訂閱。工具自稱唯讀,產出 CSV 與郵件文字而非直接寄送。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Po Pilot Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

PO Pilot MCP (po-pilot-mcp)

[npm v1.0.0] [Get Solo Kit ($49)] [Get Agency 10-Store ($249)] [Hosted Cloud ($0 / $29)] [Glama Grade A] [License: MIT]

[PO Pilot — Post-Stocky Shopify PO & 3-Way Match Kit]

Solo Pro Kit + 3 n8n Workflows ($49) →   |   Agency / 3PL 10-Store Suite ($249) →   |   Hosted Cloud ($0 / $29 mo) →   |   Glama (Grade A) →

Post-Stocky replenishment math, Open-to-Buy & US tariff landed-cost Purchase Orders, Shopify POS barcode Transfer CSVs, Stocky CSV supplier recovery, and Accounts Payable 3-way invoice matching (with QuickBooks Online & Xero Bill CSV exports) for Shopify merchants and US wholesalers.

Shopify retired Stocky on August 31, 2026. Native Shopify Admin stores inventory counts and draft PO records, yet drops the purchasing logic merchants relied on: reorder point calculation, carton/case-pack rounding, vendor minimum order thresholds, supplier export, and invoice discrepancy checks. Meanwhile, Shopify's official Storefront and UCP MCP endpoints (catalog, cart, checkout, policies) serve front-office shoppers only.

po-pilot-mcp connects Claude Desktop, Claude Code, Cursor, or n8n to four deterministic back-office purchasing tools. Every tool runs locally or over Streamable HTTP with zero required credentials in demo_mode or CSV mode, and optionally connects to live Shopify Admin GraphQL (2026-04) when read-only store credentials are supplied.


Setup in Under 60 Seconds

Option A: Zero-Key Quickstart (Claude Desktop / Cursor)

Add this block to claude_desktop_config.json or .cursor/mcp.json (exact version pin recommended for reproducible deployments):

json
{  "mcpServers": {    "po-pilot": {      "command": "npx",      "args": ["-y", "[email protected]"]    }  }}

Option B: Claude Code CLI (One Command)

bash
claude mcp add po-pilot -- npx -y [email protected]

Option C: Live Shopify Store Mode (Optional Read-Only Admin Token)

Create a custom app in Shopify Admin -> Settings -> Apps and sales channels -> Develop apps with three read-only scopes: read_products, read_inventory, and read_orders.

json
{  "mcpServers": {    "po-pilot": {      "command": "npx",      "args": ["-y", "[email protected]"],      "env": {        "PO_PILOT_LICENSE_KEY": "your_polar_or_pop1_license_key",        "SHOPIFY_STORE_DOMAIN": "your-store.myshopify.com",        "SHOPIFY_ACCESS_TOKEN": "shpat_your_read_only_token"      }    }  }}

Option D: Remote Streamable HTTP (n8n / Cloud Gateways / MCPize)

bash
npx -y [email protected] --http# Listening on http://0.0.0.0:8080/mcp (Health check: GET /health)

3 Copy-Paste Prompts (Test Immediately)

Prompt 1: Monday Morning Vendor PO Run + Landed Cost + POS Barcode CSV (Zero API Keys Needed)

text
Use po-pilot to run `build_supplier_purchase_orders` with `demo_mode: true`, `service_level: "95%"`, and `max_cash_budget_usd: 3800`. Show me:1. Which SKUs are at CRITICAL stockout risk after adjusting for past stockout days,2. True landed unit costs after US import tariffs + freight (and any margin-erosion warnings) plus how Open-to-Buy rationed cartons under my $3,800 cash cap,3. Both the Shopify Admin Draft PO CSV (`SKU,Supplier SKU,Quantity,Cost,Tax %`) and the Shopify POS Inventory Transfer CSV (`SKU,Barcode,Quantity`), and4. The ready-to-send PO emails for each vendor.

Prompt 2: Rescue Un-Exportable Supplier Data from Stocky CSV

text
Shopify Stocky never exported our supplier directory before shutting down. Run `migrate_stocky_csv_snapshot` with `demo_mode: true` (or use the Stocky Purchase Orders CSV I paste below) to reconstruct each vendor's real observed lead time in days, inferred carton pack sizes, latest unit costs, and a ready `supplier_rules` JSON configuration.

Prompt 3: Finance Ops 3-Way Match Audit + QuickBooks/Xero Verified Bill CSV

text
Run `reconcile_po_three_way_match` with `demo_mode: true`. Cross-check our original Purchase Order against warehouse dock receiving counts and the supplier's billed invoice. List every unit-price overcharge, short-shipment billed in full, unapproved surcharge, and freight cap overage, then give me the verified USD amount to pay ($2,386.20), the ready-to-import QuickBooks Online & Xero Bill CSVs (excluding unapproved fees), and the Debit Memo email to send their AR team.

Tool Reference (4 Workflow Tools)

Tool NamePurposeInputsKey OutputsAnnotations
calculate_replenishment_planMargin-weighted ABC classification, stockout-adjusted daily velocity, Z-score safety stock, and reorder pointsskus[], inventory_csv, use_live_shopify, demo_mode, service_level, review_period_daysPer-SKU abc_class, inventory_position, safety_stock_units, reorder_point_units, recommended_order_units, stockout_riskreadOnlyHint: true, idempotentHint: true
build_supplier_purchase_ordersGroups SKUs per vendor, rounds cartons, enforces vendor MOQs, computes US tariff + freight landed cost, enforces Open-to-Buy (max_cash_budget_usd) cash caps, and emits Shopify PO + POS Transfer CSVsSame as above + supplier_rules[], po_prefix, max_cash_budget_usd, default_import_duty_pct, min_gross_margin_pctPer-vendor shopify_draft_po_csv, shopify_transfer_import_csv, total_landed_cost_usd, otb_summary, vendor_email_markdownreadOnlyHint: true, idempotentHint: true
reconcile_po_three_way_matchAccounts Payable 3-way match comparing PO vs warehouse receiving vs supplier invoice + accounting CSV exportpo_number, vendor, invoice_number, invoice_date, due_date, po_lines[], receiving_lines[], invoice_lines[], agreed_freight_cap_usd, demo_modepayment_recommendation, verified_payable_amount_usd, total_overcharge_recovered_usd, quickbooks_bill_csv, xero_bill_csv, debit_memo_email_markdownreadOnlyHint: true, idempotentHint: true
migrate_stocky_csv_snapshotRebuilds supplier profiles, real lead-time averages/std-dev, and carton multiples from Stocky PO CSV exportsstocky_po_csv, demo_modeprofiles[], ready_supplier_rules_json[], suppliers_recovered, skus_recoveredreadOnlyHint: true, idempotentHint: true

Deterministic Math Under the Hood

  1. Inventory Position (prevents double-ordering while stock is in transit): $$\text{IP} = \text{OnHand} + \text{OnOrder} - \text{Committed} - \text{Backorders}$$
  2. Stockout-Adjusted Daily Velocity (prevents artificially depressed velocity when a bestseller was out of stock for part of the month): $$d = \frac{\text{UnitsSold}}{\max(1,; \text{WindowDays} - \text{StockoutDays})}$$
  3. Demand + Lead-Time Variability Safety Stock: $$\text{SS} = \left\lceil Z \cdot \sqrt{\text{LT} \cdot \sigma_d^2 + d^2 \cdot \sigma_{\text{LT}}^2} \right\rceil$$ where $Z \in {1.04, 1.28, 1.65, 1.96, 2.33}$ for $85%, 90%, 95%, 97.5%, 99%$ cycle service levels.
  4. Periodic Review Order Quantity & Carton Rounding: $$\text{ROP} = \lceil d \cdot \text{LT} + \text{SS} \rceil, \quad S = \lceil d \cdot (\text{LT} + R) + \text{SS} \rceil$$ When $\text{IP} \le \text{ROP}$, raw order need $Q_0 = \max(\text{SKU-MOQ}, S - \text{IP})$ is rounded to carton multiples $\lceil Q_0 / \text{CasePack} \rceil \times \text{CasePack}$. If a vendor PO falls short of min_order_value_usd (such as a $2,200 wholesale minimum or free-freight tier), the engine adds carton increments to the highest-velocity A-class SKU rather than padding slow C-items.

Security, Privacy & Reliability Guarantees

  • Zero Credential Persistence: Tokens passed via SHOPIFY_ACCESS_TOKEN remain in memory for the request lifetime only and are never logged, written to disk, or echoed in error payloads.
  • Read-Only Store Access: Live Shopify GraphQL integration issues POST queries solely for read operations (productVariants and orders) and enforces a strict 15-second AbortSignal timeout.
  • Crash-Proof Error Envelopes: Invalid CSV headers, missing parameters, or network timeouts return structured MCP isError: true responses with remediation steps instead of terminating the stdio process.
  • Zero Known Dependency Advisories: Verified clean under npm audit.

Pricing & Entitlements

Maintainer Publish & Deploy Commands

bash
# 1. Verify build, automated test suite, and zero security advisoriesnpm test && npm audit
# 2. Publish to npmnpm loginnpm publish --access public
# 3. Deploy & activate Free/Pro tiers on MCPizenpx mcpize loginnpx mcpize deploy

See docs/LOOM-SCRIPT.md for the 3-minute product walkthrough script and docs/RESEARCH-REPORT.md for the market audit behind this build.

License

MIT License — see LICENSE.

來源:README.md,提交 71282e3

工具

4

calculate_replenishment_plan

Calculate Stockout-Adjusted Replenishment & Reorder Points

Replaces Shopify Stocky's retired forecasting brain. Computes margin-weighted ABC classes, stockout-adjusted daily sales velocity, demand + lead-time variability safety stock (SS = Z * sqrt(LT*sigma_d^2 + d^2*sigma_LT^2)), reorder points, inventory position (On-Hand + On-Order - Committed - Backorders), days of cover, and carton-rounded order recommendations. Free Local Sandbox processes up to 25 SKUs per call; Pro/License unlocks unlimited SKUs and Live Shopify sync.

輸入參數skusdemo_modewindow_daysinventory_csvservice_levelsupplier_rulesuse_live_shopifyreview_period_days

build_supplier_purchase_orders

Build MOQ-Compliant Supplier POs, Landed Costs, OTB & Shopify PO/Transfer CSVs

Turns SKU demand signals into ready-to-send Purchase Orders grouped by vendor. Enforces carton/case-pack multiples, per-SKU MOQs, supplier-level minimum units/USD thresholds (topping up A-class SKUs first), US import tariff + freight landed unit costs with margin-erosion alerts, and optional Open-to-Buy (`max_cash_budget_usd`) cashflow rationing. Outputs ready-to-import Shopify Native Draft PO CSV (`SKU,Supplier SKU,Quantity,Cost,Tax %`), Shopify POS Inventory Transfers CSV (`SKU,Barcode,Quantity`), and formatted vendor PO emails.

輸入參數skusdemo_modepo_prefixinventory_csvservice_levelsupplier_rulesuse_live_shopifyreview_period_daysmax_cash_budget_usdmin_gross_margin_pctdefault_import_duty_pct

reconcile_po_three_way_match

Audit PO vs Receiving vs Supplier Invoice (3-Way Match + QuickBooks/Xero CSVs)

Deterministic Finance Ops 3-way match engine for wholesalers and Shopify merchants. Cross-examines approved Purchase Order lines, warehouse dock receiving counts (good vs damaged units), and billed supplier invoice lines to catch silent unit-price creep, short-shipments billed in full, unapproved surcharges, and freight cap overages. Emits ready-to-import QuickBooks Online (`quickbooks_bill_csv`) and Xero (`xero_bill_csv`) Purchase Bill CSVs containing ONLY verified payable quantities and unit costs, plus a vendor Debit Memo email. Free Local Sandbox audits up to 15 invoice lines per call; Pro/License unlocks unlimited invoice audits.

輸入參數vendorcurrencydue_datepo_linesdemo_modepo_numberinvoice_dateinvoice_linesinvoice_numberreceiving_linesxero_account_codeqbo_expense_account另有 2 個

migrate_stocky_csv_snapshot

Recover Supplier Directory, Real Lead Times & MOQs from Stocky PO CSV

Shopify Stocky shut down on August 31, 2026 and never provided a Supplier Directory export. Paste a historical Stocky Purchase Orders CSV export (or pass `demo_mode: true`) and this tool reconstructs every supplier profile: actual observed lead-time average and standard deviation from Created-to-Received timestamps, latest SKU unit cost, GCD-inferred carton pack sizes, historical minimum PO spend, and ready-to-use `supplier_rules` JSON for `build_supplier_purchase_orders`.

輸入參數demo_modestocky_po_csv

版本歷史

1
  1. v1.0.0最新Oct 26, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Pilot 整合