pagliacci-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
pagliacci
A Python client and MCP server for the
Pagliacci Pizza ordering API. As of v0.8.0 the MCP server can place real
orders end-to-end via place_order(confirm=True) — the cart is verified,
priced, and submitted using a saved card. The default (confirm=False)
remains quote-only. See docs/api-recon.md for the
API surface this package exposes.
Install
Wheels are attached to each GitHub release:
# library only (pin a release)
pip install https://github.com/sslivins/pagliacci-mcp/releases/download/v0.8.1/pagliacci-0.8.1-py3-none-any.whl
# or from git, library + MCP server
pip install "pagliacci[mcp] @ git+https://github.com/sslivins/pagliacci-mcp.git"Requires Python ≥ 3.11.
Related MCP server: DoorDash MCP
Quickstart (library)
from pagliacci.client import Client
from pagliacci.menu import get_menu
from pagliacci.models import OrderLine, Side
from pagliacci.pricing import price_order
with Client.login("you@example.com", "...", store_id=381) as client:
menu = get_menu(client)
# Find the Pizza category and grab the first 8" item.
pizza = next(c for c in menu.Categories if c.Name == "Pizza")
item = pizza.Items[0]
size = pizza.Sizes[0]
# Quote a single-item carryout cart. Empty Toppings = recipe defaults.
line = OrderLine(
Pos=0, Qty=1, Cat=pizza.ID, Size=size.ID,
Side1=Side(MenuItem=item.ID, Toppings=[]),
)
quote = price_order(client, [line])
print(quote.Total)Quoting never places an order. Submitting is a separate, explicit step — see
pagliacci.submit (verify_order / submit_order) and the MCP place_order tool.
For human-friendly construction (resolve names → IDs, add/extra/remove toppings),
use pagliacci.builder.build_pizza():
from pagliacci.builder import build_pizza
from pagliacci.menu import get_menu
from pagliacci.pricing import price_order
with Client.login("you@example.com", "...", store_id=381) as client:
menu = get_menu(client)
line = build_pizza(menu, item="Original Cheese", size='13"',
add=["Mushrooms"], extra=["Pepperoni"])
print(price_order(client, [line]).Total)For half-and-half pizzas, use build_half_and_half() — both sides must be from a
TwoSides=True category (currently only Pizza qualifies):
from pagliacci.builder import build_half_and_half
with Client.login("you@example.com", "...", store_id=381) as client:
menu = get_menu(client)
line = build_half_and_half(
menu,
side1_item="Original Cheese", side1_add=["Pepperoni"],
side2_item="Brooklyn Bridge",
size='17"',
)
print(price_order(client, [line]).Total)Quickstart (MCP server)
The MCP server is the intended consumer. Read/price-only tools:
Tool | What it does |
| Sanity check — returns your customer/store/base-url. |
| Top-level menu sections. |
| Directory of all categories (no arg) or items in one category with prices. |
| Filter pizza-shaped items by |
| Sizes, default recipe, available toppings, prices. |
| Generic version of |
| Assemble one whole-pizza cart line from human-friendly names. |
| Assemble one two-half pizza cart line. |
| Quote a pre-built cart (carryout or delivery). For delivery, pass a |
| Verify-then-submit a real order. With default |
| Saved credit cards (read-only). Returns |
| Customer profile: name, email, phone, last-used building/store, lifetime order count. Used by |
| All Pagliacci locations. |
| Filter the store directory by zip / city / state / name. |
| Past orders for the signed-in customer (1-indexed pagination). |
| Saved delivery addresses for the signed-in customer (with the |
| Geocode a street address; returns the |
| Save a new delivery address to the address book. Geocodes + names in one call. |
| Rename a saved address, change its delivery instructions, or set/unset its |
| Remove a saved address by |
| Open delivery / pickup slots for a given store (or building) on a given date (defaults to today). Returns |
There is no add_payment_method / add_card / set_billing_*
tool, and there never will be: adding a card requires the raw PAN +
CVV to flow through the conversation, which would persist them in
chat logs forever. Add cards on pagliacci.com instead.
place_order(confirm=True) is the only mutating, money-moving tool.
The two-call quote-then-confirm flow is a convention enforced via the
docstring + system prompt, not a server-side interlock — a misbehaving
LLM could bypass it in one shot. Treat confirm=True as a forcing
function for explicit user consent.
Configuring the GitHub Copilot CLI
Add a minimal entry to ~/.copilot/mcp-config.json (no env block needed if
credentials are in the OS keyring):
{
"mcpServers": {
"pagliacci": {
"command": "pagliacci-mcp"
}
}
}Credentials
As of v0.3.2, the server resolves email and password through the
pagliacci.mcp.credentials.get_credential helper, which checks the env var
first and falls back to the OS keyring (keyring package). The store_id is
auto-detected from the most-frequent store in your order history on first use,
so PAGLIACCI_STORE_ID is no longer needed (and is ignored).
Desktop / Windows / macOS / Linux GUI session — use the keyring:
python -m keyring set pagliacci-mcp email
python -m keyring set pagliacci-mcp passwordThe service name is pagliacci-mcp and the username is the literal string
email or password (the helper stores both under that single service).
Headless / Raspberry Pi / systemd — there's no keyring daemon, so use env
vars via a systemd EnvironmentFile= (mode 0600, owned by the service user):
# /etc/pagliacci-mcp.env (chmod 0600)
PAGLIACCI_EMAIL=you@example.com
PAGLIACCI_PASSWORD=your-password# /etc/systemd/system/pagliacci-mcp.service
[Service]
EnvironmentFile=/etc/pagliacci-mcp.env
ExecStart=/usr/local/bin/pagliacci-mcpThe library never logs credentials and never writes them to disk on its own.
Optional environment variables
Variable | Default | Notes |
| (keyring) | Account email. Env wins over keyring. |
| (keyring) | Account password. Env wins over keyring. |
|
| Soft cap on outbound requests per second. |
|
| Standard |
Live smoke test
A read-only end-to-end smoke test lives at scripts/smoke_live.py. It is gated
behind PAGLIACCI_LIVE=1 so it cannot run by accident or in CI. It hits
MenuCache and a single OrderPrice quote — nothing is submitted, no card is
charged, your existing PAGCART is not touched.
$env:PAGLIACCI_LIVE = "1"
$env:PAGLIACCI_EMAIL = "you@example.com"
$env:PAGLIACCI_PASSWORD = "..."
python scripts\smoke_live.pyDevelopment
git clone https://github.com/sslivins/pagliacci-mcp.git
cd pagliacci-mcp
python -m venv .venv
.\.venv\Scripts\pip install -e .[mcp,dev]
.\.venv\Scripts\pytestStatus
v0.8 — full quote → verify → submit flow exposed via
place_order. Adds list_my_payment_methods and get_my_profile MCP
tools. Idempotency guard via cart fingerprint + OrderListPending
dedup (60s window). See docs/api-recon.md for
the live wire format.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Browse the Gelato catalog, prices, orders and shipping; quote, create draft orders and products.
Order food from Cordering white-label restaurants: browse menus, confirm, then place an order.
Discover Servd venues, browse menus, validate carts, place confirmed orders, and track status.
EatMePrint agent ordering: get_pricing, preview_set, place_order, check_order.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceEnables AI agents to browse pizza menus, place orders, and track order status via the Model Context Protocol.33MIT- AlicenseNot gradedqualityDmaintenanceEnables ordering DoorDash through Poke over text, exposing tools for restaurant discovery, cart management, promotions, and order submission with purchase safety features.MIT
- FlicenseNot gradedqualityCmaintenanceEnables an MCP client to read live order data for a DailyMeals account and submit form data with confirmations, protected by bearer-token authentication and idempotent writes.-
- AlicenseNot gradedqualityCmaintenanceEnables Egyptian-Arabic restaurant ordering over Streamable HTTP, exposing 11 tools for Arabic menu search, cart edits, VAT-quoted totals, confirmed order placement, order status/history, and weekday-based reordering with cross-session memory of orders and preferences.MIT