Add create_release, update_release, delete_release, and generate_release_notes tools

Đang mở
#2,853 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
go
Lĩnh vực
api, tooling

Hướng nghiên cứu

Bắt đầu trong repos toolset và so sánh các pattern hiện có của update_pull_request và delete_file với bốn GitHub REST endpoints được liệt kê trong issue. Xem lại tests, toolsnaps và docs của phần triển khai, sau đó xác minh rằng cả bốn release workflows và annotation destructive-operation đều được bao phủ.

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

Mô tả

enhancement request ai review
Describe the feature or problem you'd like to solve

The repos toolset can only read releases today (list_releases, get_latest_release, get_release_by_tag). There's no way for an agent to create, edit, or delete a GitHub release, or preview auto-generated release notes, without leaving the MCP flow and asking the user to do it manually in the GitHub UI. This gap covers four REST endpoints that already exist on the GitHub API:

Proposed solution

Add four new tools to the repos toolset:

  • create_release — creates a release (tag, name, body, draft/prerelease flags, make_latest, generate_release_notes, discussion category).
  • update_release — partial update of an existing release by release_id, following the same "only send fields that were provided" pattern already used by update_pull_request.
  • delete_release — deletes a release by release_id (does not delete the underlying tag), marked with the DestructiveHint annotation like delete_file.
  • generate_release_notes — calls the preview-only generate-notes endpoint so an agent can show the user what the auto-generated notes would look like before committing to a release.

This lets an agent complete an end-to-end release workflow (tag → generate notes → create release → tweak → publish) entirely through MCP tools.

Example prompts or workflows
  • "Tag main as v2.3.0, generate the release notes since v2.2.0, and publish it as a GitHub release."
  • "Create a draft release for v1.4.0 so the team can review the notes before it goes out."
  • "Update the v1.4.0 release to mark it as the latest release and take it out of draft."
  • "Delete the accidental v1.4.0-rc1 release, but leave the tag alone."
  • "Show me what the auto-generated release notes would look like for v2.0.0 without creating the release yet."
Additional context

Implementation is ready — a PR implementing all four tools (with tests, toolsnaps, and docs) follows this issue.

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

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.