File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,29 @@ jobs:
4545 run : |
4646 twine upload dist/* -u __token__ -p $PYPI_API_TOKEN
4747
48+ - name : Show server.json before publish
49+ run : |
50+ echo "server.json (pre-publish):"
51+ cat server.json
52+ echo
53+ python - << 'PY'
54+ import json
55+ data = json.load(open('server.json'))
56+ print('packages[0] keys:', list(data.get('packages', [{}])[0].keys()))
57+ PY
58+
4859 - name : Install MCP Publisher
4960 run : |
5061 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
5162
63+ - name : Validate server.json with MCP Publisher
64+ run : ./mcp-publisher validate --file server.json
65+
5266 - name : Login to MCP Registry (OIDC)
5367 run : ./mcp-publisher login github-oidc
5468
5569 - name : Publish to MCP Registry
56- run : ./mcp-publisher publish
70+ run : ./mcp-publisher publish --file server.json
5771
5872 - name : Extract package version
5973 id : get_version
You can’t perform that action at this time.
0 commit comments