feat: add remove_issue_labels tool #95

Closed
opened 2026-03-20 15:04:33 +00:00 by ignasgil · 2 comments
ignasgil commented 2026-03-20 15:04:33 +00:00 (Migrated from codeberg.org)

What's missing

The MCP server exposes add_issue_labels but has no corresponding remove_issue_labels tool. There is no way to remove a label from an issue via MCP — you can only add them.

The Forgejo API has DELETE /repos/{owner}/{repo}/issues/{index}/labels/{id} but it's not wired up.

Why it matters

Without this, an MCP agent that adds a label (e.g. in_progress) during a workflow has no way to clean it up when the work is done. This breaks simple automation patterns that rely on label lifecycle.

Proposed tool

remove_issue_labels — mirrors add_issue_labels exactly:

  • Same parameters: owner, repo, index, labels (comma-separated numeric IDs)
  • Same return value: updated issue object after removal
  • Implementation loops over IDs and calls DeleteIssueLabel once per label (the API is per-ID, unlike the bulk add)

I have an implementation ready on my fork if you'd like me to open a PR.

## What's missing The MCP server exposes `add_issue_labels` but has no corresponding `remove_issue_labels` tool. There is no way to remove a label from an issue via MCP — you can only add them. The Forgejo API has `DELETE /repos/{owner}/{repo}/issues/{index}/labels/{id}` but it's not wired up. ## Why it matters Without this, an MCP agent that adds a label (e.g. `in_progress`) during a workflow has no way to clean it up when the work is done. This breaks simple automation patterns that rely on label lifecycle. ## Proposed tool `remove_issue_labels` — mirrors `add_issue_labels` exactly: - Same parameters: `owner`, `repo`, `index`, `labels` (comma-separated numeric IDs) - Same return value: updated issue object after removal - Implementation loops over IDs and calls `DeleteIssueLabel` once per label (the API is per-ID, unlike the bulk add) I have an implementation ready on my fork if you'd like me to open a PR.
goern commented 2026-03-20 16:11:43 +00:00 (Migrated from codeberg.org)

Ja sure, happy to get a pr!!

Ja sure, happy to get a pr!!
ignasgil commented 2026-03-20 16:16:01 +00:00 (Migrated from codeberg.org)

nice.

my first ever open source contribution too.

nice. my first ever open source contribution too.
Sign in to join this conversation.
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#95
No description provided.