Repository navigation
feat: publish the MCP server to the official MCP Registry on each release - #24
Merged
Merged
Conversation
server.json describes `lore serve` as io.github.srijansk/crewlore against the 2025-12-11 server.json schema (mcp-publisher validate: valid): a PyPI stdio package run as `uvx --with 'crewlore[serve]' crewlore@<version> serve --repo <path>`, with --repo declared as a required filepath. registryBaseUrl is left out: the registry defaults it to https://pypi.org, and a client that forwards a set value to uvx as --index-url hands uv the project site, which breaks resolution. The registry checks PyPI ownership by fetching the exact version's description and looking for `mcp-name: io.github.srijansk/crewlore`, so README.md (the PyPI long description) ends with that marker in an HTML comment; the first version that can publish is the next release. pyproject.toml adds `crewlore` as a second console script for the same CLI: clients compose `uvx ... crewlore@<version> ...`, and uvx refuses a package that provides no executable of its own name (`lore` is the only one today). .github/workflows/mcp-registry.yml publishes on the same `v*` tag push as release.yml and on workflow_dispatch, logging in with GitHub OIDC (no stored secret; the registry grants io.github.<repository owner>/*). It checks the tag against server.json, validates, waits for PyPI to serve the version with the marker (release.yml's PyPI publish and GitHub release run in parallel), then publishes. An `on: release` trigger would never fire: release.yml creates the release with GITHUB_TOKEN, whose events start no workflow runs. tests/unit/test_mcp_registry.py keeps server.json, pyproject.toml, the console scripts and the README marker in agreement. docs/mcp.md gains a section on the listing; CHANGELOG gets an Unreleased entry. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <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.
What
Prepares crewlore's MCP server for the official MCP Registry as
io.github.srijansk/crewlore, published automatically on each release.server.json(schema 2025-12-11, validated withmcp-publisher validate): PyPI packagecrewlore,runtimeHint: uvx,runtimeArguments: --with crewlore[serve],packageArguments: serve --repo <path>; description under the registry's 100-character cap; repository id;websiteUrlto docs/mcp.md.pyproject.toml: acrewloreconsole script as an alias oflore, because registry clients composeuvx <package>and the package only shippedlore.crewlore --versionprints the same aslore --version. Verified from the built wheel:uvx --with 'crewlore[serve]' --from <wheel> crewlore serve --repo <repo>answersinitializeand lists the three tools.README.md: the ownership marker<!-- mcp-name: io.github.srijansk/crewlore -->as the last line; the registry validates PyPI ownership by reading the exact version's description, so the listing can only go live with the next release (0.5.3). The README also names the alias..github/workflows/mcp-registry.yml: on av*tag push (release.yml creates releases withGITHUB_TOKEN, whose events start no runs) and onworkflow_dispatch: tag == server.json version, publisher pinned to 1.8.1 and sha256-checked, validate, wait up to 20 minutes for PyPI to serve the version with the marker,login github-oidc(no stored secret; the registry grantsio.github.<owner>/*to the repo's OIDC identity), publish.tests/unit/test_mcp_registry.py: server.json ⇔ pyproject ⇔lore.__version__, both console scripts, the README marker (each verified to fail on drift).Review
Independent adversarial review: MERGE WITH FIXES; the fixes are in the last commit (the publisher binary was installed from
releases/latestunverified, now pinned and checksummed; docs no longer claim the listing in the present tense; the alias is named in the README). It confirmed the schema fields against live entries and the validator source, the marker rule (pypi.go,mcpname.go), the OIDC grant, and that the entry cannot work against 0.5.2 because the alias does not exist there yet.After merging
Release 0.5.3 (the version bump now also touches
server.json); the tag triggers release.yml (PyPI) and this workflow (registry).🤖 Generated with Claude Code