From ba044054546d45e3ab60237fa561a636fff839f3 Mon Sep 17 00:00:00 2001 From: Devid HW Date: Wed, 22 Apr 2026 05:32:55 +0700 Subject: [PATCH] ci: fix mcp-publisher download URL - Change from wrong repo (mcp-publisher) to correct repo (registry) - Use proper tar.gz format with versioned release URL - Add tar extraction step - Update manual install instructions with correct URL --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9621468..03bc6f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -169,14 +169,17 @@ jobs: - name: Install mcp-publisher run: | - # Download mcp-publisher with error handling - curl -fsSL -o mcp-publisher https://github.com/modelcontextprotocol/mcp-publisher/releases/latest/download/mcp-publisher-linux-amd64 || { + # Download mcp-publisher from correct registry repository + # URL format: https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_linux_amd64.tar.gz + curl -fsSL -o mcp-publisher.tar.gz "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_linux_amd64.tar.gz" || { echo "⚠️ Failed to download mcp-publisher - MCP publish will be skipped" - echo "Install manually: https://github.com/modelcontextprotocol/mcp-publisher" + echo "Install manually: https://github.com/modelcontextprotocol/registry/releases" exit 0 } + tar -xzf mcp-publisher.tar.gz mcp-publisher chmod +x mcp-publisher sudo mv mcp-publisher /usr/local/bin/ + rm mcp-publisher.tar.gz - name: Publish to MCP Registry run: | @@ -184,7 +187,8 @@ jobs: if ! command -v mcp-publisher &> /dev/null; then echo "⚠️ mcp-publisher not found - skipping MCP publish" echo "To publish manually:" - echo " 1. Install mcp-publisher: https://github.com/modelcontextprotocol/mcp-publisher" + echo " 1. Install mcp-publisher:" + echo " curl -L \"https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_$(uname -s | tr '[:upper:]' '[:lower:]')_amd64.tar.gz\" | tar xz mcp-publisher" echo " 2. Run: mcp-publisher login github" echo " 3. Run: mcp-publisher publish" exit 0