Voila Groceries MCP

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

Safe personal Voila grocery automation for search, slots, cart updates, and order history

已驗證STDIO僅桌面效率與工作流商業與電商

概覽

AI 產生的概覽

本機 stdio MCP 伺服器,用於個人 Voila 雜貨購物:商品搜尋、配送時段、購物車異動與訂單歷史,不含結帳。

可以做什麼
  • 檢查工作階段健康狀態並讀取目前購物情境(區域、收貨地點、配送方式、購物車)
  • 搜尋商品、依分類瀏覽商品並掃描折扣促銷
  • 依指定地點與區域列出配送時段,並在明確確認旗標下預留所選時段
  • 讀取目前購物車,依商品 UUID 增減數量,並回傳限量、缺貨或價格變動提示
  • 讀取已完成訂單、單筆訂單明細,並彙整過去購買過的商品
適用情境
適合在 Voila 購物、希望助理協助找商品與折扣、比較配送時段、調整購物車或回顧歷史訂單的人,同時讓結帳與下單不開放給助理。
執行需求
透過 npx(Node.js)以 stdio 在本機執行。已登入使用需要一個以 Voila CLI 擷取的工作階段 JSON 檔,並以絕對路徑填入 VOILA_AUTH_SESSION_PATH;設定中不放密碼。VOILA_GUEST=1 可強制訪客模式。除非設定 VOILA_KEEPALIVE=0,否則會執行唯讀的工作階段保活。
安裝前請注意
VOILA_AUTH_SESSION_PATH 指向的工作階段檔是真實帳號憑證,需妥善保管且不可外流。購物車工具會改動真實購物車內容,預留時段也會作用於帳號,但未提供結帳與下單工具。它依賴網頁應用的內部端點而非公開 API,可能隨時失效。不要把帶真實工作階段的 HTTP 傳輸直接暴露到公開網際網路。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

Voila MCP

[npm] [npm downloads] [License: MIT] [MCP] [TypeScript] [Glama score]

Voila MCP is a Model Context Protocol server for safe personal Voila grocery automation. It exposes small, auditable tools for product search, category browsing, discounts, delivery slots, cart deltas, and completed order history without exposing checkout or order placement.

Published on npm as @firfi/voila-mcp. The repository also includes @firfi/voila-sdk and @firfi/voila-cli.

Packages

  • packages/voila-sdk: @firfi/voila-sdk, the TypeScript SDK for Voila sessions, search, categories, cart, order history, slots, and checkout-readiness helpers.
  • packages/voila-mcp: @firfi/voila-mcp, a stdio MCP server exposing small auditable tools.
  • packages/voila-cli: @firfi/voila-cli, a user CLI that reuses the MCP operation registry.

The root package is private. Publishable packages live under packages/.

MCP Setup

Voila does not publish a documented third-party customer API. This server uses the same same-origin JSON endpoints as the web app, so authenticated use is session-based. Capture a session interactively with the CLI; do not store a Voila password in MCP config.

json
{  "mcpServers": {    "voila": {      "command": "npx",      "args": ["-y", "@firfi/voila-mcp"],      "env": {        "VOILA_AUTH_SESSION_PATH": "/absolute/path/to/session.json"      }    }  }}

If the session is missing, expired, or guest-only, tool results include authGuidance with the exact CLI login command to run. The MCP server itself does not launch a browser. A login performed while the server is running takes effect on its next tool call, without a restart.

With an explicit VOILA_AUTH_SESSION_PATH and guest mode off, the MCP server also runs a read-only authenticated-session keepalive. Set VOILA_KEEPALIVE=0 to disable it; VOILA_KEEPALIVE_INTERVAL_SECONDS defaults to 86400 seconds and must be at least 3600. The keepalive never bootstraps a guest and stops as misconfigured if its configured session snapshot disappears.

Tools

  • voila_check_session_health: report active, guest, expired, or retryable session state.
  • voila_get_active_shopping_context: read current region, destination, delivery method, and cart context.
  • voila_get_slot_listings: list delivery slots for an explicit destination and region.
  • voila_reserve_slot: reserve a caller-selected slot only with explicit confirmation flags.
  • voila_search_products: search products for the current session context.
  • voila_get_category_products: fetch products for a Voila category id.
  • voila_get_discounted_products: scan promotions and return meaningful discounted products.
  • voila_get_completed_orders: read completed orders with cursor pagination.
  • voila_get_order_details: read item-level details for one completed order.
  • voila_get_completed_order_items: aggregate previously ordered items across completed orders.
  • voila_get_cart: read active cart totals, limited items, unavailable data, and pricing notices.
  • voila_add_cart_items: add quantity deltas using Voila product UUIDs.
  • voila_remove_cart_items: remove quantity deltas using Voila product UUIDs.

The server does not expose checkout or order-placement tools. Cart mutations use quantity deltas and return server notices for limited, unavailable, and pricing-change cases.

Transports

Stdio is the default for local MCP clients:

bash
npx -y @firfi/voila-mcp

HTTP is available for registry inspection and deployments behind a trusted gateway:

bash
MCP_TRANSPORT=http MCP_HTTP_HOST=0.0.0.0 PORT=8080 VOILA_GUEST=1 npx -y @firfi/voila-mcp

The HTTP endpoint is /mcp unless MCP_HTTP_PATH is set. VOILA_GUEST=1 forces guest-session behavior for safe introspection environments such as Glama. Do not expose HTTP with a real session file directly to the public internet; put authentication and access control in front of /mcp.

CLI

bash
voila auth login --session ~/.config/voila/session.jsonvoila auth status --jsonvoila auth keepalive --interval 86400voila search "milk"voila orders listvoila orders details <order-id>voila orders items --from-date 2026-06-01 --to-date 2026-06-30voila cart get

The CLI default session path is ~/.config/voila/session.json. Browser login uses a persistent Playwright profile at ~/.cache/voila/browser-profile unless --profile is provided; log in manually and close the browser window to save.

Verification

bash
pnpm check-allpnpm package:audit

Live endpoint smoke tests remain opt-in. Do not run live cart mutation tests against a real account unless the test cleans up and the caller explicitly asks for it.

來源:README.md,提交 21c979d

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分