mirror of
https://gitea.com/gitea/gitea-mcp.git
synced 2026-01-16 20:52:43 +00:00
## Summary Implements 9 new MCP tools for Gitea time tracking functionality, enabling AI assistants to help users track time spent on issues. ## New Tools ### Stopwatch Tools | Tool | Type | Description | |------|------|-------------| | `start_stopwatch` | Write | Start timing work on an issue | | `stop_stopwatch` | Write | Stop stopwatch and record tracked time | | `delete_stopwatch` | Write | Cancel stopwatch without recording | | `get_my_stopwatches` | Read | List all active stopwatches for current user | ### Tracked Time Tools | Tool | Type | Description | |------|------|-------------| | `list_tracked_times` | Read | Get tracked times for a specific issue | | `add_tracked_time` | Write | Manually add time entry to an issue | | `delete_tracked_time` | Write | Remove a tracked time entry | | `list_repo_times` | Read | Get all tracked times for a repository | | `get_my_times` | Read | Get all tracked times for current user | ## Implementation - Added new `operation/timetracking/timetracking.go` module - Follows existing patterns from milestone.go - Uses Gitea SDK v0.22.1 time tracking methods - Registered in `operation/operation.go` Fixes #112 Co-authored-by: Tyler Potts <tyler@adhdafterdiagnosis.com> Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/113 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: hiifong <f@f.style> Co-authored-by: tylermitchell <tylermitchell@noreply.gitea.com> Co-committed-by: tylermitchell <tylermitchell@noreply.gitea.com>