使用说明
MCP Roster Server
AI-powered Laboratory Duty Roster Generation System for Mwananyamala Regional Referral Hospital with realistic shift preferences.
Features
- ✅ N→N→SD→DO Night Shift Pattern: Automatic compliance with hospital policy
- ✅ Realistic Shift Preferences: 13 staff strict OH, weekend preferences, PM/night/EMD/BIMA predominant
- ✅ Annual Leave Integration: Respects 2026 leave schedule
- ✅ Multi-Lab Support: Main Lab, Emergency Lab (EMD), BIMA Lab, TB Lab
- ✅ Excel Export: Generates ISO-compliant roster files
- ✅ MCP Protocol: Compatible with OpenAI Agents and n8n
Realistic Shift Preferences
Categories Implemented:
- 13 staff: Strict OH only (no PM/EMD/BIMA)
- 2 staff: OH weekdays + PM weekends (shuffle)
- 1 staff: OH weekdays + PM Sunday only
- 5 staff: EMD predominant (Emergency Lab)
- 3 staff: PM predominant
- 3 staff: Night predominant
- 2 staff: BIMA predominant
Weekend Distribution:
- Saturday-only: 9 staff
- Sunday-only: 5 staff
- PM shuffle: 2 staff
See SHIFT_PREFERENCES.md for complete documentation.
Deployment to Render
Option 1: Render Blueprint (Recommended)
- Fork this repository to GitHub
- Connect to Render: https://dashboard.render.com/blueprints
- Select your repository
- Render auto-detects
render.yaml - Click "Apply"
Option 2: Manual Web Service
- Create new Web Service on Render
- Connect your GitHub repo
- Settings:
- Runtime: Python 3
- Build Command:
pip install -r requirements.txt - Start Command:
uvicorn main:app --host 0.0.0.0 --port 10000