feat/remove-issue-labels #96

Merged
ignasgil merged 0 commits from feat/remove-issue-labels into main 2026-03-20 16:59:25 +00:00
ignasgil commented 2026-03-20 15:32:33 +00:00 (Migrated from codeberg.org)

Closes #95

What

Adds a remove_issue_labels MCP tool, the missing counterpart to the existing add_issue_labels.

Why

Without it, an MCP agent can add labels but has no way to remove them — breaking simple label-lifecycle workflows (e.g. adding in_progress when work starts, removing it when done).

How

  • New constant RemoveIssueLabelsToolName
  • New tool definition RemoveIssueLabelsTool with identical params to add_issue_labels
  • New handler RemoveIssueLabelsFn — iterates label IDs, calls forgejo.Client().DeleteIssueLabel() for each, returns updated issue
  • Registered in RegisterTool()
  • README tools table updated

The change is ~40 lines in operation/issue/issue.go. Tested live against a self-hosted Forgejo instance — add then remove confirmed working.

Closes #95 ## What Adds a `remove_issue_labels` MCP tool, the missing counterpart to the existing `add_issue_labels`. ## Why Without it, an MCP agent can add labels but has no way to remove them — breaking simple label-lifecycle workflows (e.g. adding `in_progress` when work starts, removing it when done). ## How - New constant `RemoveIssueLabelsToolName` - New tool definition `RemoveIssueLabelsTool` with identical params to `add_issue_labels` - New handler `RemoveIssueLabelsFn` — iterates label IDs, calls `forgejo.Client().DeleteIssueLabel()` for each, returns updated issue - Registered in `RegisterTool()` - README tools table updated The change is ~40 lines in `operation/issue/issue.go`. Tested live against a self-hosted Forgejo instance — add then remove confirmed working.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
agentic-forges/forgejo-mcp!96
No description provided.