Skip to content

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/emby-mcp. It then builds the MCP Bundles (.mcpb) for Claude Desktop and plain binary archives, and attaches them to the draft with a SHA256SUMS file. Then it publishes the release, and for stable releases publishes the new version to the official MCP Registry. Nothing is published by merging to main alone.

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 emby-mcp version prints it.

  1. Check main is green on CI.

  2. Update the changelog. In a small PR titled chore(release): v1.2.0, move the Unreleased entries in CHANGELOG.md under 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 of docs/tools.md. Merge it.

  3. Push the tag. Tag the changelog commit on main:

    Terminal window
    git switch main && git pull
    git tag -s v1.2.0 -m v1.2.0
    git push origin v1.2.0
  4. 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 bundles and binaries and adds Claude Desktop and Binaries sections listing them, then publishes the release. For a stable release, the Publish to the MCP Registry job then lists the version in the registry.

  5. Edit the release notes if needed. The notes and title of a published release can still be edited; its assets and tag can’t.

  6. Check the image: docker pull ghcr.io/mattoddie/emby-mcp:1.2.0, then docker run --rm ghcr.io/mattoddie/emby-mcp:1.2.0 version. If you can, install the bundle for your computer in Claude Desktop too. Check the registry entry too: curl -s "https://registry.modelcontextprotocol.io/v0/servers/io.github.mattoddie%2Femby-mcp/versions/latest" | jq .server.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.

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:

Terminal window
git tag -s v1.3.0-rc.1 -m v1.3.0-rc.1
git push origin v1.3.0-rc.1

Pre-releases are published only under their exact version (ghcr.io/mattoddie/emby-mcp:1.3.0-rc.1). They never move latest, 1 or 1.3. They aren’t published to the MCP Registry.

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/emby-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, runs make dist VERSION=X.Y.Z: one emby-mcp-X.Y.Z-<os>-<arch>.mcpb for each of darwin, windows and linux on amd64 and arm64, the same binaries as emby-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 the official @anthropic-ai/mcpb CLI (pinned in the workflow), attests the build provenance of the bundles and archives, uploads everything to the draft and lists it in the notes.
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, the image tag and the bundles’ SHA-256s into server.json, then publishes it with mcp-publisher, logging in with GitHub OIDC. See The MCP Registry.

An MCP Bundle is a zip file with a manifest.json, the icon, the licence and the server binary. The manifest lives in mcpb/manifest.json: edit its descriptions and settings by hand, while make docs regenerates its tools and prompts from the server (CI checks they’re current). cmd/mcpb stamps the version and platform into a copy and writes the zip.

There’s one bundle per OS and architecture because a manifest can only choose the command by OS, not by CPU. Try one locally with make mcpb, or build every release asset with make dist (they land in dist/).

The bundles aren’t signed. The macOS binaries carry the Go linker’s ad-hoc signature, which Apple silicon requires, but they aren’t signed with a Developer ID or notarised, so macOS may ask the user to allow them (see Claude Desktop). mcpb sign can add a signature to the bundle itself, but that needs a code-signing certificate and isn’t set up.

emby-mcp is listed in the official MCP Registry as io.github.mattoddie/emby-mcp. The entry is server.json at the root of the repository. It describes two kinds of package:

  • The Docker image, run in stdio mode: MCP_TRANSPORT is fixed to stdio, no volume is needed, and the variables a user sets match the Claude Desktop extension’s settings.
  • The six MCP Bundles, one for each OS and processor. The registry can’t say which platform a bundle is for, but each file name ends in <os>-<arch>.mcpb, so all six are listed.

The committed file carries the 0.0.0-dev placeholder version, like the bundle manifest, with placeholder SHA-256s. The release job fills in the real values, so there’s nothing to edit by hand for a release.

The registry proves the image belongs to us through its io.modelcontextprotocol.server.name label (set in the Dockerfile), and the io.github.mattoddie/ namespace through the workflow’s GitHub OIDC token. No secrets are needed.

Keeping it in step. make docs-check (run by CI) fails if server.json’s environment variables, defaults, and required and secret flags differ from the bundle manifest’s settings, so change both together. CI also checks server.json with mcp-publisher validate and checks the image’s label.

The mcp-publisher version is pinned, with its SHA-256, in both release.yml and ci.yml. To update it, take the new version and the mcp-publisher_linux_amd64.tar.gz line from the registry_<version>_checksums.txt file on its release page, and change both files together. If the registry moves to a new server.json schema, update $schema too, following the schema changelog.

If only the Publish to the MCP Registry job failed, open the run under Actions → Release and choose Re-run failed jobs. The image and the bundles are already published, so only this job runs again. A version can only be published once: if it’s already in the registry, the job says so and stops.

If the job can’t be made to work, publish from your own machine. You need to be an owner of the mattoddie GitHub organisation.

  1. Install mcp-publisher from its releases (check the SHA-256 against the release’s checksums file).

  2. Fill in server.json for the release, for example 1.2.0: set version to 1.2.0, the image tag to ghcr.io/mattoddie/emby-mcp:1.2.0, and each bundle’s URL and fileSha256:

    Terminal window
    gh release download v1.2.0 --pattern '*.mcpb' --dir /tmp/bundles
    sha256sum /tmp/bundles/*.mcpb

    The release workflow’s Stamp step does all of this with jq: you can run its commands as they are with TAG=v1.2.0, VERSION=1.2.0 and RUNNER_TEMP (an empty directory) set.

  3. Check, log in and publish:

    Terminal window
    mcp-publisher validate server.json
    mcp-publisher login github # opens a browser to authorise
    mcp-publisher publish server.json
  4. Don’t commit the stamped server.json: main keeps the placeholders.

  • 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. For the registry step, see Re-running the registry step.
  • The release was wrong (bad code or wrong tag): a published tag can’t be moved or reused. Fix the problem on main and 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.0 without the v): the workflow doesn’t run for it. Delete the tag (git push origin :refs/tags/1.2.0) and push the right one.

Two rulesets should protect the repository. Create them under Settings → Rules → Rulesets when setting up the repository (or a fresh copy), and edit them there.

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, govulncheck, 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 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.

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 → emby-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.