File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ name: Python Application
22on :
33 push :
44 branches : [main]
5- tags :
6- - " v*.*.*"
75 pull_request :
86jobs :
97 test :
Original file line number Diff line number Diff line change 44 tags :
55 - " v*.*.*"
66permissions :
7+ id-token : write
78 contents : write
89jobs :
910 publish :
1718 with :
1819 files : " *.mcpb"
1920 draft : true
21+ - name : Update fileSha256 in server.json
22+ run : |
23+ SHA256_HASH=$(sha256sum "mcp-youtube-transcript.mcpb" | awk '{print $1}')
24+ jq --arg hash "$SHA256_HASH" '.packages[0].fileSha256 = $hash' server.json > server_tmp.json
25+ mv server_tmp.json server.json
26+ cat server.json
27+ - name : Install MCP Publisher
28+ run : |
29+ curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.2.3/mcp-publisher_1.2.3_linux_amd64.tar.gz" | tar xz mcp-publisher
30+ - name : Login to MCP Registry
31+ run : ./mcp-publisher login github-oidc
32+ - name : Publish to MCP Registry
33+ run : ./mcp-publisher publish
You can’t perform that action at this time.
0 commit comments