Skip to content

Conversation

@BuddhiLW
Copy link

@BuddhiLW BuddhiLW commented Jan 1, 2026

Summary

This PR adds an MCP (Model Context Protocol) server that exposes the pomodoro CLI functionality to Claude Code and other MCP-compatible clients.

Features

  • 10 MCP tools for full pomodoro workflow control
  • Full hook integration (start/stop/break events trigger hooks just like CLI)
  • Uses stdio transport for seamless integration

New Files

  • mcp/server.go - MCP server initialization and tool registration
  • mcp/tools.go - Tool handlers using the existing openpomodoro client
  • cmd/pomodoro-mcp/main.go - Entry point for the MCP binary
  • contribution.sh - Helper script for contributors to switch module paths

Installation & Usage

go install github.com/open-pomodoro/openpomodoro-cli/cmd/pomodoro-mcp@latest
claude mcp add pomodoro -- pomodoro-mcp

Available Tools

Tool Description
start_pomodoro Start a new Pomodoro (description, duration, tags)
get_status Get current Pomodoro status
finish_pomodoro Finish the current Pomodoro early
cancel_pomodoro Cancel the active Pomodoro
clear_pomodoro Clear a finished Pomodoro
start_break Start a break timer
repeat_pomodoro Repeat the last Pomodoro
amend_pomodoro Amend current Pomodoro
get_history Get Pomodoro history
get_settings Get current settings

Test Plan

  • Built and tested locally
  • All existing tests pass (make test)
  • MCP tools work correctly with Claude Code
  • Hooks are triggered properly for state changes

Co-Authored-By: Pedro Gomes Branquinho pedrogbranquinho@gmail.com
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

🤖 Generated with Claude Code

Add an MCP (Model Context Protocol) server that exposes the pomodoro CLI
functionality to Claude Code and other MCP-compatible clients.

Features:
- 10 MCP tools: start_pomodoro, get_status, finish_pomodoro, cancel_pomodoro,
  clear_pomodoro, start_break, repeat_pomodoro, amend_pomodoro, get_history,
  get_settings
- Full hook integration (start/stop/break events trigger hooks just like CLI)
- Uses stdio transport for communication

New files:
- mcp/server.go - MCP server initialization
- mcp/tools.go - Tool handlers
- cmd/pomodoro-mcp/main.go - Entry point
- contribution.sh - Helper script for module path switching

Installation:
  go install github.com/open-pomodoro/openpomodoro-cli/cmd/pomodoro-mcp@latest
  claude mcp add pomodoro -- pomodoro-mcp

Co-Authored-By: Pedro Gomes Branquinho <pedrogbranquinho@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@BuddhiLW
Copy link
Author

BuddhiLW commented Jan 1, 2026

pomodoro-showcase-compressed.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant