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/