Backend server for AI Gourmet, utilizing the Message Context Protocol (MCP) via the FastMCP library to provide tools for managing menu browsing, cart operations, and order placement.
- Menu Management:
- Retrieve menu categories.
- List items by category.
- Get detailed information for a specific item.
- Find items based on criteria like dietary preference, price, allergens, and category.
- Shopping Cart:
- Create a new shopping cart session.
- Add items to the cart.
- Remove items from the cart.
- View current cart contents and total.
- Order Processing:
- Checkout a cart to create an order.
- Get the status of a specific order.
- List all placed orders.
- Python 3.x
FastMCPlibrary (for defining MCP tools and running the server)- Standard Python libraries:
json,uuid,datetime,os,typing
- Python 3.8+ (or your specific version)
- pip (Python package installer)
- Git
git clone [Your Repository URL Here e.g., https://github.com/yourusername/aigourmet-mcp-server.git]
cd aigourmet-mcp-server
### 2. Create and Activate a Virtual Environment (Recommended)
```shell
# For Linux/macOS
python3 -m venv venv
source venv/bin/activate
# For Windows
python -m venv venv
.\venv\Scripts\activaterequirements.txt:
pip install -r requirements.txtpython3 mcp-server/src/server.py