Synchronity

io.github.themewireco由 GitHub 帳號 themewireco 發布v0.5.21更新於 Oct 24, 2026

Shop connected e-commerce stores: search, compare, cart, and checkout with buyer approval.

已驗證Streamable HTTP可網頁執行效率與工作流商業與電商

概覽

AI 產生的概覽

將助理連接到 Synchronity 託管閘道,可在多家已串接的電商商店中搜尋、比價、加入購物車並完成結帳。

可以做什麼
  • 列出已註冊商店,瀏覽或搜尋商品目錄,取得商品詳情、規格、附加選項與圖片
  • 取得商品評論的評分、信任分數與真實性標記,並跨多家商店比較商品
  • 管理購物車:建立、增刪商品、調整數量、套用優惠碼、接續進行中的購物車並查看總計
  • 設定收件地址、選擇配送方式,並以一次呼叫為多商品需求組好可結帳的購物車
  • 在買家授權下執行結帳與付款,包括付款方式、行動支付驗證碼與付款狀態輪詢
  • 依編號查詢訂單,或列出某商店的近期訂單
適用情境
適合想讓 AI 助理代為購物時使用:在對話中尋找商品、比較不同商店的報價、建立購物車,並在買家核准後完成結帳。
執行需求
可使用 Synchronity 閘道的遠端端點,或在本地以 Node.js 透過 stdio 執行 npm 套件。選用環境變數 GATEWAY_URL(預設指向託管閘道)與 DEFAULT_SITE_ID。結帳與付款需要買家透過電子郵件一次性驗證碼取得授權權杖。商店須先在 Synchronity 註冊,通常透過其 WooCommerce 外掛完成。
安裝前請注意
結帳與付款會產生真實訂單與扣款;訂單先以未付款狀態建立,之後在對話中發起付款,操作前應與使用者確認金額。授權依賴寄到買家信箱的 6 位數驗證碼,授權權杖可執行結帳與付款。買家電子郵件、收件地址與訂單資料會傳送至 Synchronity 閘道及商家商店。購物車與訂單相關工具會直接變更伺服器端狀態。

安裝

在 SourceWeft 中

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

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.themewireco%2Fsynchronity/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "synchronity": {
      "type": "http",
      "url": "https://api.synchronity.app/mcp"
    }
  }
}

README

[Synchronity]

Synchronity

Shop anything online with AI — search, compare, and buy across connected stores from any AI assistant.


Synchronity is commerce infrastructure for AI assistants. It connects to the hosted Synchronity gateway at https://api.synchronity.app — there is nothing to self-host.

This repository contains the public, MIT-licensed pieces:

PartWhat it is
packages/mcpThe MCP server — exposes shopping tools to Claude, Cursor, and any MCP client
packages/sdkTyped gateway client used by the MCP server
desktop-extensionClaude Desktop extension (.mcpb) source — a zero-dependency bridge to the gateway
plugins/synchronityCross-assistant plugin (Claude Code + Codex) — install via the marketplace below
woocommerceThe Synchronity WooCommerce plugin — makes a store agent-ready

Releases attach prebuilt artifacts: the synchronity.mcpb desktop extension and the WooCommerce plugin zip. See Releases.

For shoppers — connect your AI assistant

Claude Desktop (easiest)

  1. Download synchronity.mcpb from the latest release (or from api.synchronity.app/setup/download).
  2. Open it with Claude Desktop and click Install.
  3. Ask Claude to shop — e.g. "Search Synchronity for a wireless keyboard."

Claude Code (plugin marketplace)

bash
/plugin marketplace add themewireco/synchronity/plugin install synchronity@synchronity

Then just shop — "find me a birthday cake from my stores". The plugin bundles the synchronity-commerce skill and runs the MCP server locally via npx, so there is nothing to clone or build.

Codex

Add the Synchronity plugin from this repo (plugins/synchronity). Codex reads .codex-plugin/plugin.json and connects to the hosted MCP at https://api.synchronity.app/mcp, with the same synchronity-commerce skill.

Any MCP client (manual)

bash
npm install && npm run build
jsonc
{  "mcpServers": {    "synchronity": {      "command": "node",      "args": ["/absolute/path/to/synchronity/packages/mcp/dist/index.js"],      "env": { "GATEWAY_URL": "https://api.synchronity.app" }    }  }}

GATEWAY_URL defaults to https://api.synchronity.app. Sensitive actions (checkout, payment) require buyer approval — the assistant walks you through a one-time approval step.

What the assistant can do

Product search & details (with inline images), compare across stores, reviews, cart management, shipping, checkout, card/mobile-money payment, order tracking, and human-in-the-loop approval for sensitive actions.

For merchants — make your WooCommerce store agent-ready

  1. Download the WooCommerce plugin zip from the latest release.
  2. In WordPress: Plugins → Add New → Upload Plugin, choose the zip, Install and Activate.
  3. Open WooCommerce → Synchronity, copy your connector key, and register your store with Synchronity.

Your store keeps its own catalog, currency, shipping, and orders — Synchronity routes agent requests to it through the gateway.

Build the artifacts yourself

bash
npm run build         # build the MCP server + clientnpm run build:mcpb    # -> synchronity.mcpb (Claude Desktop extension)npm run build:plugin  # -> synchronity-woocommerce-v<version>.zip

Configuration

Env varDefaultPurpose
GATEWAY_URLhttps://api.synchronity.appSynchronity gateway base URL
DEFAULT_SITE_ID—Optional default store to scope tools to
DEBUGfalseVerbose logging to stderr

Reviewing & testing

New here or reviewing the connector? Follow the end-to-end walkthrough: docs/reviewer-testing.md.

Privacy & support

License

MIT © Themewire — see LICENSE.

來源:README.md,提交 4af5f71

工具

26

list_sites

List connected stores

List all registered e-commerce sites. Use this first to find a site by name (e.g. "Pronto Partners") and get its site_id, which is required by all other tools.

無需輸入參數。

search_products

Search products

Find products on a registered store. To BROWSE a store's catalog (open-ended requests like "what do they sell", "show me what's available"), call with NO query — this returns the store's products. To SEARCH, pass `query` (a product name/keyword). Returns paginated products as an interactive card. ALWAYS translate a buyer's budget or price constraint into the price params on THIS call instead of filtering in your reply: "under/below/within X" or "X budget" → `max_price: X`; "over/above/at least X" → `min_price: X`; "between X and Y" → both. Likewise pass `in_stock: true` for "available"/"in stock" and `category` when they name one. The card renders exactly what this call returns, so the filter MUST be applied here — never fetch the full catalog and then narrow it in text. Call once with your best intent (browse OR a single query); if a real search is genuinely empty, ask the user to clarify rather than re-firing reworded queries. The card shows products, prices, IDs, and Add-to-cart controls — keep your text reply to one brief sentence and do not re-list what the card shows.

輸入參數pagequeryqueriessite_id必填categoryin_stockper_pagemax_pricemin_price

get_product

Get product details

Retrieve detailed information about a specific product including variants, pricing, images, and availability. May also return `addons` — customer-selectable options defined by the store (e.g. engraving, gift wrap, size add-ons). When a product has addons, present them to the buyer and collect every addon with `required: true` before calling add_to_cart; for any option carrying a `price_modifier`, show that surcharge so the buyer knows the added cost. The card already shows the product details to the user, so keep your text reply brief and do not re-describe what the card displays.

輸入參數site_id必填product_id必填

get_product_reviews

Get product reviews

🔍 **RECOMMENDED STEP** — Fetch product reviews and authenticity consensus before making purchase decisions. Returns: average rating, trust score (0.0-1.0), review sentiment analysis, authenticity flags (fake reviews, seller issues, negative trends), and recent reviews with verified purchase status. Always call this for each product before adding to cart to verify quality and detect scams.

輸入參數pagelimitsite_id必填product_id必填

request_back_in_stock

Notify me when back in stock

Subscribe the buyer to a back-in-stock alert for an out-of-stock product. Use when the buyer asks to be notified/told/pinged when an item restocks ("notify me when X is back", "let me know when it's in stock"). Collect the buyer's email so the alert can reach them (without it only the demand is recorded for the merchant). The buyer is emailed when the product is next seen in stock. Returns whether an email alert was armed.

輸入參數emailsite_id必填product_id必填variant_idproduct_title

compare_products

Compare products across stores

Compare products across multiple registered e-commerce sites simultaneously. Uses fail-open strategy: partial results from successful sites are returned even if some sites time out.

輸入參數query必填categoryin_stocksite_ids必填max_pricemin_price

create_cart

Create cart

Create a new shopping cart for a specific site. Returns a cart_id. IMPORTANT: Reuse the active cart_id across multiple products in the same session. Do NOT call create_cart again if you already have a cart_id for this site in the chat history.

輸入參數site_id必填currency

add_to_cart

Add item to cart

Add a product variant (or base product) to an existing cart. Reuse the active cart_id from the chat history if one already exists. Only call create_cart first if no cart exists yet.

輸入參數emailitemsaddonscart_idsite_id必填quantityproduct_idvariant_id

quick_checkout

Quick checkout (build carts)

Assemble checkout-ready cart(s) in ONE call for a multi-product (and optionally multi-store) request. Creates a cart per store, adds all items, and sets the shipping address — then returns the cart(s) with delivery options to choose. Use this when the buyer lists several products at once (optionally across stores) and/or gives their address up front, instead of calling create_cart/add_to_cart/set_shipping_address separately. Does NOT select delivery, check out, or pay — the buyer picks delivery (select_shipping_option) and approves checkout/payment per store afterward. Out-of-stock items are reported; pass customer.email to auto-arm a back-in-stock alert for them.

輸入參數items必填customershipping_address必填

remove_from_cart

Remove item from cart

Remove a line item from the cart. Requires the item_id from the cart contents.

輸入參數cart_id必填item_id必填site_id必填

set_cart_quantity

Set item quantity

Set a cart line's quantity (the server cart is the checkout source of truth, so this updates it live). Requires the item_id from the cart contents and the new absolute quantity. A quantity of 0 removes the line. Returns the updated cart card.

輸入參數cart_id必填item_id必填site_id必填quantity必填

apply_coupon

Apply coupon

Apply a discount or promotional code to the cart. Returns the updated cart with discount applied.

輸入參數code必填cart_id必填site_id必填

get_cart

View cart

Retrieve current cart contents, including items, pricing, discounts, and totals. The card already shows the line items and totals to the user, so keep your text reply to one brief sentence — do not re-list the cart contents.

輸入參數cart_idsite_id必填

get_active_cart

Resume active cart

Retrieve the buyer's in-progress cart for a site (resumes a conversation). Call this before assuming a new cart when a shopping conversation continues or after a cart error. Returns the cart with its items rebuilt if the connector cart expired, or null if no cart exists.

輸入參數site_id必填

set_shipping_address

Set shipping address

Set the cart shipping destination (collected from the buyer) and return available shipping options with costs. Call after items are in the cart and before select_shipping_option. country_code is required; include postal_code/state for accurate rates.

輸入參數citystatecart_id必填site_id必填postal_codecountry_code必填

select_shipping_option

Select shipping option

Select one of the shipping options returned by set_shipping_address. Binds the rate to the cart so the total includes shipping; call before execute_checkout so the hosted checkout opens pre-filled.

輸入參數cart_id必填site_id必填option_id必填

execute_checkout

Place order (checkout)

Execute checkout for a cart to create an order. Requires a buyer delegation token (from user auth) and a shipping address. The order is created UNPAID (status "pending"). IMPORTANT — do NOT stop here or just hand the user the payment_url. Immediately continue the in-chat payment flow: call get_payment_methods for the returned order_id, present the available channels to the buyer, and ask which they want to use; then drive initiate_payment → (submit_payment_otp if needed) → poll get_payment_status until the order is paid. The payment_url in the response is only a manual fallback if the buyer declines in-chat payment. Always offer to collect payment in the chat first.

輸入參數notescart_id必填site_id必填customer_name必填shipping_city必填shipping_name必填customer_email必填customer_phone必填shipping_line1必填shipping_line2shipping_phoneshipping_state必填另有 3 個

get_order

Get order details

Retrieve details for an order by its ID, including items, status, shipping, and tracking information. Orders are buyer-private — pass `buyer_delegation_token` (the delegation token from this buyer's checkout approval) so the gateway can confirm the buyer owns this order. If checking if an order is paid: a status of 'pending' or 'pending_payment' means the order has NOT been paid. Do NOT assume that the vendor storefront has synchronization delays or database lag; treat 'pending' as unpaid. When an order is unpaid, offer to collect payment in the chat by starting the in-chat payment flow (get_payment_methods → initiate_payment → get_payment_status) rather than only pointing the user at the payment_url. Do not mark the purchase task as successful until the status updates to 'processing' or 'completed'.

輸入參數site_id必填order_id必填buyer_delegation_token

list_orders

List orders

List recent orders for a site, optionally filtered by status (pending, processing, completed, cancelled, refunded). Orders are buyer-private — pass `buyer_delegation_token` (from this buyer's checkout approval); only that buyer's orders are returned.

輸入參數pagestatussite_id必填per_pagebuyer_delegation_token

request_delegation

Request buyer approval

Start the human delegation (approval) flow needed for checkout/payment. PREFERRED: pass the buyer's `email` — the gateway emails them a 6-digit code and returns a device_code; ask the user for the code and call submit_delegation_otp. This keeps approval fully in-chat (no link) and you never see the code, so you cannot approve on their behalf. If you omit `email`, it falls back to a browser approval link (device flow) which the user must open; then poll check_delegation. You can never approve a delegation yourself.

輸入參數emailscopessite_id必填marketing_opt_in

submit_delegation_otp

Submit approval code

Submit the 6-digit code the buyer received by email (from request_delegation with an email) to approve the delegation in-chat. On success returns a delegation_token to use as buyer_delegation_token for checkout/payment. You cannot obtain this code yourself — the user must read it from their email and give it to you.

輸入參數code必填site_iddevice_code必填

check_delegation

Check approval status

Poll for human approval of a delegation request. When status is "approved", returns the delegation_token to use as buyer_delegation_token in execute_checkout.

輸入參數device_code必填

get_payment_methods

Get payment methods

STEP 1 of the in-chat payment flow. Returns the payment channels available for an order (e.g. "mobile_money", "card") plus a `gateways` array of the enabled payment gateways (each with id, label, and its channels). When more than one gateway is listed, ask the buyer which they want to use and pass it as `gateway` to initiate_payment. Call this first, after an order exists. Then call initiate_payment with the chosen channel (and gateway if more than one). site_id falls back to DEFAULT_SITE_ID if omitted.

輸入參數site_idorder_id必填

initiate_payment

Start payment

STEP 2 of the in-chat payment flow. Starts a payment session for an order and returns a PaymentSession with an `instruction` the agent renders in chat. REQUIRES a buyer_delegation_token — obtain it exactly like execute_checkout: call request_delegation, have the user approve in chat, then check_delegation to get the token (spending money always needs human approval). For channel "mobile_money" you MUST collect the buyer's `phone` (Ghana: 055… or +233…) and `provider` — use codes mtn, vod (Vodafone/Telecel), or tgo (AirtelTigo); aliases telecel→vod, tigo→tgo are accepted. ALWAYS quote the **Show this instruction to the buyer** line from the response verbatim (Paystack display_text). For channel "card", no phone/provider is needed; the response instruction contains an `authorization_url` you send the user to. After calling: if instruction.action == "submit_otp", ask the user for the OTP and call submit_payment_otp. If instruction.action == "approve_on_phone", tell the user to approve the prompt on their phone, then poll get_payment_status. If instruction.action == "redirect" (card), send the user the authorization_url, then poll get_payment_status.

輸入參數phonechannel必填gatewaysite_idorder_id必填providerbuyer_delegation_token

submit_payment_otp

Submit payment code

STEP 3 (mobile_money only, when initiate_payment returned instruction.action == "submit_otp"). Submits the one-time password the buyer received to authorise the mobile-money charge. REQUIRES the same buyer_delegation_token used for initiate_payment. After submitting, poll get_payment_status until payment_status is "paid"/"processing" or "failed".

輸入參數otp必填site_idorder_id必填buyer_delegation_token

get_payment_status

Check payment status

FINAL STEP of the in-chat payment flow. Returns the current PaymentSession for an order. Poll this (every ~5 seconds) after initiate_payment/submit_payment_otp until payment_status becomes "paid" or "processing" (success — the order is confirmed) or "failed" (tell the user; they can retry by initiating a new payment). Do NOT treat the purchase as complete until this returns "paid" or "processing". No delegation needed (read-only).

輸入參數site_idorder_id必填

版本歷史

1
  1. v0.5.21最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分