Releasing
Releases are driven by version tags. Pushing a tag like v1.2.3 triggers the Release workflow. That workflow creates a draft GitHub release, builds the Docker image for linux/amd64 and linux/arm64 and pushes it to ghcr.io/mattoddie/crunch-mcp, then builds the Claude Desktop extension bundles (.mcpb) and plain binary archives, attaches them to the draft with a SHA256SUMS file and publishes the release. For stable releases it finally publishes the new version to the official MCP Registry. Nothing is published by merging to main alone.
Versioning
Section titled “Versioning”The project follows Semantic Versioning. Its public API is the set of tool names, their arguments, prompts and the environment variables:
| Change | Bump | Examples |
|---|---|---|
| Breaking | major (2.0.0) |
Renaming or removing a tool, argument, prompt or variable; moving a tool to a less restrictive gate; changing a default so that more is allowed |
| New features | minor (1.3.0) |
New tools, toolsets, arguments or prompts |
| Fixes | patch (1.2.4) |
Bug fixes, compatibility fixes, docs, dependency updates |
While the version is 0.x, minor bumps may contain breaking changes. Call them out in the release notes.
The version comes from the tag. There’s no version file in the repository: builds default to 0.0.0-dev, and release builds stamp the tag’s version into internal/tools.Version with -ldflags. The server reports it to MCP clients, prints it on its first log line, and crunch-mcp version prints it.
Release checklist
Section titled “Release checklist”-
Check
mainis green on CI. -
Update the changelog. In a small PR titled
chore(release): v1.2.0, move the Unreleased entries inCHANGELOG.mdunder a new heading,## [1.2.0] - YYYY-MM-DD, and update the comparison links at the bottom. Fill in the final tool and prompt counts from the top ofdocs/tools.md. Merge it. -
Push the tag. Tag the changelog commit on
main:Terminal window git switch main && git pullgit tag -s v1.2.0 -m v1.2.0git push origin v1.2.0 -
Watch the workflow. Open Actions → Release. It takes a few minutes. It creates a draft release with notes generated from the merged PRs, adds a Container image section with the pull command, digest and tags, attaches the six
.mcpbbundles and the binary archives and adds Claude Desktop and Binaries sections listing them, then publishes the release. -
Edit the release notes if needed. The notes and title of a published release can still be edited; its assets and tag can’t.
-
Check the image:
docker pull ghcr.io/mattoddie/crunch-mcp:1.2.0, thendocker run --rm ghcr.io/mattoddie/crunch-mcp:1.2.0 version. -
Check a bundle: download the one for your computer from the release and install it in Claude Desktop (Settings → Extensions), or unzip it and check the manifest with
npx @anthropic-ai/[email protected] validate manifest.json. -
Check the registry (stable releases): the Publish to the MCP Registry job is green, and
curl -s https://registry.modelcontextprotocol.io/v0/servers/io.github.mattoddie%2Fcrunch-mcp/versions/latest | jq .server.versionprints the new version.
Release notes are generated from merged PR titles and grouped by label. The groups are set in .github/release.yml. Label PRs breaking, enhancement, new-tool, bug, compatibility, documentation or dependencies to sort them, or skip-changelog to leave a PR out.
Homebrew. The tap checks for new stable releases every hour. It verifies the archives’ checksums and build provenance, tests the formula on macOS and Linux, then publishes it. Nothing needs doing here. To update it straight away, run the tap’s Update formulas workflow. Pre-releases aren’t published to the tap.
Pre-releases
Section titled “Pre-releases”To test a release candidate, push a pre-release tag. The workflow marks a release as a pre-release when its tag has a suffix:
git tag -s v1.3.0-rc.1 -m v1.3.0-rc.1git push origin v1.3.0-rc.1Pre-releases are published only under their exact version (ghcr.io/mattoddie/crunch-mcp:1.3.0-rc.1). They never move latest, 1 or 1.3. They aren’t published to the MCP Registry either.
What the workflow does
Section titled “What the workflow does”| Step | Detail |
|---|---|
| Validate the tag | Must match vMAJOR.MINOR.PATCH with an optional -prerelease suffix and point to a commit on main, otherwise the workflow fails before building. |
| Draft release | Creates a draft release for the tag with generated notes, marked as a pre-release if the tag has a suffix. |
| Build | docker buildx for linux/amd64 and linux/arm64, from scratch with no build cache. The Go build cross-compiles, so no emulation is needed for the binary. The test suite runs inside the build, so failing tests mean no image. |
| Tag | X.Y.Z always. For stable releases also X.Y, X (from 1.0.0 on) and latest. |
| Push | To ghcr.io/mattoddie/crunch-mcp using the workflow’s GITHUB_TOKEN. No personal tokens are needed. |
| Supply chain | Attaches an SBOM and SLSA provenance to the image, and pushes a signed build provenance attestation (gh attestation verify). |
| Release notes | Appends the pull command, digest and tags. |
| MCP Bundles and binaries | After the image, make dist VERSION=X.Y.Z builds a bundle per platform (macOS, Windows and Linux, each for amd64 and arm64), the same binaries as crunch-mcp-X.Y.Z-<os>-<arch>.tar.gz (.zip for Windows) with the licence, and SHA256SUMS. It checks the Linux binary reports the version and the checksums match, validates each manifest with @anthropic-ai/mcpb, attests the bundles and archives, uploads them to the draft release and appends Claude Desktop and Binaries sections to the release notes. Re-running it before publishing replaces the assets and doesn’t add the section twice. |
| Publish | Publishes the draft once the image and the bundles are in place. Published releases are immutable. |
| MCP Registry | Stable releases only, after the release is published. Stamps the version, image tag and the published bundles’ SHA-256 hashes into a copy of server.json, then publishes it with a pinned, checksum-verified mcp-publisher, logging in with GitHub OIDC. See The MCP Registry. |
The MCP Registry
Section titled “The MCP Registry”server.json describes crunch-mcp to the official MCP Registry as io.github.mattoddie/crunch-mcp. It offers two kinds of package:
- The Docker image (
ghcr.io/mattoddie/crunch-mcp:X.Y.Z) over stdio. The image serves HTTP by default, so the entry fixesMCP_TRANSPORT=stdio, mounts thecrunch-datavolume for the token file, and lists the same settings as the extension bundle. - The six extension bundles, one per platform, with their SHA-256 hashes. The registry has no field for a package’s operating system or architecture, so the platform is in each bundle’s file name. The image comes first, so a client that just takes the first package gets the one that runs everywhere.
The committed file keeps the placeholder version 0.0.0-dev, like the bundle manifest, because there’s no version file in the repository. The release job stamps the real version, image tag, bundle URLs and hashes into a copy with make server-json VERSION=X.Y.Z, which hashes the bundles in dist/. CI keeps the file honest on every pull request:
make docs-checkrunsgo run ./cmd/mcpb server-json -check. It fails if the image’s environment variables drift from the bundle manifest’s (names, fixed values, required, secret, boolean and default), if the description is over 100 characters, or if the Dockerfile loses theio.modelcontextprotocol.server.namelabel the registry uses to check that the image belongs to the server.- The MCP Bundles job stamps a copy for the CI bundles and runs
mcp-publisher validateon both files. The Docker image job checks the label on the built image.
When you add a setting, add it to mcpb/manifest.json and to the image’s environmentVariables in server.json together. When you add a bundle platform, add its package to server.json too: stamping fails if a bundle in dist/ isn’t listed, or a listed one is missing.
The registry job
Section titled “The registry job”The job runs for stable releases only, after the release is published. It downloads the bundles from the release, so the hashes are of the files people actually download, stamps server.json, installs mcp-publisher (pinned in the Makefile and checked against the release’s SHA-256), logs in with GitHub OIDC and publishes. Only this job gets id-token: write for the registry login. No secrets are needed: a workflow in a mattoddie repository may publish under io.github.mattoddie/.
A published version can’t be changed or published again. So:
- Re-running the job is safe. It first asks the registry whether this version is already there, and skips the publish if it is. If it failed before publishing (say the registry was down), re-run it from Actions → Release → Re-run failed jobs.
- Don’t rebuild the bundles after the version is in the registry. The registry entry pins their hashes, and clients refuse a bundle that doesn’t match.
- To fix a wrong entry, publish the next patch release. To withdraw a bad version, mark it with
mcp-publisher status --status deprecated(ordeleted) and a--message, after logging in as below.
To update mcp-publisher, change MCP_PUBLISHER_VERSION and the MCP_PUBLISHER_SHA256_* lines in the Makefile, taking the hashes from registry_<version>_checksums.txt on its release page.
Publishing by hand
Section titled “Publishing by hand”If the job can’t publish, an owner of the mattoddie GitHub organisation can do the same from a checkout of the release tag:
git checkout v1.2.0rm -rf dist && gh release download v1.2.0 --pattern '*.mcpb' --dir distmake server-json VERSION=1.2.0 mcp-publisher # writes dist/server.json; the checksum check needs Linux or macOS.build/mcp-publisher/mcp-publisher validate dist/server.json.build/mcp-publisher/mcp-publisher login github # opens a device login in the browser.build/mcp-publisher/mcp-publisher publish dist/server.json.build/mcp-publisher/mcp-publisher logoutIf something goes wrong
Section titled “If something goes wrong”- The workflow failed for a transient reason: re-run it from the Actions tab. It’s safe to re-run. It finds the draft it created, and pushes the same image tags again. If the release was already published, its bundles can’t change, so a re-run rebuilds the image only.
- The MCP Registry job failed: see The registry job for re-running it, and Publishing by hand if that doesn’t work.
- The release was wrong (bad code or wrong tag): a published tag can’t be moved or reused. Fix the problem on
mainand publish the next patch version. You can delete the bad GitHub release and mark it as such in the changelog, but leave the image tag alone. - The workflow failed before publishing and the tag itself is wrong: delete the draft and the tag (
gh release delete v1.2.0 --cleanup-tag), then tag again. - Wrong tag format (e.g.
1.2.0without thev): the workflow doesn’t run for it. Delete the tag (git push origin :refs/tags/1.2.0) and push the right one.
Repository setup
Section titled “Repository setup”Rulesets
Section titled “Rulesets”Two rulesets protect the repository. You can view and edit them under Settings → Rules → Rulesets, and that’s where to create them if you’re setting up a fresh copy.
Protect main (the default branch):
- Changes land only through pull requests. Nobody can push directly, force-push or delete the branch, and there are no bypasses.
- The CI checks must pass (tests, lint, the generated-docs check, the Docker image build and dependency review). The branch doesn’t need to be up to date with
main. - CodeQL must not find new high or critical security alerts, or error-level alerts.
- Review threads must be resolved before merging. The only merge method is squash.
- No approving review is required yet, because GitHub doesn’t let authors approve their own pull requests and the project has a single maintainer. Raise this when there are more maintainers.
Protect release tags (v*):
- Only repository admins can create, move or delete version tags, so only maintainers can publish releases. Published versions can’t be re-pointed.
Immutable releases
Section titled “Immutable releases”Immutable releases are on (Settings → General → Releases). Once a release is published, its assets can’t be added, changed or deleted, and its tag can’t be moved or reused, even by admins. GitHub also attaches a release attestation (gh release verify). That’s why the workflow attaches everything to a draft and publishes last.
Container package visibility
Section titled “Container package visibility”New GHCR packages normally start private, and GitHub doesn’t offer an API to change this. A package linked to a public repository usually becomes public automatically. If it starts private, open the package page (Your profile → Packages → crunch-mcp → Package settings) and choose Change visibility → Public under Danger Zone.
The package links to the repository automatically through the image’s org.opencontainers.image.source label, which makes it show in the repository sidebar.