viktormar123
MCP Serverviktormar123public

ai scheduling agent

一个基于AI的小型企业排班助手,使用GPT-4o模型生成员工排班表。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
-
License

About This Server

一个基于AI的小型企业排班助手,使用GPT-4o模型生成员工排班表。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Scheduling Agent

This project implements a simple AI-powered scheduling assistant for small businesses.
It uses OpenAI's GPT-4o model to interact with users, gather constraints, and generate employee shift schedules. The current recommended entry‑point is agent2.py, a conversational CLI that guides you through schema creation and schedule generation via natural language.

The agent:

  • Gathers company information via structured conversation.
  • Builds a structured JSON scheduling schema.
  • Generates schedules using optimization strategies.
  • Supports fallback suggestions when no feasible solution is found.

Features

  • Human-in-the-loop schedule building
  • Dynamic schema collection through natural language
  • Support for hard and soft constraints
  • Basic, partial, and optimized scheduling modes
  • Conversational CLI (agent2.py) – no rigid command syntax required
  • JSON schema persisted between runs (stored in data/current_schema.json)

Quick Start

  1. Install dependencies
    pip install -r requirements.txt
    export OPENAI_API_KEY=<your‑key>
    
  2. Launch the agent
    python agent2.py
    
  3. Chat naturally – the agent will ask follow‑up questions until it has enough information to build a schedule, then call the appropriate optimisation tool.

Tips

  • Enter sends a message, Shift + Enter inserts a newline.
  • If the optimiser cannot find a feasible schedule the agent will suggest relaxing constraints or (after three attempts) offer a greedy fallback.

Example Interaction

User: We run a café open 08‑18, Mon–Fri.  
Agent: Great! How many shifts and what roles do you need per shift?  
…(dialog continues)…  
Agent: Here’s your weekly schedule – does it look good?

Repository Structure

  • agent2.py – main conversational agent
  • tools.py – scheduling backend (greedy + CP‑SAT)
  • data/ – saved schemas
  • legacy: agent.py, run.py

Technologies

  • Python 3.10+
  • OpenAI GPT-4o
  • Google OR-Tools CP-SAT
  • JSON schema-based modeling

Installation

pip install -r requirements.txt

Future Ideas

  • Support for multi-location or multi-week scheduling
  • Agent-generated optimization functions
  • Visual web interface for schema interaction
  • Export to Google Calendar, Excel, or PDF
  • MCP (Model Context Protocol) integration

Quick Start

1

Clone the repository

git clone https://github.com/viktormar123/ai-scheduling-agent
2

Install dependencies

cd ai-scheduling-agent
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerviktormar123
Repoai-scheduling-agent
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation