Use this skill to interact with the Flower Shop CLI.
The Flower Shop CLI is a command-line tool for managing the flower shop database.
Run from the project root using pnpm:
pnpm console <command>
pingCheck database connectivity (health check).
pnpm console ping
fillClear and fill the database with demo flower data (10 flowers including 7 real and 3 fictitious).
pnpm console fill
listList all flowers in the database as JSON.
pnpm console list
list-ordersList the most recent orders as JSON.
pnpm console list-orders
add-orderAdd an order. Order data must be passed via STDIN in JSON format.
echo '{"customerName":"Alice","flowerName":"Rose","size":"M","color":"red"}' | pnpm console add-order
Example JSON for an order:
{
"customerName": "Alice",
"flowerName": "Rose",
"size": "M",
"color": "red"
}
Fields:
customerName (string, required) — the customer's nameflowerName (string, required) — the dominant flower in the bouquetsize (string, required) — one of "S", "M", or "L"color (string, required) — the color of the bouquetmcpStart an MCP server using stdio transport. The server exposes two tools:
list-orders — List the most recent orders. Optional parameters: skip (number of orders to skip), top (max orders to return, default 10).place-order — Place a new flower order. Required parameters: customerName, flowerName, size (S/M/L), color.pnpm console mcp
To test with the MCP Inspector:
npx @modelcontextprotocol/inspector -- pnpm console mcp