Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/mcp-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ jobs:
contents: read
steps:
- uses: actions/checkout@v4
# This runs in parallel with the PyPI publish on the same release event, and
# the registry rejects a server.json whose PyPI version doesn't exist yet.
- name: Wait for the package version on PyPI
run: |
pkg=$(jq -r '.packages[0].identifier' server.json)
ver=$(jq -r '.packages[0].version' server.json)
for i in $(seq 1 40); do
if curl -sf "https://pypi.org/pypi/$pkg/$ver/json" >/dev/null; then
echo "$pkg $ver is on PyPI"; exit 0
fi
echo "waiting for $pkg $ver on PyPI ($i/40)"; sleep 15
done
echo "::error::$pkg $ver did not appear on PyPI within 10 minutes"; exit 1
- name: Install mcp-publisher
run: |
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_linux_amd64.tar.gz" | tar xz mcp-publisher
Expand Down
Loading