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/bluelink-mcp, attaches the Claude Desktop extension bundle (bluelink-mcp-X.Y.Z.mcpb), the wheel and a hash-locked requirements file to the draft, then publishes the release. Stable releases are then published to the 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 and the environment variables:
| Change | Bump | Examples |
|---|---|---|
| Breaking | major (2.0.0) |
Renaming or removing a tool, argument or variable; moving a tool to a less restrictive access level; changing a default so that more is allowed |
| New features | minor (1.3.0) |
New tools or arguments |
| 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. pyproject.toml stays at 0.0.0.dev0 in the repository, and release builds stamp the tag’s version into the image. The server reports it to MCP clients and prints it on its first log line.
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 count 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 bundle, wheel and requirements file and adds Claude Desktop and Without Docker sections, 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/bluelink-mcp:1.2.0, and that the release has the.mcpbbundle attached. -
Check the registry entry:
curl -s 'https://registry.modelcontextprotocol.io/v0/servers?search=io.github.mattoddie/bluelink-mcp' | jq '.servers[].server.version'lists 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.
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/bluelink-mcp:1.3.0-rc.1). They never move latest, 1 or 1.3, and they aren’t published to the MCP Registry.
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 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/bluelink-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 Bundle and Python package | After the image, builds bluelink-mcp-X.Y.Z.mcpb with scripts/mcpb.py pack, the wheel (uv build) and bluelink-mcp-X.Y.Z-requirements.txt (uv export, every dependency pinned with its hash), and writes SHA256SUMS. It installs the wheel into a fresh virtualenv from the requirements file and checks bluelink-mcp version, validates the bundle’s manifest with @anthropic-ai/mcpb, attests all three files, uploads them to the draft release and adds Claude Desktop and Without Docker sections to the notes. The Homebrew tap installs from the wheel and requirements file. |
| Publish | Publishes the draft once the image and the bundle are in place. Published releases are immutable. |
| MCP Registry | Stable releases only, after the release is published. Stamps the version, image tag and the bundle’s SHA-256 into server.json, validates it and publishes it with mcp-publisher. See MCP Registry. |
MCP Registry
Section titled “MCP Registry”server.json describes bluelink-mcp for the MCP Registry as io.github.mattoddie/bluelink-mcp. It lists two packages:
- The Docker image,
ghcr.io/mattoddie/bluelink-mcp:X.Y.Z, run over stdio:MCP_TRANSPORTis fixed tostdio, and abluelink-datavolume keeps the login token cache. The registry checks that the image carries theio.modelcontextprotocol.server.namelabel from theDockerfile. - The Claude Desktop bundle,
bluelink-mcp-X.Y.Z.mcpbfrom the release, with its SHA-256. The bundle is platform-independent, so there is one.
The environment variables mirror the bundle’s settings (user_config in mcpb/manifest.json). CI runs uv run python scripts/registry.py check, which fails if they drift apart, and validates server.json with mcp-publisher validate. Change the two files together.
In the repository, server.json holds the 0.0.0-dev placeholder, like the bundle manifest. The registry job in the release workflow:
- Installs
mcp-publisherat a pinned version and checks its SHA-256. To upgrade it, changeMCP_PUBLISHER_VERSIONandMCP_PUBLISHER_SHA256in bothrelease.ymlandci.yml, taking the hash ofmcp-publisher_linux_amd64.tar.gzfrom the registry release’sregistry_<version>_checksums.txt. - Downloads the release’s bundle, hashes it and runs
python3 scripts/registry.py stamp X.Y.Z <sha256>. - Logs in with GitHub OIDC (
mcp-publisher login github-oidc, which needsid-token: writeon that job only, and no secrets) and runsmcp-publisher publish.
A version can be published to the registry only once, and it can’t be changed afterwards.
Re-running the registry step
Section titled “Re-running the registry step”If only the registry job failed, open the run under Actions → Release and choose Re-run failed jobs. The image and bundle aren’t rebuilt. If the version already reached the registry, the job notices and skips the publish.
Publishing by hand
Section titled “Publishing by hand”If the job can’t be fixed in time, publish from a checkout of the release tag. You need to be an owner of the mattoddie GitHub organisation: the registry grants the io.github.mattoddie namespace only to owners.
git checkout v1.2.0version=1.2.0 dir=$(mktemp -d)gh release download "v$version" --pattern "bluelink-mcp-$version.mcpb" --dir "$dir"python3 scripts/registry.py stamp "$version" "$(sha256sum "$dir/bluelink-mcp-$version.mcpb" | cut -d' ' -f1)"mcp-publisher validate server.jsonmcp-publisher login github # opens a browser to sign in to GitHubmcp-publisher publish server.jsongit checkout server.jsonInstall the same mcp-publisher version the workflow pins, from the registry releases, and check its hash against the release’s checksums file.
If 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 bundle can’t change, so a re-run rebuilds the image only.
- 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 Test (Python 3.12), Test (Python 3.13), Test (Python 3.14), Docker image and Dependency review must pass. 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 → bluelink-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.