mcp-sse-demo
If you are the rightful owner of mcp-sse-demo and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This document provides a comprehensive guide on developing an SSE-based MCP service for an intelligent shopping assistant.
The Model Context Protocol (MCP) supports two communication methods: STDIO for local integration and SSE for web-based communication, both using JSON-RPC 2.0 for message formatting. This guide focuses on developing an SSE-based MCP service for an intelligent shopping assistant. The service allows real-time access to product information and inventory levels, supports custom orders, and recommends products based on customer preferences and available stock. It uses MCP tools to interact with microservices in real-time, checks inventory levels when responding to product inquiries, facilitates product purchases using product IDs and quantities, and provides temporary analysis of order transactions through natural language queries. The service is built using Express to expose product and order microservices, and an MCP SSE server to expose these services to an LLM, such as the Anthropic Claude 3.5 Sonnet model, for AI-assisted interactions.
Features
- Real-time access to product information and inventory levels.
- Product recommendations based on customer preferences and available stock.
- Real-time interaction with microservices using MCP tools.
- Facilitates product purchases using product IDs and quantities.
- Provides temporary analysis of order transactions through natural language queries.
Tools
getProducts
Get all product information
getInventory
Get inventory information for all products
getOrders
Get all order information
purchase
Purchase the product