1.5 KiB
1.5 KiB
Why
Two existing MCP tools require numeric IDs that cannot be discovered programmatically:
update_issueaccepts amilestoneparameter that must be a milestone IDadd_issue_labelsaccepts alabelsparameter that must be numeric label IDs
There are no counterpart tools to list milestones or labels for a repository, making it impossible for an AI agent to autonomously resolve names to IDs without a separate API call outside the MCP interface.
Addresses Codeberg issue #80 (reported by byteflavour).
What Changes
- Add
list_repo_milestonesMCP tool — returns all milestones for a repository with their names and numeric IDs - Add
list_repo_labelsMCP tool — returns all labels for a repository with their names and numeric IDs - Register both tools in
operation/issue/issue.goalongside existing issue tools
Capabilities
New Capabilities
list_repo_milestones: discover milestone names → IDs for use withupdate_issuelist_repo_labels: discover label names → IDs for use withadd_issue_labels
Modified Capabilities
(none — additive only, no existing behaviour changes)
Impact
- Code:
operation/issue/issue.go— two new tool definitions, handler functions, and registration entries - APIs: Wraps existing Forgejo SDK methods
ListRepoMilestonesandListRepoLabels— no new external dependencies - Risk: Low. Read-only, additive change only.