Skip to content

Visual status indicator MCP server for AI assistants - green when working, yellow when waiting, red when done

License

Notifications You must be signed in to change notification settings

bigph00t/greenlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

greenlight

A visual status indicator MCP server for AI assistants. Displays a colored terminal window that shows whether your AI is working (green) or done (red).

Perfect for walking away from your desk while an AI works on a task - just glance at the screen to see if it's finished.

Features

  • Green light: AI is working on a task
  • Yellow light: AI is waiting for user approval (via hooks)
  • Red light: AI has completed the task
  • Gray light: Idle/no status set
  • Real-time updates via file watching
  • Clean, full-screen terminal display
  • Works with Claude Code and other MCP-compatible AI tools
  • Auto-detection: Only activates when display terminal is open

Screenshots

Working (Green) Waiting (Yellow) Done (Red)
Working Waiting Done

Installation

# Clone the repository
git clone https://github.com/bigph00t/greenlight.git
cd greenlight

# Install dependencies
npm install

Usage

1. Start the display window

Open a terminal and run:

npm run display
# or
node src/display.js

Leave this terminal visible - it will show the status colors.

2. Configure your AI assistant

Add to your Claude Code configuration (~/.claude.json):

{
  "mcpServers": {
    "greenlight": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/greenlight/src/server.js"]
    }
  }
}

3. Use in your workflow

The AI can now call these tools:

  • set_working - Sets the light to green (with optional message)
  • set_done - Sets the light to red (with optional message)
  • get_status - Returns the current status

Example prompt:

"Use greenlight to show you're working, then build my project, and set it to done when finished."

How it works

  1. The MCP server writes status to ~/.greenlight/status.json
  2. The display script watches this file and updates the terminal colors
  3. Status changes appear in real-time (100ms polling)
  4. Display detection: The server automatically detects if the display is running. If not, tools gracefully skip (no errors)

Optional: Yellow Light for Approval Prompts (Claude Code Only)

Note: This step is optional and only works with Claude Code. It requires manual setup - hooks cannot be auto-installed by MCP servers.

The yellow "waiting" status can automatically appear when Claude Code is waiting for your approval on a tool. This requires adding hooks to your Claude Code settings.

Add this to ~/.claude/settings.json:

{
  "hooks": {
    "Notification": [
      {
        "matcher": "permission_prompt",
        "hooks": [
          {
            "type": "command",
            "command": "node /FULL/PATH/TO/greenlight/src/cli.js waiting 'Waiting for approval...'"
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Bash|Edit|Write|Read|Glob|Grep|WebFetch|WebSearch|Task",
        "hooks": [
          {
            "type": "command",
            "command": "node /FULL/PATH/TO/greenlight/src/cli.js working"
          }
        ]
      }
    ]
  }
}

Important: Replace /FULL/PATH/TO/greenlight with the actual path where you cloned the repo.

What this does:

  • Notification hook → Turns yellow when Claude requests permission for a tool
  • PostToolUse hook → Turns back to green after you approve and the tool runs

Without hooks: Green and red still work perfectly via the MCP server - you just won't get automatic yellow during approval prompts.

Tools

Tool Description
set_working Set status to WORKING (green). Optional message parameter.
set_done Set status to DONE (red). Call after final response to user.
get_status Get current status as JSON.

Status File

Status is stored at ~/.greenlight/status.json:

{
  "status": "working",
  "message": "Building project...",
  "timestamp": "2024-01-15T10:30:00.000Z"
}

License

MIT

About

Visual status indicator MCP server for AI assistants - green when working, yellow when waiting, red when done

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •