po-pilot-mcp

v1.0.0
io.github.maskchanel14-source/po-pilot-mcp Checked 3 days ago Published 1 month ago

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

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.

ParameterTypeDescription
demo_modebooleanRun immediately against the built-in US Shopify merchant dataset (no API keys required).
inventory_csvstringRaw CSV exported from Shopify Admin Products or merchant reorder spreadsheet.
review_period_daysintegerDays between purchasing review cycles (e.g., 7 for weekly, 14 for bi-weekly).
service_levelstringTarget cycle service level used for Z-score safety stock calculation (85%=1.04, 90%=1.28, 95%=1.65, 97.5%=1.96, 99%=2.33).
skusarrayStructured SKU inventory + velocity rows.
supplier_rulesarrayOptional supplier rules (e.g. from migrate_stocky_csv_snapshot) to apply vendor lead_time_days overrides.
use_live_shopifybooleanPull live variants and paid order velocity from configured Shopify Admin GraphQL API (Pro / License).
window_daysintegerLookback window in days when parsing CSV or querying live Shopify orders.

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.

ParameterTypeDescription
default_import_duty_pctnumberFallback US import tariff / customs duty % when not specified on a vendor's supplier_rules entry.
demo_modebooleanGenerate full multi-vendor POs using the built-in Austin, TX merchant demo dataset.
inventory_csvstringRaw Shopify Products/Inventory CSV text.
max_cash_budget_usdnumberOptional Open-to-Buy (OTB) maximum landed cash spend ceiling in USD across all generated POs. Trims lowest-priority C/B cartons first while protecting CRITICAL A-class SKUs.
min_gross_margin_pctnumberMinimum acceptable landed gross margin % before triggering `margin_erosion_warning: true` on a PO line.
po_prefixstringPrefix for generated Purchase Order numbers.
review_period_daysintegerDays of forward cover to buy beyond lead time.
service_levelstringTarget cycle service level used for Z-score safety stock calculation (85%=1.04, 90%=1.28, 95%=1.65, 97.5%=1.96, 99%=2.33).
skusarrayStructured SKU inventory + velocity rows.
supplier_rulesarrayPer-vendor MOQ, minimum USD spend, import tariff %, freight USD, lead time override, payment terms, email, and ship-to location rules.
use_live_shopifybooleanPull live store SKUs and barcodes from Shopify Admin GraphQL (Pro / License).

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…

ParameterTypeDescription
agreed_freight_cap_usdnumberMaximum freight/shipping charge agreed on the PO, if applicable.
currencystring3-letter ISO currency code for QuickBooks/Xero export.
demo_modebooleanRun a realistic 3-way match audit catching silent price creep, damaged units, and unapproved pallet fees.
due_datestringBill due date in YYYY-MM-DD format (defaults to Net 30 from invoice_date).
invoice_datestringInvoice date in YYYY-MM-DD format (defaults to today UTC).
invoice_extra_fees_usdnumberFreight, pallet, or handling charges billed on the invoice.
invoice_linesarrayBilled lines extracted from the supplier PDF/CSV invoice.
invoice_numberstringSupplier invoice number for QuickBooks/Xero Bill CSV export (defaults to INV-<po_number>).
po_linesarrayApproved Purchase Order line items.
po_numberstringPurchase Order reference number.
qbo_expense_accountstringQuickBooks Online expense/COGS account name (defaults to 'Cost of Goods Sold').
receiving_linesarrayWarehouse receiving counts per SKU.
vendorstringVendor or distributor name.
xero_account_codestringXero chart-of-accounts code for inventory/COGS lines (defaults to '310').

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`.

ParameterTypeDescription
demo_modebooleanTest supplier reconstruction using the built-in Stocky PO CSV fixture.
stocky_po_csvstringRaw CSV content from Stocky Purchase Orders export.