Cut a new kotlin-lib-mcp release — bump the version in both tag-guarded files consistently, update the changelog, run the pre-flight checks, and (on request) tag. Use when preparing a release or when a release tag failed the version-match guard.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Release?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/aoreshkov-release-kotlin-lib-mcp)
---
name: release
description: Cut a new kotlin-lib-mcp release — bump the version in both tag-guarded files consistently, update the changelog, run the pre-flight checks, and (on request) tag. Use when preparing a release or when a release tag failed the version-match guard.
disable-model-invocation: true
argument-hint: "[new version, e.g. 0.3.0]"
---
# Cut a release
The release workflow (`.github/workflows/release.yml`) is triggered by a `v*` tag. Its first
job, `verify`, is the gate: a **hard version-match guard** (the tag must match the version in
both source-of-truth files), then `./gradlew build`, then a real fetch-and-analyze session on
the release distribution through the plugin launcher. Both publishing jobs, `github-release`
(the zip) and `docker` (GHCR), have `needs: [verify]`, and `publish-mcp-registry` needs both, so
a failure there publishes nothing. `docker` also runs `.github/scripts/image-smoke.sh` on a
locally loaded image before it pushes any tag. This skill makes the two files agree *before*
the tag is pushed.
> The advertised MCP `Implementation` version is **not** a third file to bump: it is
> build-derived from `gradle.properties` (`server/build.gradle.kts` bakes `project.version`
> into a resource read by `ServerVersion`) and asserted by `ServerVersionTest`, so it can
> never drift and needs no separate guard.
## 1. Determine the new version
Use `$ARGUMENTS` if given. Otherwise read the current version from `gradle.properties`
(`version=`), decide the bump with the user (semver), and confirm. Call the new value
`<VERSION>` (no `v` prefix inside files; the git tag is `v<VERSION>`).
## 2. Bump the version in BOTH guarded files
The tag guard checks these exact patterns (keep the formatting identical):
1. `gradle.properties` — the line `version=<VERSION>` (guard: `^version=<VERSION>$`).
This is the single source of truth; the runtime MCP version is derived from it (see the
note above), so there is no third file to bump.
2. `server.json` — the top-level `"version": "<VERSION>"` (guard: `jq .version == <VERSION>`).
Note: the workflow later also rewrites `server.json` `.version` and `.packages[0].identifier`
from the tag, but the guard still requires the committed value to match, so set it here.
Miss either and `verify` fails at the guard step, before anything is published. Grep to confirm both:
```
grep -n "version=" gradle.properties
grep -n '"version"' server.json
```
**The plugin needs no repin.** Its launcher (`plugin/launcher/KotlinLibMcpLauncher.java`) resolves
`latest` from the GitHub releases API once a day, so installed plugins pick the new server up on
their own. Touch the plugin only when the release changes what the launcher relies on — the zip's
`kotlin-lib-mcp-server-<version>/` root with `lib/` and `bin/server`, the main class
`app.oreshkov.kotlinlibmcp.server.MainKt`, or the Java feature release (`SERVER_JAVA`) — and then
bump `plugin/.claude-plugin/plugin.json` `.version` too (its own semver, independent of the
server's), or installed plugins never receive the change.
## 3. Update the changelog
Add a `<VERSION>` section to `CHANGELOG.md` (follow the existing format): summarize
user-facing changes since the last release. Use `git log <last-tag>..HEAD` to gather them. Mark a
breaking change inline with `**Breaking:**` inside its own type, and lead a security entry with its
CVE id when it has one. This section becomes the top of the GitHub release page, and `verify`
fails if it is missing.
## 4. Pre-flight checks (catch the known release-pipeline gotchas)
- **MCP registry description cap:** the server description in `server.json` must be **≤ 100
characters** or the registry publish rejects it. Verify:
`jq -r '.description | length' server.json` → must be ≤ 100.
- **`gradlew` executable bit:** the wrapper must stay executable in git or the CI build fails
on a fresh checkout. Verify: `git ls-files -s gradlew` shows mode `100755`.
- **No private paths leak:** confirm nothing git-ignored is referenced from released files.
- **Build is green:** `./gradlew build` passes, and `./gradlew :server:installDist` produces
the distribution the release zip is built from.
## 5. Simulate the tag guard locally
Before tagging, run the guard's own logic so you don't discover a mismatch in CI:
```
VERSION="<VERSION>"
grep -q "^version=${VERSION}$" gradle.properties && \
jq -e --arg v "$VERSION" '.version == $v' server.json >/dev/null && \
bash .github/scripts/changelog-section.sh "$VERSION" >/dev/null && \
echo "guard OK" || echo "guard WOULD FAIL"
```
## 6. Commit and (on explicit request) tag
Commit the version bump + changelog. **Only if the user explicitly asks**, create and push the
`v<VERSION>` tag — pushing the tag triggers `verify` and then the live release, GHCR push, and
MCP registry publish. Otherwise stop after the commit and report that the tag is ready to push.
Use an **annotated** tag so the release carries a message and a tagger date
(`git tag -a v<VERSION> -m "Release v<VERSION>"`), not a lightweight tag. Never re-point or
force-move a tag that has already been published.
## 7. Report
Summarize: old → new version, the two files updated, changelog entry, pre-flight results
(description length, gradlew mode, build status, local guard simulation), and whether a tag
was pushed or is pending.