Skip to content

ci: publish to the MCP registry on release; fix state inspect after metamodel removal - #154

Merged
bartsdev merged 3 commits into
mainfrom
ci/publish-mcp-registry
Nov 30, 2026
Merged

bartsdev merged 3 commits into
mainfrom
ci/publish-mcp-registry

Conversation

@bartsdev

@bartsdev bartsdev commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Summary

The official MCP registry lists 0.5.0 as latest while npm has 0.8.0: publishing to the registry was a manual step that stopped happening. This publishes server.json from CI on every release tag.

push tag vX.Y.Z  (or PR touching server.json / package.json / manifest.json)
  validate
    versions agree: package.json = server.json (both) = manifest.json = tag
    install mcp-publisher v1.8.15, verify Sigstore bundle with cosign
    mcp-publisher validate
  publish                      (tags, or manual run on main; never on PRs)
    registry already lists this version? → skip
    wait up to 40 min for the version on npm, check its mcpName
    mcp-publisher login github-oidc   (id-token: write on this job only)
    mcp-publisher publish
 .github/
+├── scripts/install-mcp-publisher.sh   # pinned download + cosign verify
 └── workflows/
+    └── mcp-registry.yml
 src/core/
+└── release-metadata.test.ts           # one version across the 3 files
 AGENTS.md                              # "Releasing" section; MCP_PUBLISHER_VERSION as a hand-managed pin

Follows this repo's rules: actions pinned to SHAs, permissions: contents: read at the top, persist-credentials: false, timeout-minutes and concurrency on every job, ubuntu-26.04 runners. mcp-publisher v1.8.15 is older than the 7-day cooldown; Dependabot can't bump a release download, so it's listed as a hand-managed pin.

After merge, run the workflow once by hand on main to publish 0.8.0 (it's on npm and missing from the registry).

Also: fix localstack-state-management inspect

LocalStack removed GET /_localstack/pods/state/metamodel (localstack-pro#11181), so inspect returned HTTP 404 and failed mcp-tool-tests on this PR and on main. It now reads GET /_localstack/resources, the listing LocalStack names as the replacement and lstk's status uses.

 inspect
-  GET /_localstack/pods/state/metamodel        → JSON dump, filtered by service in the server
+  GET /_localstack/resources?services=s3,…     → NDJSON, one line per resource type
+  parseResourcesNdjson → table: Type | ID | Region | Account   (cells escaped)

The endpoint isn't in the OpenAPI spec, so it's added to "Gaps in LocalStack" under the rule 4 exception, with its response described in state-inspect.logic.ts. Output changes from a state dump to a resource list; export still gives the full state.

Evidence

  • Before: GET registry.modelcontextprotocol.io/v0/servers?search=io.github.localstack/localstack-mcp-server → 0.5.0 (isLatest), npm → 0.8.0.
    After: the manual run on main publishes 0.8.0; each later tag publishes itself.
  • server.json validates against the 2025-12-11 schema (the current one in mcp-publisher v1.8.15).
  • yarn test: 50 suites, 847 passed (incl. the new release-metadata and existing dependency-pins tests); tsc --noEmit clean.
  • actionlint clean (the local copy doesn't know the ubuntu-26.04 label yet), zizmor 1.33.1 --min-severity medium: no findings, shellcheck clean.
  • inspect: new unit tests for the NDJSON parser and table (incl. a resource ID with | and ##); the tool test now expects the Terraform bucket as | AWS::S3::Bucket | <bucket> | global | <account> |.
    Before: state-management: shows S3 state → HTTP 404 {"message": "Not Found"}. After: see this PR's mcp-tool-tests.
  • yarn test after both commits: 51 suites, 852 passed.
  • Not run: the publish job itself, which needs OIDC on GitHub.

Merge Danger

Door: two-way

Revert the workflow to stop publishing. A version published to the registry can't be unpublished, but it's the same version already on npm.

Blast Radius: registry listing, one tool action

The registry entry, plus the inspect action's output (a resource table instead of a JSON state dump). Agents parsing the old JSON would see a different shape. A release whose files disagree on the version now fails this workflow (and the unit test on the PR).

🤖 Generated with Claude Code

bartsdev and others added 2 commits November 30, 2026 18:07
… tag

The registry still lists 0.5.0 while npm has 0.8.0, because publishing was manual.
The new mcp-registry workflow validates server.json on PRs that touch release
metadata and, on a vX.Y.Z tag, waits for the version on npm and publishes with
GitHub OIDC (no secret). mcp-publisher is pinned and its Sigstore bundle verified.
A Jest test keeps package.json, manifest.json and server.json on one version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LocalStack removed GET /_localstack/pods/state/metamodel, so `inspect` failed
with HTTP 404 (and the state-management tool test with it). It now reads
GET /_localstack/resources, the listing LocalStack names as the replacement
and lstk's `status` uses, and renders one escaped table row per resource
(type, ID, region, account). The `services` filter moves to LocalStack.

The endpoint is undocumented, so it is recorded under "Gaps in LocalStack"
and its response is described in state-inspect.logic.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bartsdev bartsdev changed the title ci: publish server.json to the official MCP registry on every release tag ci: publish to the MCP registry on release; fix state inspect after metamodel removal Nov 30, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bartsdev
bartsdev merged commit c6f2abe into main Nov 30, 2026
8 checks passed
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