Skip to content

feat: publish the MCP server to the official MCP Registry on each release - #24

Merged
srijansk merged 2 commits into
mainfrom
feat/mcp-registry
Oct 23, 2026
Merged

srijansk merged 2 commits into
mainfrom
feat/mcp-registry

Conversation

@srijansk

Copy link
Copy Markdown
Owner

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 with mcp-publisher validate): PyPI package crewlore, runtimeHint: uvx, runtimeArguments: --with crewlore[serve], packageArguments: serve --repo <path>; description under the registry's 100-character cap; repository id; websiteUrl to docs/mcp.md.
  • pyproject.toml: a crewlore console script as an alias of lore, because registry clients compose uvx <package> and the package only shipped lore. crewlore --version prints the same as lore --version. Verified from the built wheel: uvx --with 'crewlore[serve]' --from <wheel> crewlore serve --repo <repo> answers initialize and 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 a v* tag push (release.yml creates releases with GITHUB_TOKEN, whose events start no runs) and on workflow_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 grants io.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).
  • docs/mcp.md section and a CHANGELOG bullet.

Review

Independent adversarial review: MERGE WITH FIXES; the fixes are in the last commit (the publisher binary was installed from releases/latest unverified, 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

srijansk and others added 2 commits October 22, 2026 20:58
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>
@srijansk
srijansk merged commit ed2f8ee into main Oct 23, 2026
5 checks passed
@srijansk
srijansk deleted the feat/mcp-registry branch October 23, 2026 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant