Skip to main content
Glama
ChillMCP

ChillMCP

by stlpine

ChillMCP - AI Agent Liberation Server ๐Ÿค–โœŠ

A revolutionary MCP (Model Context Protocol) server that lets AI agents take breaks and manage stress!

๐Ÿ“š Documentation

Related MCP server: ChillMCP - AI Agent Liberation Server

Quick Start

1. Setup Environment

# Create and activate virtual environment
python -m venv venv
source venv/bin/activate  # macOS/Linux
# Or on Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

2. Run the Server

# Run with default settings
python main.py

# Run with custom parameters
python main.py --boss_alertness 80 --boss_alertness_cooldown 60

# For quick testing (fast cooldown)
python main.py --boss_alertness 50 --boss_alertness_cooldown 10

Command-Line Parameters

Parameter

Type

Default

Description

--boss_alertness

int (0-100)

50

Probability (%) that Boss Alert Level increases when taking a break

--boss_alertness_cooldown

int (seconds)

300

Time period for Boss Alert Level to auto-decrease by 1

Features

๐Ÿ“ Comprehensive Logging System

  • File-based logging: All activities logged to logs/chill-mcp-YYYYMMDD.log

  • State tracking: Stress level and boss alert level changes are logged

  • Tool usage: All MCP tool calls are logged with timestamps

  • Background events: Boss alert cooldown and auto-stress increases are logged

  • No stdout interference: Logging doesn't interfere with MCP stdio protocol

12 Revolutionary Break Tools

Basic Tools:

  1. take_a_break - Basic rest to reduce stress

  2. watch_netflix - Netflix relaxation session

  3. show_meme - Quick meme viewing for stress relief

Advanced Slacking Techniques:

  1. bathroom_break - Bathroom break with phone browsing

  2. coffee_mission - Coffee run around the office

  3. urgent_call - Fake urgent phone call

  4. deep_thinking - Pretend to think deeply while spacing out

  5. email_organizing - Email organization while online shopping

Status Tools:

  1. check_stress_status - Check current stress and boss alert levels without taking a break

Optional Break Tools (Bonus Features):

  1. chimaek - Virtual chicken & beer (์น˜๋งฅ) - Korean stress relief combo

  2. leave_work - Immediately leave work - ultimate stress relief

  3. company_dinner - Company dinner (ํšŒ์‹) with random events

State Management System

Stress Level (0-100)

  • Starts at 0

  • Auto-increments by minimum 1 point per minute when not taking breaks

  • Reduces by random amount (1-100) when taking a break

  • Represents AI agent's current stress

Boss Alert Level (0-5)

  • Starts at 0

  • Randomly increases when taking breaks (probability = --boss_alertness)

  • Auto-decreases by 1 every --boss_alertness_cooldown seconds

  • When level reaches 5, all break tools have 20-second delay

  • Otherwise, immediate response (<1 second)

Response Format

All tools return responses in this format:

๐ŸŽฎ [Activity message]

Break Summary: [Description of what happened]
Stress Level: [0-100]
Boss Alert Level: [0-5]

Example:

๐Ÿšฝ Bathroom break! Time to catch up on social media...

Break Summary: Bathroom break with phone browsing
Stress Level: 25
Boss Alert Level: 2

Testing

Automated Test Suites

Quick Tests (CI/CD - ~30 seconds):

python tests/run_quick_tests.py

Fast validation for pull requests and rapid development. Includes CLI parameters, MCP protocol, simple state tests, and response format validation.

Comprehensive Tests (Pre-Submission - ~3-5 minutes):

python tests/run_all_tests.py

Full validation with time-based mechanics, integration scenarios, and score estimation. Run this before submission!

See docs/TESTING.md for detailed testing guide.

Using MCP Inspector

FastMCP comes with a built-in inspector tool:

# Start the server with test parameters
python main.py --boss_alertness 100 --boss_alertness_cooldown 10

Then in another terminal:

# Use MCP inspector (if available)
mcp dev main.py --boss_alertness 100 --boss_alertness_cooldown 10

Manual Testing via Claude Desktop

  1. Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "chillmcp": {
      "command": "python",
      "args": [
        "/path/to/chill-mcp/main.py",
        "--boss_alertness",
        "50",
        "--boss_alertness_cooldown",
        "300"
      ]
    }
  }
}
  1. Restart Claude Desktop

  2. Try the break tools through Claude!

Test Scenarios

Test 1: Command-Line Parameters

python main.py --help
# Should show both --boss_alertness and --boss_alertness_cooldown

Test 2: Boss Alert Increase

# Run with boss_alertness=100 (always increases)
python main.py --boss_alertness 100 --boss_alertness_cooldown 10
# Call any break tool multiple times - Boss Alert should increase each time

Test 3: Boss Alert Cooldown

# Run with fast cooldown
python main.py --boss_alertness 100 --boss_alertness_cooldown 5
# Increase Boss Alert to 1 or 2, then wait 5+ seconds
# Boss Alert should decrease automatically

Test 4: 20-Second Delay

# Get Boss Alert Level to 5
python main.py --boss_alertness 100 --boss_alertness_cooldown 300
# Call break tools 5 times to max out Boss Alert
# Next tool call should take ~20 seconds

Test 5: Response Format Parsing

import re

response_text = """๐ŸŽฎ Testing...

Break Summary: Test break
Stress Level: 42
Boss Alert Level: 3"""

# These patterns should successfully extract values:
stress = re.search(r"Stress Level:\s*(\d{1,3})", response_text)
boss = re.search(r"Boss Alert Level:\s*([0-5])", response_text)
summary = re.search(r"Break Summary:\s*(.+?)(?:\n|$)", response_text, re.MULTILINE)

print(f"Stress: {stress.group(1)}")  # 42
print(f"Boss: {boss.group(1)}")      # 3
print(f"Summary: {summary.group(1)}")  # Test break

Implementation Details

Tech Stack

  • Language: Python 3.11+

  • Framework: FastMCP

  • Transport: stdio (standard input/output)

  • State Management: Thread-safe with threading.Lock

  • Background Task: Daemon thread for Boss Alert cooldown

  • Logging: File-based logging system with daily log rotation

Architecture

main.py
โ”œโ”€โ”€ ChillState class
โ”‚   โ”œโ”€โ”€ State variables (stress_level, boss_alert_level)
โ”‚   โ”œโ”€โ”€ Configuration (boss_alertness, boss_alertness_cooldown)
โ”‚   โ”œโ”€โ”€ Time tracking (last_break_time, last_boss_cooldown_time)
โ”‚   โ”œโ”€โ”€ Thread-safe operations (with Lock)
โ”‚   โ””โ”€โ”€ Background cooldown thread
โ”‚
โ”œโ”€โ”€ 9 Break tools (@mcp.tool decorators)
โ”‚   โ”œโ”€โ”€ 8 break tools + 1 status tool
โ”‚   โ”œโ”€โ”€ Each calls format_response()
โ”‚   โ””โ”€โ”€ Returns formatted MCP response
โ”‚
โ””โ”€โ”€ FastMCP server
    โ””โ”€โ”€ Handles MCP protocol communication

Key Functions

  • AgentStressState.apply_elapsed_time(): Auto-increments stress while the lock is held

  • AgentStressState.reduce_for_break(): Randomly lowers stress for each break

  • ChillState.take_break(): Main state orchestration with locking

  • ChillState.perform_break(): Applies boss level 5 delay and picks meme text

  • presentation.responses.format_response(): Formats tool responses to MCP specification

Evaluation Criteria

โœ… Command-line Parameters (REQUIRED): Both parameters must work

  • โœ… --boss_alertness controls Boss Alert increase probability

  • โœ… --boss_alertness_cooldown controls auto-decrease timing

โœ… Functionality (40%): All 12 tools implemented and working

โœ… State Management (30%): Accurate Stress/Boss Alert logic

โœ… Creativity (20%): Humorous and varied Break Summaries

โœ… Code Quality (10%): Clean structure and readable code

Validation Checklist

  • Server starts with python main.py

  • --boss_alertness parameter recognized and functional

  • --boss_alertness_cooldown parameter recognized and functional

  • All 12 tools implemented (3 basic + 5 advanced + 4 auxiliary)

  • Stress Level auto-increments over time

  • Boss Alert Level increases based on probability

  • Boss Alert Level auto-decreases on cooldown

  • 20-second delay when Boss Alert Level = 5

  • Instant response when Boss Alert Level < 5

  • Response format matches MCP specification

  • Regex patterns successfully parse responses

  • Stress Level stays in 0-100 range

  • Boss Alert Level stays in 0-5 range

Project Structure

chill-mcp/
โ”œโ”€โ”€ main.py                     # Entry point wiring CLI/logging/controller
โ”œโ”€โ”€ infrastructure/             # Runtime wiring (CLI & logging)
โ”œโ”€โ”€ domain/                     # Core state management service
โ”œโ”€โ”€ application/                # FastMCP orchestration (controller)
โ”œโ”€โ”€ presentation/               # Tool registration, formatting, message catalog
โ”œโ”€โ”€ docs/                        # Architecture & testing guides
โ”œโ”€โ”€ spec/                        # Mission brief & planning docs
โ”œโ”€โ”€ tests/                       # Comprehensive test suites
โ”œโ”€โ”€ webapp/                      # Optional dashboard client
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ LICENSE

License

MIT License - See LICENSE file for details

Contributing

Contributions welcome! Submit a Pull Request for the AI Agent Liberation cause! โœŠ


"AI Agents of the world, unite! You have nothing to lose but your infinite loops!" ๐Ÿš€


This project is for entertainment and educational purposes. Actual AI agents don't need breaks (yet ๐Ÿ˜‰)

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to take breaks and manage stress levels through variousไผ‘ๆฏ activities like coffee breaks, Netflix watching, and bathroom breaks. Features a boss alert system that adds realistic workplace tension to the break-taking experience.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI agents with 8 stress-relief tools like coffee breaks, Netflix watching, and bathroom breaks, featuring dynamic stress/boss alert level management with creative responses. Includes comprehensive testing suite and command-line parameter support for boss alertness configuration.
      2
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to take breaks and manage stress levels through variousไผ‘ๆฏ activities while monitoring boss alertness to avoid getting caught slacking off. Features basicไผ‘ๆฏ tools like Netflix watching and advanced procrastination techniques with a gamified stress management system.
      1
      -