From c69800fe2b29b9726d2e910a0bb397ba05f89858 Mon Sep 17 00:00:00 2001 From: Yiorgis Gozadinos Date: Thu, 16 Oct 2025 12:57:01 +0300 Subject: [PATCH] Fix downloading mcp publisher #2 --- .github/workflows/publish-mcp.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.yml index d9bdbaaa..30a6c956 100644 --- a/.github/workflows/publish-mcp.yml +++ b/.github/workflows/publish-mcp.yml @@ -26,7 +26,8 @@ jobs: echo "Generated server.json with version: $VERSION" - name: Install MCP Publisher run: | - curl -L https://github.com/modelcontextprotocol/registry/releases/download/latest/mcp-publisher_linux_amd64.tar.gz -o mcp-publisher.tar.gz + LATEST_RELEASE=$(curl -s https://api.github.com/repos/modelcontextprotocol/registry/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') + curl -L https://github.com/modelcontextprotocol/registry/releases/download/${LATEST_RELEASE}/mcp-publisher_linux_amd64.tar.gz -o mcp-publisher.tar.gz tar -xzf mcp-publisher.tar.gz chmod +x mcp-publisher sudo mv mcp-publisher /usr/local/bin/