File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 5656 print('packages[0] keys:', list(data.get('packages', [{}])[0].keys()))
5757 PY
5858
59- - name : Install MCP Publisher
59+ - name : Install MCP Publisher (latest)
6060 run : |
61- curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
61+ set -euo pipefail
62+ OS=$(uname -s | tr '[:upper:]' '[:lower:]')
63+ ARCH=$(uname -m)
64+ if [ "$ARCH" = "x86_64" ]; then ARCH=amd64; elif [ "$ARCH" = "aarch64" ]; then ARCH=arm64; else echo "Unsupported arch: $ARCH"; exit 1; fi
65+ URL=$(curl -s https://api.github.com/repos/modelcontextprotocol/registry/releases/latest | grep -o "\"browser_download_url\": \"[^\"]*mcp-publisher_[^\"]*_${OS}_${ARCH}\.tar\.gz\"" | head -n1 | cut -d '"' -f4)
66+ echo "Downloading: $URL"
67+ curl -L "$URL" | tar xz mcp-publisher
68+ ./mcp-publisher --help || true
6269
6370 - name : Login to MCP Registry (OIDC)
6471 run : ./mcp-publisher login github-oidc
You can’t perform that action at this time.
0 commit comments