From 19809aa0f0fbb1fc6bba3e4ca215542ffc89f69e Mon Sep 17 00:00:00 2001 From: Mihai PLESA Date: Mon, 1 Jun 2026 20:09:02 +0100 Subject: [PATCH] mcp publisher verify --- .github/workflows/build-release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index c5d798d..2862cbb 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -180,8 +180,17 @@ jobs: # Publish to MCP Registry # Reference: https://github.com/modelcontextprotocol/registry/blob/main/docs/guides/publishing/publish-server.md - name: Install MCP Publisher + env: + MCP_PUBLISHER_VERSION: v1.7.9 run: | - curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.7.9/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher + set -euo pipefail + FILENAME="mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" + CHECKSUMS_FILE="registry_${MCP_PUBLISHER_VERSION#v}_checksums.txt" + BASE_URL="https://github.com/modelcontextprotocol/registry/releases/download/${MCP_PUBLISHER_VERSION}" + curl -fSL "${BASE_URL}/${FILENAME}" -o "${FILENAME}" + curl -fSL "${BASE_URL}/${CHECKSUMS_FILE}" -o checksums.txt + grep -E " ${FILENAME}$" checksums.txt | sha256sum -c + tar xzf "${FILENAME}" mcp-publisher - name: Login to MCP Registry run: ./mcp-publisher login github-oidc