Assignment – an e-commerce STDIO server
For this MCP server, we will add capabilities that can be used in the context of an e-commerce application. Therefore, the server will need the following features.
It will need these tools:
get-orders: This tool will return a list of orders. The optional input is a customer ID, and the output is a list of orders. Each order should contain the following fields: ID, customer ID, quantity, total price, and status.get-order: This tool will return a specific order. The input is the order ID, and the output is an order. The order should contain the following fields: ID, customer ID, quantity, total price, and status.place-order: This tool will place an order. The input is the customer ID and the cart ID.get-cart: This tool will return a cart.get-cart-items: This tool will return a list of items in the cart. The input is the cart ID, and the output is a list of items. Each item should contain the following...