Add bulk/batch issue label operations
还没有人认领这个 Issue。
评估
调研方向
审查现有的 issue_write MCP 工具以及用于向 issue 添加 labels 的 GitHub REST 端点。比较提议的 batch_update_issues 工具与扩展 issue_write 的方案,然后定义单次调用应如何通过添加和移除操作处理多个 issue 编号,并验证已记录的工作流。
由索引模型根据 Issue 内容生成。
描述
[!Note]
Responses generated with Claude
Describe the feature or problem you'd like to solve
There is no way to add labels to multiple issues in a single MCP tool call. The current issue_write tool supports labeling one issue at a time, but common workflows require labeling dozens of issues matching a search query (e.g., "label all issues from milestone X as priority/high").
This forces MCP clients to either:
- Make N sequential
issue_writecalls (slow, noisy) - Fall back to
ghCLI with scripting (breaks MCP-first pattern)
Proposed solution
Add a batch labeling capability — either as:
Option A: A new batch_update_issues tool that accepts a list of issue numbers and label operations:
{
"owner": "org",
"repo": "repo",
"issue_numbers": [1, 2, 3, 4, 5],
"add_labels": ["priority/high"],
"remove_labels": ["needs-triage"]
}
Option B: Extend issue_write with a batch method that accepts multiple issue numbers.
Example prompts or workflows
- "Add the
stalelabel to all issues that haven't been updated in 90 days" - "Label issues #10, #15, #20, #25 as
sprint-42" - "Move all
needs-triageissues totriagedafter review" - "Add
breaking-changelabel to all issues in the v3.0 milestone"
Additional context
The GitHub REST API supports adding labels to individual issues via POST /repos/{owner}/{repo}/issues/{issue_number}/labels. A batch tool would simply iterate internally, but having it as a single MCP call reduces round-trips and permission prompts for MCP clients like Claude Code.
- 主要语言
- Go
- 星标
- 33.1k
- 派生
- 5k
- 平均合并
- 2 天 1 小时
- 30 天内合并 PR
- 25
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/github-mcp-server 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
github/github-mcp-server#3235 ·
-
enhancement
难度 1/5 1 小时以内 新手友好度 88/100
github/github-mcp-server#3042 · 2 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
github/github-mcp-server#3032 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 74/100
github/github-mcp-server#2803 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
github/github-mcp-server#2740 ·
查看 github/github-mcp-server 的全部 Issue
相似的 Issue
-
area/dev-productivity area/disaster-recovery area/ipcei kind/enhancement
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 1/5 1 小时以内 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
kind/bug status/0-triage
难度 2/5 1-3 小时 新手友好度 75/100
-
🤔 refinement needed
难度 2/5 1-3 小时 新手友好度 75/100
equinor/radix-operator#1979 ·