Release notes

From agentic-community/mcp-gateway-registry · View interactive version

Release notes is an AI agent skill from the GitHub repository agentic-community/mcp-gateway-registry. Create release notes for a new version tag. Gathers all commits, PRs, issues fixed, and breaking changes since a previous release. Creates the release notes markdown file, tags the repo, and pushes. Asks the user to confirm the base version to diff against.

How to use this skill

Skill file

Release Notes Skill

Use this skill when the user wants to create release notes for a new version. This skill gathers all changes since a previous release, writes structured release notes following the project's established format, tags the repo, and pushes.

Input

The skill takes a version tag as input:

Output

Creates a release notes file in docs/release-notes/ and tags the repo:

Workflow

Step 0: Confirm the Pre-Release Smoke Test Was Run (Gate)

Before doing any release-notes work, confirm the end-to-end release smoke test

(tests/e2e_release_test.py) has been run

against a live gateway and passed. This suite exercises the surface a release

must not break: the registry is up, the built-in airegistry-tools server is

healthy and its search tool works, servers/agents/skills support full CRUD,

semantic search returns results, security scans run, and one real external MCP

server (AWS knowledge base) is reachable end to end through the gateway proxy.

  1. Ask the user, using AskUserQuestion, whether they have already run the

release smoke test and it passed. Offer these options:

  1. If the user asks you to run it, run against the target gateway. It needs

an admin/M2M bearer token file (Keycloak tokens expire in ~5 minutes, so

regenerate first if unsure):

```bash

# Local gateway with an admin token at ./.token

uv run python tests/e2e_release_test.py --token-file .token --registry-url http://localhost

# Remote gateway

uv run python tests/e2e_release_test.py \

--registry-url https://<gateway-host> --token-file .oauth-tokens/ingress.json

```

The runner prints a pass/fail table and exits non-zero if any test fails.

release. Report which tests failed and their messages, and help the user

investigate. A release must not be cut with a failing smoke test.

outage rather than failing) - only FAILED is a hard block.

  1. If the user chooses to skip it, warn once that the release is being cut

without an end-to-end verification, then proceed only if they confirm.

Only after this gate is resolved do you continue to Step 1.

Step 1: Determine the New Version Tag

  1. Parse the version from user input. If not provided, ask the user what version to release.
  2. Normalize to bare semver format (e.g., v1.24.0 becomes 1.24.0). Never prepend v for new releases.
  3. Verify the tag does not already exist: git tag -l {version}.
  4. If it exists, ask the user if they want to move it or choose a different version.

Step 2: Determine the Base Version (Ask User to Confirm)

The release notes are incremental from a previous version. Determine the base version:

  1. List existing release notes files (covers both old v-prefixed and new bare-semver names):

```bash

ls docs/release-notes/*.md

```

  1. List existing git tags (any version-shaped tag, prefixed or bare):

```bash

git tag --sort=-v:refname | grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+'

```

  1. Find the most recent tag. Note that the project switched from v-prefixed (v1.0.22) to bare-semver (1.23.0, 1.24.0) - the most recent bare-semver tag is the right base for a new release.
  2. Ask the user to confirm the base version using AskUserQuestion. Present the most recent tag as the recommended option and the 2-3 previous tags as alternatives. The user may want to skip intermediate tags (e.g., diff from 1.23.0 to 1.25.0, skipping 1.24.0).

Step 3: Gather All Changes Between Base and HEAD

Run these commands in parallel to gather change data:

# All commits (including merges) between base and HEAD
git log {base_tag}..HEAD --oneline

# Non-merge commits only (for detailed change analysis)
git log {base_tag}..HEAD --oneline --no-merges

# PR numbers in this release.
#
# DO NOT derive these from commit subjects. This repo is REBASE-AND-MERGE ONLY,
# so there are no "Merge pull request" commits and no "(#NNNN)" suffixes:
#   git log {base_tag}..HEAD --oneline --grep="Merge pull request"   -> 0 results
#   git log {base_tag}..HEAD --oneline | grep -oE "\(#[0-9]+\)$"     -> 0 results
# Those are the standard idioms on a squash-merge repo and they fail SILENTLY
# here, returning an empty list that reads like "no PRs in this release".
#
# Enumerate from the GitHub API by merge time instead, and see the base-window
# note below for which timestamp to use as the floor.
gh pr list --state merged --limit 200 \
  --json number,title,mergedAt,author,closingIssuesReferences \
  --jq "sort_by(.number) | reverse | .[] | select(.mergedAt > \"$BASE_WINDOW\") | \"#\(.number)|\(.author.login)|\(.title)\""

# Spot-check any individual PR's membership by ancestry, which is authoritative
# regardless of merge strategy. Find the PR's commit on main by subject, then:
#   git merge-base --is-ancestor <commit> {base_tag} && echo "already in {base_tag}"
# Use this whenever a contributor asks why their PR is or is not listed.

# Contributors -- direct authors of commits on main
# WARNING: this misses co-authors of squash-merged PRs (Step 4 #10 explains).
git log {base_tag}..HEAD --format="%aN" | sort | uniq -c | sort -rn

# Contributors -- per-PR commit authors (catches squash-merge co-authors)
# Squash merges collapse N branch commits into 1 commit on main authored by
# the merger, so `git log` above will not show the actual code authors.
# `gh pr view --json commits` returns the original branch commits with their
# authors intact, which is the only reliable way to credit everyone.
# $PR_NUMBERS comes from the gh pr list call above, NOT from commit subjects.
for pr in $PR_NUMBERS; do
  gh pr view $pr --json number,author,commits \
    --jq '"PR #\(.number) | opener: \(.author.login) | commit_authors: \([.commits[].authors[].name] | unique | join(", "))"' 2>/dev/null
done

# Env var changes
git diff {base_tag}..HEAD -- .env.example

# Helm chart changes (any file change inside charts/ requires
# `helm dependency build/update` for stack-chart consumers, even if
# Chart.yaml dependency lists are unchanged - subchart templates,
# values, and helpers are repackaged into .tgz on dependency rebuild).
git diff {base_tag}..HEAD -- charts/ --stat

# If ANY of these report changes, the upgrade instructions MUST tell
# Helm/EKS users to run `helm dependency build` and `helm dependency update`:
git diff {base_tag}..HEAD --stat -- 'charts/registry/' 'charts/auth-server/' 'charts/mcpgw/' 'charts/mcp-gateway-registry-stack/' 'charts/mongodb-configure/' 'charts/keycloak-configure/'

# Helm chart dependency-list changes (separate signal: added/removed deps)
git diff {base_tag}..HEAD -- charts/registry/Chart.yaml charts/auth-server/Chart.yaml charts/mcp-gateway-registry-stack/Chart.yaml charts/mcpgw/Chart.yaml

# Establish the base window ONCE, and use the EARLIER of two timestamps.
# The tag commit can be timestamped AFTER the GitHub release was published (seen
# on 1.31.0: tag commit 2026-09-24T00:34:45Z, release published
# 2026-09-23T22:34:13Z), in which case the tag-commit floor silently drops PRs
# that belong in the new release. Taking the earlier of the two is inclusive, and
# anything wrongly included is caught by the ancestry check above.
BASE_TAG_DATE=$(git log -1 --format=%cI {base_tag})
RELEASE_DATE=$(gh release view {base_tag} --json publishedAt --jq .publishedAt)
BASE_WINDOW=$(printf '%s\n%s\n' "$BASE_TAG_DATE" "$RELEASE_DATE" | sort | head -1)
echo "base window: $BASE_WINDOW"
gh issue list --state closed --limit 200 --json number,title,closedAt,labels \
  --jq ".[] | select(.closedAt >= \"$BASE_WINDOW\") | \"\(.number) | \(.title) | \(.closedAt)\""

# Closed issues referenced by merged PRs in this release (most reliable mapping)
# For each PR number, the PR body usually has "Closes #N" or "Fixes #N" -- gh
# resolves these via the closingIssuesReferences field.
for pr in $PR_NUMBERS; do
  gh pr view $pr --json number,title,closingIssuesReferences \
    --jq '"\(.number) | \(.title) | closes: \(.closingIssuesReferences | map("#\(.number)") | join(","))"' 2>/dev/null
done

Step 4: Categorize Changes

Analyze all commits and PRs to categorize them:

  1. Major Features: New capabilities that warrant their own section with description and PR link. Look for commits with feat: prefix or PRs labeled enhancement/feature-request.
  1. Breaking Changes: Changes that require user action during upgrade. Check for:
  1. New Environment Variables: Extract from .env.example diff -- any new variables added.
  1. Bug Fixes: Commits with fix: prefix or PRs labeled bug.
  1. Security Fixes: Commits mentioning security, CVE, injection, bypass, XSS, etc.
  1. Infrastructure/Helm Changes: Changes to charts/, terraform/, docker/.
  1. Dependency Updates: Dependabot PRs and manual dependency bumps.
  1. Documentation: Commits with docs: prefix.
  1. Closed Issues: Issues closed in the release window. Build from the

closingIssuesReferences of every merged PR in this release (most reliable -

GitHub auto-closes issues referenced by Closes #N / Fixes #N in PR

bodies), and supplement with manually-closed issues whose closedAt is

between the base-tag commit date and HEAD. De-duplicate by issue number.

  1. Contributors: Build the union of TWO sources, because neither alone is

complete:

catches anyone who pushed commits directly or whose PR was rebase/merge-

committed.

gh pr view <num> --json commits --jq '[.commits[].authors[].name] | unique'

and union the results -- catches co-authors of squash-merged PRs,

whose branch commits get collapsed into a single commit on main authored

by the merger. Without this step, every contributor on a squash-merged

branch except the merger is silently dropped.

Then for each unique contributor name, resolve to a GitHub username by

looking up a PR they appeared on:

(the per-commit authors array carries the GitHub login).

the guess is wrong. Never synthesize a username from a display name

("Amit Arora" -> "amitarora" was wrong; the actual login is aarora79).

Step 5: Write Release Notes

Create the file docs/release-notes/{version}.md following this exact structure

(note: bare semver, no v prefix, e.g. docs/release-notes/1.24.0.md):

# Release {version} - {Short Title Summarizing Major Features}

**{Month} {Year}**

---

## Upgrading from {base_version}

This section covers everything you need to know to upgrade from {base_version} to {version}.

### Breaking Changes

{List each breaking change with clear explanation and remediation steps.
If no breaking changes, write: "There are no breaking changes in this release."}

### New Environment Variables

| Variable | Default | Description |
|----------|---------|-------------|
| {VAR_NAME} | {default} | {description} |

{If no new env vars, write: "No new environment variables in this release."}

### Upgrade Instructions

#### Docker Compose

cd mcp-gateway-registry

git pull origin main

git checkout {version}

Review new env vars in .env.example and update your .env if needed

Then rebuild and restart:

./build_and_run.sh


#### Kubernetes / Helm (EKS)

cd mcp-gateway-registry

git pull origin main

git checkout {version}

{If helm dependency changes: "REQUIRED: Rebuild dependencies"}

cd charts/mcp-gateway-registry-stack

helm dependency build

helm dependency update

Update values.yaml if needed, then upgrade:

helm upgrade mcp-gateway . -f your-values.yaml


{CRITICAL: Include the `helm dependency build` and `helm dependency update`
commands whenever ANY file under `charts/` changes between base and HEAD,
not just Chart.yaml dependency-list changes. The packaged subchart `.tgz`
files inside `charts/mcp-gateway-registry-stack/charts/` are gitignored
and only get repackaged when consumers run `helm dependency build/update`.
If subchart templates/values/helpers changed, a plain `git pull` followed
by `helm upgrade` will use the OLD packaged subcharts, missing the changes.

Only omit `helm dependency build/update` if `git diff {base_tag}..HEAD --stat -- charts/`
shows ZERO files changed.}

#### Terraform / ECS

cd mcp-gateway-registry

git pull origin main

git checkout {version}

Update your .tfvars with any new variables

cd terraform/aws-ecs

terraform plan

terraform apply


---

## Major Features

### {Feature Name}

{Description of the feature -- what it does, why it matters, key capabilities as bullet points.}

[PR #{number}](https://github.com/agentic-community/mcp-gateway-registry/pull/{number})

{Repeat for each major feature.}

---

## What's New

{Group changes by category using subsections. Use bullet points with PR/commit references.}

### {Category Name}
- {Change description} (#{pr_number})
- {Change description} (#{pr_number})

{Common categories: Deployment, Helm Chart Improvements, Security Fixes,
Authentication, Infrastructure, Frontend Improvements, Documentation.
Only include categories that have changes.}

---

## Bug Fixes

- {Bug fix description} (#{pr_number})
- {Bug fix description} (#{pr_number})

---

## Closed Issues

| Issue | Title | Closed By |
|-------|-------|-----------|
| #{issue_number} | {issue_title} | {PR #{pr_number} or "manual"} |

{List all issues closed in the release window, sorted by issue number
descending. "Closed By" is the PR that closed the issue (via
`closingIssuesReferences`) or "manual" for issues closed without a PR
reference. If no issues were closed in this window, write:
"No issues were closed in this release window."}

---

## Pull Requests Included

| PR | Title |
|----|-------|
| #{number} | {title} |

{List ALL merged PRs between base and HEAD, sorted by PR number descending.}

---

## Security Dependency Updates

| Package | Previous | Updated | Scope |
|---------|----------|---------|-------|
| {package} | {old_version} | {new_version} | {scope} |

{Only include this section if there are dependency version bumps.}

---

## Contributors

Thank you to all contributors for this release:

- **{Full Name}** ([@{github_username}](https://github.com/{github_username}))

{List all contributors from the UNION of (a) direct authors on main and
(b) per-PR commit authors via `gh pr view --json commits` (Step 4 #10).
Resolve every GitHub username from a real PR -- via `.author.login` if they
opened a PR, or via `.commits[].authors[].login` if they were a co-author
only. Never synthesize usernames from display names. Sort by commit count
descending.}

---

## Support

- [GitHub Issues](https://github.com/agentic-community/mcp-gateway-registry/issues)
- [GitHub Discussions](https://github.com/agentic-community/mcp-gateway-registry/discussions)
- [Documentation](https://github.com/agentic-community/mcp-gateway-registry/tree/main/docs)

---

**Full Changelog:** [{base_version}...{version}](https://github.com/agentic-community/mcp-gateway-registry/compare/{base_version}...{version})

Step 6: Present Draft for User Review

After writing the release notes file:

  1. Tell the user the file has been created at docs/release-notes/{version}.md
  2. Present a brief summary:
  1. Ask the user to review the file and confirm it looks good, or request changes

Step 7: Commit, Tag, and Push

Once the user confirms the release notes are ready:

  1. No navigation file needs editing. There is no mkdocs.yml at the repo root; the only

one in the tree is under .scratchpad/, which is gitignored and unrelated. The published

site is built by scripts/build_landing_page.py (see .github/workflows/docs.yml), driven

by README.md and landing/, so a new docs/release-notes/{version}.md is picked up with

no nav change. Do NOT add mkdocs.yml to the release commit: it does not exist and git add

will fail.

  1. Add a highlight entry and rotate the README's "What's New" (regrowth prevention). The

README's ## What's New section holds exactly the 5 most-recent highlights; the full

history lives in docs/overview/feature-release-highlights.md. On a release with a notable

user-facing feature:

docs/overview/feature-release-highlights.md, just under its intro, matching the existing

bullet format.

in README.md, then delete the now-sixth bullet so exactly five remain (the dropped one

already lives in the archive, so this is a delete, not a re-copy). Keep the

"Older highlights → Feature & Release Highlights" line in place.

never let What's New exceed 5 bullets, and never touch any other part of the README**. Those

require their own dedicated PR. The README has a CI line-budget (350 lines) that will fail the

build otherwise. A patch release with no user-facing feature skips this step entirely.

  1. Open a PR; do not commit to main. AGENTS.md requires branching first, and a direct

push to main bypasses the ~26 CI checks that gate everything else, including the README

line budget and the prose linter. Those are exactly the checks a release commit should face.

```bash

git checkout -b release/{version}

git add docs/release-notes/{version}.md docs/overview/feature-release-highlights.md README.md

git commit -m "docs: add {version} release notes"

git push -u origin release/{version}

gh pr create --base main --title "docs: add {version} release notes" --body-file <(...)

```

Wait for CI to pass, then merge. This repo is rebase-and-merge only, so a branch carrying

a merge commit cannot be merged; rebase and force-push instead.

  1. Tag the merged notes commit and push the tag. The image-tag bump PR does not exist

yet: helm-chart-update.yml runs on workflow_run of "Release Docker Images", which

only the tag push starts. So the order is tag, images, bump PR, merge, move the tag.

```bash

git checkout main && git pull --ff-only origin main

git tag {version} # lightweight: no -a, no -m

git cat-file -t {version} # must print "commit"

git push origin {version}

```

Create a LIGHTWEIGHT tag. Do not pass -m or -a: that makes an annotated tag object,

which every release tag in this repo is not. Pushing the tag triggers

release-images.yml ("Release Docker Images"), which builds the auth-server, registry

and mcpgw images for linux/amd64 and linux/arm64 and pushes them to ECR Public. Watch it

and stop if it fails:

```bash

gh run list --workflow release-images.yml --limit 1 --json databaseId --jq '.[0].databaseId'

gh run watch <run-id> --exit-status

```

  1. Merge the image-tag bump PR. When the image build succeeds, helm-chart-update.yml

opens chore: update image tags to {version} on the branch release-update-{version}.

It rewrites every charts/*/values.yaml image tag and the image defaults in

terraform/aws-ecs/variables.tf and terraform/aws-ecs/modules/mcp-gateway/variables.tf

from the previous version to this one.

```bash

gh pr list --state open --json number,title,headRefName \

--jq '.[] | select(.headRefName == "release-update-{version}") | "#\(.number) \(.title)"'

gh pr diff <pr-number> # expect only previous-version -> {version} lines

gh pr checks <pr-number> --watch

gh pr merge <pr-number> --rebase

```

This also changes what you write in Step 5. The git diff {base_tag}..HEAD -- charts/

check runs before the bump PR exists, so it can report zero chart changes and tempt you

to write "you do not need to rebuild chart dependencies". That is wrong on any release

where the bump PR lands, because it rewrites five chart values files. The Helm upgrade

instructions MUST include helm dependency build and helm dependency update.

  1. Move the tag onto the bump commit, and verify it moved. Until it does, the tag

points at a commit whose charts and Terraform reference the PREVIOUS release's images,

and an operator who runs git checkout {version} then helm upgrade or

terraform apply installs the previous release (this happened on 1.32.1).

Merging the bump PR triggers helm-release-retag.yml, which is meant to move the tag.

Do not trust it: it skipped silently through 1.32.1 (fixed in #1857), and on 1.34.0 it

moved the tag on its runner but failed to push (could not read Username). Check where

the tag is, and move it yourself if it is not on the bump commit:

```bash

git fetch --tags --force origin

git checkout main && git pull --ff-only origin main # HEAD is the bump commit

git rev-parse --short {version}^{commit} # must equal HEAD

# If it does not, move it (lightweight again)

git tag -d {version}

git push origin :refs/tags/{version}

git tag {version} && git push origin {version}

```

Moving the tag starts a second "Release Docker Images" run on the bump commit. That is

expected (1.33.0 and 1.34.0 both did it); wait for it to succeed. The bump workflow runs

again afterwards and opens no new PR, because the references are already current.

  1. Verify:

```bash

git tag -l {version} --format="%(refname:short) -> %(objectname:short) (%(objecttype))"

# The tag must carry THIS version's image references, not the previous one's

git show {version}:charts/registry/values.yaml | grep -m1 'tag:'

git show {version}:terraform/aws-ecs/variables.tf | grep -m1 'registry:'

# The images must exist for both architectures

for img in registry auth-server mcpgw; do

docker manifest inspect public.ecr.aws/p3v1o3c6/$img:{version} >/dev/null && echo "$img ok"

done

```

  1. Publish the GitHub release page. No workflow creates it. Use the release notes file

as the body and {version} - {Short Title} as the title, where the short title is the

notes file's H1 after "Release {version} - ". Run it only after the tag is on the bump

commit, so the release points at the final tag:

```bash

gh release create {version} --verify-tag \

--title "{version} - {Short Title}" \

--notes-file docs/release-notes/{version}.md

gh release view {version} --json name,publishedAt,tagName

```

Example from 1.34.0:

```bash

gh release create 1.34.0 --verify-tag \

--title "1.34.0 - LiteLLM Removal, Entra Group Recovery, Embeddings Hardening, and a Trust-Store Update" \

--notes-file docs/release-notes/1.34.0.md

```

This publishes the release and marks it Latest, so confirm with the user before running

it unless they have already asked for it.

  1. Tell the user the tag is on the bump commit, the images are published, and the release

page is live, with links.

Important Rules

the tag push builds the images, so tag first, merge the release-update-{version} PR,

then make sure the tag moved onto it (Step 7.6). Do not trust helm-release-retag.yml

to move it: it skipped silently through 1.32.1 and failed to push on 1.34.0. A tag left on

the notes commit deploys the PREVIOUS release's images from charts and Terraform, which

is what went wrong on 1.32.1. Because the bump PR changes files under charts/, the Helm

upgrade instructions always need helm dependency build and helm dependency update.

automates it.

only, so there are no Merge pull request commits and no (#NNNN) suffixes.

Both standard idioms return an EMPTY list rather than an error, which reads

like "no PRs in this release" and is how a whole release nearly went out

undercounted. Enumerate with gh pr list --state merged filtered on

mergedAt, and verify any individual PR with

git merge-base --is-ancestor <commit> <base_tag>.

as the base window. They are not the same and the tag commit can be the later

of the two (1.31.0: tag commit 2026-09-24T00:34:45Z, release published

2026-09-23T22:34:13Z), so using the tag commit alone drops PRs that belong

in the new release.

list is the source of truth, not the v1.0.x` tags in the local repo, which

are from the older scheme and look like the latest when sorted naively. A

request to "release 1.31.0" may be a request for the version after it.

Example Usage

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.