Skip to content

Commit ef5dbb8

Browse files
committed
schema changed between 1.0.0 and 1.1.0 of the mcp-publisher
1 parent 9cbe075 commit ef5dbb8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,16 @@ jobs:
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

0 commit comments

Comments
 (0)