Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add bulk/batch issue label operations

Đang mở
#2,412 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
go
Lĩnh vực
api, tooling

Hướng nghiên cứu

Xem xét công cụ MCP issue_write hiện có và endpoint REST của GitHub để thêm labels vào một issue. So sánh công cụ batch_update_issues được đề xuất với việc mở rộng issue_write, sau đó xác định cách một lần gọi duy nhất phải xử lý nhiều số issue với các thao tác thêm và xóa, đồng thời xác minh các workflow được ghi lại.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

request ai review

[!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:

  1. Make N sequential issue_write calls (slow, noisy)
  2. Fall back to gh CLI 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
  1. "Add the stale label to all issues that haven't been updated in 90 days"
  2. "Label issues #10, #15, #20, #25 as sprint-42"
  3. "Move all needs-triage issues to triaged after review"
  4. "Add breaking-change label 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.

Ngôn ngữ chính
Go
Star
33.1k
Fork
5k
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
25

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/github-mcp-server

Tất cả issue của github/github-mcp-server

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.