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 分