Supports environment variable configuration through .env files, used for managing API keys and other sensitive configuration
Provides REST API endpoints for interacting with the supply chain system, including inventory status, AGV management, order creation, and agent queries
Claude-Powered MCP Agent for Smart Supply Chain
This project simulates a smart warehouse system powered by Claude using Model Context Protocol (MCP) patterns. The system manages inventory, automated guided vehicles (AGVs), and order processing through a set of specialized agents coordinated by Claude.
Project Structure
Related MCP server: ConnectWise Manage MCP Server
Features
MCP-style Modular Agents: InventoryManager, AGVPlanner, RestockAgent, Coordinator
Warehouse Simulation: Inventory tracking, AGV movement, order processing
Claude Integration: Uses Anthropic's Claude API for decision-making
API Endpoints: FastAPI-based endpoints for interacting with the system
Setup
Create a virtual environment:
python -m venv venvActivate the virtual environment:
Windows:
venv\Scripts\activateUnix/MacOS:
source venv/bin/activate
Install dependencies:
pip install -r requirements.txtSet up environment variables:
cp claude.env.template claude.envThen edit
claude.envto add your Anthropic API key.Run the application:
python main.py
API Endpoints
GET /inventory: Get current inventory statusGET /agvs: Get status of all AGVsPOST /orders: Create a new orderPOST /ask-agent: Send a query to Claude agentGET /logs: Get recent action logs
Example Usage
Example prompt to Claude:
The inventory for Product X is at 5 units, below the threshold of 10. Two AGVs are available. Suggest an optimal action.
Claude will analyze the situation and return structured actions that the system can execute.
License
MIT