Fix downloading mcp publisher #2

This commit is contained in:
Yiorgis Gozadinos 2025-10-16 12:57:01 +03:00
parent 48243d8d8e
commit c69800fe2b
No known key found for this signature in database

View file

@ -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/