@evolve-platform/mcp-customer is a customer-facing MCP server built on
mcp-core. It exposes the tools that an AI assistant needs to help customers
browse products, manage their cart, view orders, and handle their account.
Here is what a typical AI-assisted shopping session looks like from the tool
invocation perspective:
sequenceDiagram
participant User as Customer
participant AI as AI Assistant
participant MCP as mcp-customer
User->>AI: I'm looking for running shoes
AI->>MCP: get_products(query: "running shoes")
MCP-->>AI: Product results
AI->>User: Here are some options...
User->>AI: Tell me more about the Nike Air Zoom
AI->>MCP: get_product_detail_page(slug: "nike-air-zoom")
MCP-->>AI: Full product details
AI->>User: Details and pricing...
User->>AI: Add it to my cart, size 42
AI->>MCP: cart_line_items_add(sku: "nike-air-zoom-42", quantity: 1)
MCP-->>AI: Updated cart
AI->>User: Added to your cart!
User->>AI: I have a discount code SAVE10
AI->>MCP: cart_discount_code_add(id: "<cart id>", code: "SAVE10")
MCP-->>AI: Cart with discount applied
AI->>User: Discount applied, your new total is...