Add create_release, update_release, delete_release, and generate_release_notes tools

Aperta
#2,853 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
go
Ambito
api, tooling

Direzione di ricerca

Inizia nel repos toolset e confronta i pattern esistenti di update_pull_request e delete_file con i quattro GitHub REST endpoints elencati nell’issue. Esamina i test, i toolsnaps e la documentazione dell’implementazione, quindi verifica che tutti e quattro i release workflows e l’annotazione destructive-operation siano coperti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
33.1k
Fork
5k
Merge medio
2g 15h
PR unite (30g)
27

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/github-mcp-server

Tutte le issue di github/github-mcp-server

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.