Skip to content

Guard the MCP Registry entry in CI and document republishing [sc-146582] - #4

Merged
ssathy2 merged 1 commit into
mainfrom
siddharthsathyam7349/sc-146582-publish-workflow
Aug 7, 2026
Merged

ssathy2 merged 1 commit into
mainfrom
siddharthsathyam7349/sc-146582-publish-workflow

Conversation

@ssathy2

@ssathy2 ssathy2 commented Aug 7, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Publishing server.json to the official MCP Registry is a manual sequence that only exists in one person's shell history. The first attempt also failed on a schema limit — the registry caps description at 100 characters and ours was ~200 — which nothing in the repo checked for.

Why not automate it

The obvious fix is a workflow that republishes on version bumps. That requires storing the ifttt.com Ed25519 signing key as an Actions secret, and this repository is public. The com.ifttt namespace authenticates by proving domain ownership rather than through GitHub (login github-oidc only grants io.github.* names), so there is no keyless path to publishing from CI. Publishing stays a manual maintainer step, run from the key in 1Password.

What this does instead

CI can still catch the failures before someone attempts a publish, with no secret involved:

  • server.json now fails validation if description exceeds the registry's 100-character cap, or if version isn't semver. Both slot into the existing validateRegistryManifest() in scripts/validate.mjs — offline, no new dependency.
  • CONTRIBUTING.md documents the registry entry, the manual publish sequence, and why the key is deliberately kept out of CI.

Validation

node scripts/validate.mjs passes on the real file, and rejects a seeded 120-character description and a 1.0 version with the expected two errors.

Story: sc-146582

Summary by CodeRabbit

  • Documentation

    • Added guidance for publishing MCP Registry entries, including version updates, validation requirements, and key synchronization.
  • Bug Fixes

    • Improved manifest validation by enforcing the registry’s 100-character description limit.
    • Added SemVer validation for registry versions with clearer error messages.

Publishing server.json to the registry is a manual step that only lives in
one person's shell history, and the first attempt failed on a schema limit
that nothing checked for.

Automating it in CI would mean storing the ifttt.com Ed25519 signing key as
an Actions secret. This repository is public, and the com.ifttt namespace
authenticates by domain rather than through GitHub, so there is no keyless
way to publish from here — publishing stays a manual maintainer step, run
from the key in 1Password.

What CI can do without the key is catch the mistakes before they reach a
publish attempt: server.json's description now fails validation past the
registry's 100-character cap, and version must be semver.

CONTRIBUTING.md documents the entry, the manual publish sequence, and why
the key is deliberately not in CI.
@ssathy2
ssathy2 force-pushed the siddharthsathyam7349/sc-146582-publish-workflow branch from 8d38668 to 1373247 Compare August 7, 2026 17:07
@ssathy2 ssathy2 changed the title Republish to the MCP Registry automatically on server.json version bumps [sc-146582] Guard the MCP Registry entry in CI and document republishing [sc-146582] Aug 7, 2026
@coderabbitai

coderabbitai Bot commented Aug 7, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The change adds MCP Registry contribution guidance and extends manifest validation for description length and SemVer-compliant versions.

Changes

MCP Registry validation

Layer / File(s) Summary
Manifest validation and contribution guidance
scripts/validate.mjs, CONTRIBUTING.md
Manifest validation reports errors for descriptions over 100 characters and invalid SemVer values. Contribution guidance documents publication, validation, DNS-based Ed25519 authentication, key storage, and TXT-record synchronization.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • IFTTT/ifttt-plugins#3: Both changes address MCP Registry metadata validation, including description constraints.
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the CI guard and documentation changes for republishing the MCP Registry entry.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch siddharthsathyam7349/sc-146582-publish-workflow

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/publish-mcp.yml:
- Around line 18-20: Add workflow-level concurrency configuration for the
publish workflow, using a stable group and setting cancel-in-progress to false.
Place it alongside the top-level workflow settings so all publish jobs are
serialized while queued runs remain available to complete.
- Around line 44-47: Update the “Install mcp-publisher” workflow step to use a
tested, pinned release URL instead of releases/latest. Download the archive to a
file, verify its SHA-256 checksum or Sigstore bundle against the trusted release
metadata, and extract mcp-publisher only after verification succeeds.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: IFTTT/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b60a5946-4e2c-4a6f-b010-49bbe5cc669a

📥 Commits

Reviewing files that changed from the base of the PR and between 05f3c5c and 8d38668.

📒 Files selected for processing (3)
  • .github/workflows/publish-mcp.yml
  • AGENTS.md
  • CONTRIBUTING.md

Comment thread .github/workflows/publish-mcp.yml Outdated
Comment on lines +18 to +20
jobs:
publish:
runs-on: ubuntu-latest

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Serialize registry publication runs.

If concurrent runs can publish the same registry version, define a workflow-level concurrency group with cancel-in-progress: false. Otherwise, competing runs can issue publication requests for an immutable version, causing one run to fail after another run publishes it.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/publish-mcp.yml around lines 18 - 20, Add workflow-level
concurrency configuration for the publish workflow, using a stable group and
setting cancel-in-progress to false. Place it alongside the top-level workflow
settings so all publish jobs are serialized while queued runs remain available
to complete.

Comment thread .github/workflows/publish-mcp.yml Outdated
Comment on lines +44 to +47
- name: Install mcp-publisher
if: steps.check.outputs.changed == 'true'
run: |
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -eu
printf '%s\n' '--- workflow ---'
cat -n .github/workflows/publish-mcp.yml | sed -n '1,100p'
printf '%s\n' '--- related publisher references ---'
rg -n --hidden -S 'mcp-publisher|modelcontextprotocol/registry|releases/latest|sha256|sigstore|cosign' .github README.md 2>/dev/null || true
printf '%s\n' '--- repository status ---'
git status --short

Repository: IFTTT/ifttt-plugins

Length of output: 303


🏁 Script executed:

#!/bin/bash
set -eu
printf '%s\n' '--- workflow files ---'
git ls-files '.github/workflows/*' || true
printf '%s\n' '--- matching files and references ---'
fd -HI 'publish-mcp|mcp|workflow' .github . 2>/dev/null | head -200 || true
rg -n --hidden -S 'mcp-publisher|modelcontextprotocol/registry|releases/latest' . 2>/dev/null | head -200 || true
printf '%s\n' '--- repository metadata ---'
git remote -v || true
git branch --show-current || true
git rev-parse HEAD || true

Repository: IFTTT/ifttt-plugins

Length of output: 1741


🌐 Web query:

Model Context Protocol registry mcp-publisher GitHub releases SHA256 checksum Sigstore verification artifacts

💡 Result:

The mcp-publisher command-line tool, used for interacting with the Model Context Protocol (MCP) registry, provides signed artifacts for its releases on GitHub [1][2][3]. Users can verify these releases using SHA256 checksums and Sigstore-based provenance verification [4][5]. Release Artifacts For each release, the official repository provides the following assets: - Compressed binaries (e.g., mcp-publisher_linux_amd64.tar.gz) [1][2]. - Software Bill of Materials (SBOM) in JSON format (e.g., *.sbom.json) [1][2]. - Sigstore bundles in JSON format (e.g., .sigstore.json) [1][2]. - A checksum file for the release (e.g., registry_vX.Y.Z_checksums.txt) [1][2]. Verification Procedures Security-conscious workflows typically pin both the version and the SHA256 digest of the binary [4][5]. 1. SHA256 Verification: The checksum file provided in the release contains the hash for the binaries. This can be verified using standard tools: sha256sum -c registry_vX.Y.Z_checksums.txt [4][5] 2. Sigstore Provenance Verification: The Sigstore bundle (.sigstore.json) allows for verifying that the artifact was produced by the official GitHub Actions workflow. Verification is performed using the Cosign CLI: cosign verify-blob \ --bundle mcp-publisher.tar.gz.sigstore.json \ --certificate-identity "https://github.com/modelcontextprotocol/registry/.github/workflows/release.yml@refs/tags/vX.Y.Z" \ --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \ mcp-publisher.tar.gz [4][5] Additional Notes - Artifacts: The official MCP Registry hosts only server metadata (in server.json), not the actual server artifacts themselves [6][7]. - Integrity Hashes: For server packages (e.g.,.mcpb files), authors are responsible for generating SHA256 hashes to be included in their server.json, which MCP clients then use to validate file integrity upon installation [7]. - Tool Usage: The mcp-publisher tool itself is installed via pre-built binaries or Homebrew and is used to validate and publish metadata to the registry [8][3].

Citations:


🏁 Script executed:

#!/bin/bash
set -eu
api='https://api.github.com/repos/modelcontextprotocol/registry'
printf '%s\n' '--- latest release ---'
curl -fsSL "$api/releases/latest" |
  jq '{tag_name, name, assets: [.assets[] | {name, size, browser_download_url}]}'
printf '%s\n' '--- recent release tags ---'
curl -fsSL "$api/releases?per_page=5" |
  jq -r '.[] | [.tag_name, .name] | `@tsv`'

Repository: IFTTT/ifttt-plugins

Length of output: 306


🌐 Web query:

site:github.com/modelcontextprotocol/registry/releases mcp-publisher checksums sigstore.json

💡 Result:

In the context of the Model Context Protocol (MCP) registry and mcp-publisher releases, the.sigstore.json files associated with each release artifact are cryptographic signatures used to verify the integrity and provenance of the software [1][2]. When you download a release asset, such as mcp-publisher_linux_amd64.tar.gz, there is a corresponding.sigstore.json file provided alongside it [1][3]. These files are generated using Sigstore, a project that provides tools for signing and verifying software artifacts to ensure they have not been tampered with [1][2]. To verify an artifact, you would typically use the Sigstore verification tools (such as cosign) to check the signature against the public transparency log, using the information contained within the.sigstore.json file [1][4]. Similarly, the registry releases include a checksums.txt file, which also has a corresponding.sigstore.json file, allowing for the verification of the entire checksum file itself [1][5]. By including these files in every release, the project enables automated security verification, allowing users to confirm that the downloaded binary matches the official build produced by the project's CI/CD pipeline [1][3][6].

Citations:


Pin and verify the publisher binary.

Replace releases/latest with a tested release. Download the archive, verify its SHA-256 checksum or Sigstore bundle, and extract it only after verification.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/publish-mcp.yml around lines 44 - 47, Update the “Install
mcp-publisher” workflow step to use a tested, pinned release URL instead of
releases/latest. Download the archive to a file, verify its SHA-256 checksum or
Sigstore bundle against the trusted release metadata, and extract mcp-publisher
only after verification succeeds.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@scripts/validate.mjs`:
- Around line 334-336: Update CONTRIBUTING.md to document that server.json
version values must use SemVer, including the repository’s stricter local
validation despite the MCP Registry schema permitting non-SemVer values. Place
this guidance alongside the existing OpenClaw skill frontmatter SemVer policy.
- Around line 328-332: Update the description-length validation to count Unicode
code points with Array.from(manifest.description).length for both the
100-character comparison and the error message, instead of using
manifest.description.length.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: IFTTT/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5a0ba46a-c439-46bc-87e3-45d8c4b87de7

📥 Commits

Reviewing files that changed from the base of the PR and between 8d38668 and 1373247.

📒 Files selected for processing (2)
  • CONTRIBUTING.md
  • scripts/validate.mjs
🚧 Files skipped from review as they are similar to previous changes (1)
  • CONTRIBUTING.md

Comment thread scripts/validate.mjs
Comment on lines +328 to +332
if (typeof manifest.description === "string" && manifest.description.length > 100) {
addError(
`server.json "description" is ${manifest.description.length} characters; the registry schema caps it at 100.`,
);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

node <<'NODE'
const description = "😀".repeat(100);
const codePoints = Array.from(description).length;

if (description.length !== 200 || codePoints !== 100) {
  throw new Error(`Unexpected counts: ${description.length}/${codePoints}`);
}

console.log({ codeUnits: description.length, codePoints });
NODE

Repository: IFTTT/ifttt-plugins

Length of output: 193


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- validator context ---'
sed -n '300,345p' scripts/validate.mjs

printf '%s\n' '--- description schema references ---'
rg -n -C 3 '"description"|maxLength|server\.schema|2025-12-11' . \
  -g '!node_modules' -g '!dist' -g '!build' | head -200

printf '%s\n' '--- referenced schema ---'
curl -fsSL https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json |
  node -e '
    let data = "";
    process.stdin.on("data", chunk => data += chunk);
    process.stdin.on("end", () => {
      const schema = JSON.parse(data);
      console.log(JSON.stringify({
        description: schema.properties?.description,
        serverDescription: schema.properties?.server?.properties?.description
      }, null, 2));
    });
  '

Repository: IFTTT/ifttt-plugins

Length of output: 5425


🏁 Script executed:

#!/bin/bash
set -euo pipefail

curl -fsSL https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json |
  python3 -c '
import json, sys
schema = json.load(sys.stdin)

def walk(value, path=()):
    if isinstance(value, dict):
        if "maxLength" in value or "description" in value:
            print(json.dumps({"path": ".".join(path), "value": value}, ensure_ascii=False))
        for key, child in value.items():
            walk(child, path + (str(key),))
    elif isinstance(value, list):
        for index, child in enumerate(value):
            walk(child, path + (str(index),))

walk(schema)
'

Repository: IFTTT/ifttt-plugins

Length of output: 30025


🌐 Web query:

JSON Schema validation maxLength Unicode code points UTF-16 code units official specification

💡 Result:

In the official JSON Schema specification, the validation keywords maxLength and minLength are defined based on the number of Unicode code points in a string [1][2][3]. While older drafts of the specification referred to the "number of its characters" as defined by relevant IETF RFCs for JSON (such as RFC 8259) [4][5][6], current specifications explicitly clarify this as the count of Unicode code points [1]. It is important to note that this is distinct from UTF-16 code units [7]. Because many programming environments (such as JavaScript/Node.js) count length by UTF-16 code units, a discrepancy can arise when handling characters outside the Basic Multilingual Plane (BMP), such as certain emojis or complex symbols [7]. For example, a single character consisting of a surrogate pair in UTF-16 counts as two code units but only one Unicode code point [7]. Consequently, developers should be aware that implementation-specific string length properties—often based on UTF-16 code units—may not align with the JSON Schema requirement of counting Unicode code points [7].

Citations:


Count Unicode code points for the 100-character cap.

String.prototype.length counts UTF-16 code units. Use Array.from(manifest.description).length for both the comparison and the error message.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@scripts/validate.mjs` around lines 328 - 332, Update the description-length
validation to count Unicode code points with
Array.from(manifest.description).length for both the 100-character comparison
and the error message, instead of using manifest.description.length.

Comment thread scripts/validate.mjs
Comment on lines +334 to +336
if (typeof manifest.version === "string" && !semverPattern.test(manifest.version)) {
addError(`server.json "version" ("${manifest.version}") must be semver (e.g. 1.0.0).`);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

schema_url='https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json'

curl -fsSL "$schema_url" |
  jq -e '.definitions.ServerDetail.properties.version.description
    | contains("Non-semantic versions are allowed")'

Repository: IFTTT/ifttt-plugins

Length of output: 162


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- validator context ---'
sed -n '300,355p' scripts/validate.mjs

printf '%s\n' '--- repository policy references ---'
rg -n -i --glob '!node_modules' --glob '!dist' \
  'semver|semantic version|non-semantic|version.*policy|version.*format|contribut|server\.json' \
  README.md CONTRIBUTING.md .github scripts package.json 2>/dev/null || true

printf '%s\n' '--- version declarations and validator usage ---'
rg -n --glob '!node_modules' \
  '"version"\s*:|semverPattern|manifest\.version|validate\.mjs' . 2>/dev/null | head -250

Repository: IFTTT/ifttt-plugins

Length of output: 6703


Document the server.json SemVer policy.

CONTRIBUTING.md documents SemVer for OpenClaw skill frontmatter but not for server.json. The validator rejects non-SemVer versions, while the MCP Registry schema permits them. Document this repository-specific requirement and the stricter local validation.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@scripts/validate.mjs` around lines 334 - 336, Update CONTRIBUTING.md to
document that server.json version values must use SemVer, including the
repository’s stricter local validation despite the MCP Registry schema
permitting non-SemVer values. Place this guidance alongside the existing
OpenClaw skill frontmatter SemVer policy.

@ssathy2
ssathy2 merged commit 4eabcc0 into main Aug 7, 2026
2 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