Repository navigation
ci: publish the MCP registry entry on release tags - #480
Merged
Merged
Conversation
Our listing on registry.modelcontextprotocol.io has to be re-published to change, so the version there drifts from the product the moment anyone forgets. This runs on the same v* tags the Docker image build uses and takes the version FROM the tag, so a release cannot ship a stale entry — nothing is committed back, the in-repo value stays the fallback for a manual publish. Authenticates with OIDC rather than a token: it proves this repository rather than asking which orgs a human belongs to, which also avoids the interactive-login path that refuses org namespaces outright (modelcontextprotocol/registry#1468, #1527, #1537, #1551 — all open). `mcp-publisher validate` gates the publish so a schema-invalid entry fails here instead of upstream. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #479, which added
server.json. The entry is now live on the registry (io.github.usertour/mcp, active, v0.9.4) — this automates keeping it current.Why
A registry listing only changes when it is re-published, so its version drifts from the product the moment anyone forgets. This runs on the same
v*tags the Docker image build already uses and takes the version from the tag, so a release cannot ship a stale entry. Nothing is committed back; the in-repoversionstays the fallback for a manual publish.Why OIDC and not a token
Publishing under the
io.github.usertour/*namespace viamcp-publisher login githubreturns 403 even with org-owner role and public membership — a known upstream bug with four open issues (modelcontextprotocol/registry #1468, #1527, #1537, #1551), and the 403's own "make your membership public" advice is itself filed as misleading (#1483).login github-oidcverifies this repository's identity instead of asking which orgs a human belongs to, so it never reaches that code path — the workaround confirmed in #1537 and the approach the registry docs recommend anyway. It also means no personal access token to mint, store, or rotate.mcp-publisher validateruns before publishing, so a schema-invalid entry fails here rather than upstream.Verified
permissions(id-token: write) as intendedserver.json: tagv0.9.5yields"version": "0.9.5"with every other field intactid-tokenis never granted by default and is requested explicitly here, so the repo'sreaddefault workflow permission doesn't block it — no repo setting to flipFirst real run will be the next
v*tag;workflow_dispatchis enabled for a manual test.🤖 Generated with Claude Code