Skip to content

Commit 9cd634e

Browse files
author
mcp-release-bot
committed
fix(release): use correct MCP Registry API for publication verification
1 parent dc09c9d commit 9cd634e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,20 +186,16 @@ jobs:
186186
NAME: ${{ fromJSON(steps.server.outputs.json).name }}
187187
run: |
188188
sleep 10
189-
./mcp-publisher search "$NAME" > out.json
189+
curl -s "https://registry.modelcontextprotocol.io/v0/servers" > out.json
190190
python - <<'PY'
191191
import json, sys, os
192192
name = os.environ['NAME']
193193
try:
194194
data=json.load(open('out.json'))
195195
except Exception:
196196
sys.exit(1)
197-
items = []
198-
if isinstance(data, dict):
199-
items = data.get('results') or data.get('servers') or data.get('data') or []
200-
elif isinstance(data, list):
201-
items = data
202-
found = any(item.get('name') == name for item in items)
197+
servers = data.get('servers', [])
198+
found = any(server.get('name') == name for server in servers)
203199
if not found:
204200
print(f"Package {name} not found in registry")
205201
sys.exit(1)

0 commit comments

Comments
 (0)