{
  "markdown": "# Voila MCP\n\n[![npm](https://img.shields.io/npm/v/@firfi/voila-mcp)](https://www.npmjs.com/package/@firfi/voila-mcp)\n[![npm downloads](https://img.shields.io/npm/dm/@firfi/voila-mcp)](https://www.npmjs.com/package/@firfi/voila-mcp)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![MCP](https://img.shields.io/badge/MCP-compatible-blue)](https://modelcontextprotocol.io)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue.svg)](https://www.typescriptlang.org/)\n[![Glama score](https://glama.ai/mcp/servers/dearlordylord/voila-sdk/badges/score.svg)](https://glama.ai/mcp/servers/dearlordylord/voila-sdk)\n\n**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.\n\nPublished on npm as [`@firfi/voila-mcp`](https://www.npmjs.com/package/@firfi/voila-mcp). The repository also includes [`@firfi/voila-sdk`](https://www.npmjs.com/package/@firfi/voila-sdk) and [`@firfi/voila-cli`](https://www.npmjs.com/package/@firfi/voila-cli).\n\n## Packages\n\n- `packages/voila-sdk`: `@firfi/voila-sdk`, the TypeScript SDK for Voila sessions, search, categories, cart, order history, slots, and checkout-readiness helpers.\n- `packages/voila-mcp`: `@firfi/voila-mcp`, a stdio MCP server exposing small auditable tools.\n- `packages/voila-cli`: `@firfi/voila-cli`, a user CLI that reuses the MCP operation registry.\n\nThe root package is private. Publishable packages live under `packages/`.\n\n## MCP Setup\n\nVoila 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.\n\n```json\n{\n  \"mcpServers\": {\n    \"voila\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@firfi/voila-mcp\"],\n      \"env\": {\n        \"VOILA_AUTH_SESSION_PATH\": \"/absolute/path/to/session.json\"\n      }\n    }\n  }\n}\n```\n\nIf 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.\n\nWith an explicit `VOILA_AUTH_SESSION_PATH` and guest mode off, the MCP server\nalso runs a read-only authenticated-session keepalive. Set `VOILA_KEEPALIVE=0`\nto disable it; `VOILA_KEEPALIVE_INTERVAL_SECONDS` defaults to `86400` seconds\nand must be at least `3600`. The keepalive never bootstraps a guest and stops\nas misconfigured if its configured session snapshot disappears.\n\n## Tools\n\n- `voila_check_session_health`: report active, guest, expired, or retryable session state.\n- `voila_get_active_shopping_context`: read current region, destination, delivery method, and cart context.\n- `voila_get_slot_listings`: list delivery slots for an explicit destination and region.\n- `voila_reserve_slot`: reserve a caller-selected slot only with explicit confirmation flags.\n- `voila_search_products`: search products for the current session context.\n- `voila_get_category_products`: fetch products for a Voila category id.\n- `voila_get_discounted_products`: scan promotions and return meaningful discounted products.\n- `voila_get_completed_orders`: read completed orders with cursor pagination.\n- `voila_get_order_details`: read item-level details for one completed order.\n- `voila_get_completed_order_items`: aggregate previously ordered items across completed orders.\n- `voila_get_cart`: read active cart totals, limited items, unavailable data, and pricing notices.\n- `voila_add_cart_items`: add quantity deltas using Voila product UUIDs.\n- `voila_remove_cart_items`: remove quantity deltas using Voila product UUIDs.\n\nThe 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.\n\n## Transports\n\nStdio is the default for local MCP clients:\n\n```bash\nnpx -y @firfi/voila-mcp\n```\n\nHTTP is available for registry inspection and deployments behind a trusted gateway:\n\n```bash\nMCP_TRANSPORT=http MCP_HTTP_HOST=0.0.0.0 PORT=8080 VOILA_GUEST=1 npx -y @firfi/voila-mcp\n```\n\nThe 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`.\n\n## CLI\n\n```bash\nvoila auth login --session ~/.config/voila/session.json\nvoila auth status --json\nvoila auth keepalive --interval 86400\nvoila search \"milk\"\nvoila orders list\nvoila orders details <order-id>\nvoila orders items --from-date 2026-06-01 --to-date 2026-06-30\nvoila cart get\n```\n\nThe 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.\n\n## Verification\n\n```bash\npnpm check-all\npnpm package:audit\n```\n\nLive 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.\n",
  "bytes": 5461,
  "sha": "f87e0c555815105a8ec38589a142e7b63ff7f762825045e8a708ec697b615900",
  "repo_slug": "dearlordylord/voila-sdk",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_dearlordylord_voila_mcp_083adaec/readme"
}