From 7f1633e3f31350c80e3cb3d30e1040c15b2ba0c8 Mon Sep 17 00:00:00 2001 From: Nikolay Vitkov Date: Thu, 16 Oct 2025 17:07:19 +0200 Subject: [PATCH 1/2] ci: fix MCP registry publishing --- .github/workflows/pre-release.yml | 3 +-- .github/workflows/publish-to-npm-on-tag.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 198f1e8a..a779ee8b 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -26,9 +26,8 @@ jobs: - name: Install MCP Publisher run: | export TAG=$(curl -sL https://api.github.com/repos/modelcontextprotocol/registry/releases/latest | jq -r ".tag_name") - export VERSION="${TAG#v}" export OS=$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') - curl -L "https://github.com/modelcontextprotocol/registry/releases/download/${TAG}/mcp-publisher_${VERSION}_${OS}.tar.gz" | tar xz mcp-publisher + curl -L "https://github.com/modelcontextprotocol/registry/releases/download/${TAG}/mcp-publisher_${OS}.tar.gz" | tar xz mcp-publisher - name: Verify server.json run: npm run verify-server-json-version diff --git a/.github/workflows/publish-to-npm-on-tag.yml b/.github/workflows/publish-to-npm-on-tag.yml index 1c0fe61d..e1a4a392 100644 --- a/.github/workflows/publish-to-npm-on-tag.yml +++ b/.github/workflows/publish-to-npm-on-tag.yml @@ -80,9 +80,8 @@ jobs: - name: Install MCP Publisher run: | export TAG=$(curl -sL https://api.github.com/repos/modelcontextprotocol/registry/releases/latest | jq -r ".tag_name") - export VERSION="${TAG#v}" export OS=$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') - curl -L "https://github.com/modelcontextprotocol/registry/releases/download/${TAG}/mcp-publisher_${VERSION}_${OS}.tar.gz" | tar xz mcp-publisher + curl -L "https://github.com/modelcontextprotocol/registry/releases/download/${TAG}/mcp-publisher_${OS}.tar.gz" | tar xz mcp-publisher - name: Login to MCP Registry run: ./mcp-publisher login github-oidc From 7df1de611833ac26b452f099f74f0878d6572926 Mon Sep 17 00:00:00 2001 From: Nikolay Vitkov Date: Thu, 16 Oct 2025 17:08:57 +0200 Subject: [PATCH 2/2] chore: use latest keyword --- .github/workflows/pre-release.yml | 3 +-- .github/workflows/publish-to-npm-on-tag.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index a779ee8b..4861136b 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -25,9 +25,8 @@ jobs: - name: Install MCP Publisher run: | - export TAG=$(curl -sL https://api.github.com/repos/modelcontextprotocol/registry/releases/latest | jq -r ".tag_name") export OS=$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') - curl -L "https://github.com/modelcontextprotocol/registry/releases/download/${TAG}/mcp-publisher_${OS}.tar.gz" | tar xz mcp-publisher + curl -L "https://github.com/modelcontextprotocol/registry/releases/download/latest/mcp-publisher_${OS}.tar.gz" | tar xz mcp-publisher - name: Verify server.json run: npm run verify-server-json-version diff --git a/.github/workflows/publish-to-npm-on-tag.yml b/.github/workflows/publish-to-npm-on-tag.yml index e1a4a392..13e0db92 100644 --- a/.github/workflows/publish-to-npm-on-tag.yml +++ b/.github/workflows/publish-to-npm-on-tag.yml @@ -79,9 +79,8 @@ jobs: - name: Install MCP Publisher run: | - export TAG=$(curl -sL https://api.github.com/repos/modelcontextprotocol/registry/releases/latest | jq -r ".tag_name") export OS=$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') - curl -L "https://github.com/modelcontextprotocol/registry/releases/download/${TAG}/mcp-publisher_${OS}.tar.gz" | tar xz mcp-publisher + curl -L "https://github.com/modelcontextprotocol/registry/releases/download/latest/mcp-publisher_${OS}.tar.gz" | tar xz mcp-publisher - name: Login to MCP Registry run: ./mcp-publisher login github-oidc