Skip to content

Commit bc97baf

Browse files
MattBabbageCopilot
andauthored
Update MCP Registry Publish Script (#1132)
* Add publish script and formed server file * Fix url and fix script * Set version to 0.0.0 initially * remove uncessary script * remove unnecessary ignore * Remove whitespace * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Add registry publisher workflow * Fetch tags in registry release workflow * Update registry workflow and server.json with VERSION placeholder --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent eb0757c commit bc97baf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/registry-releaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v5
1818

19-
- name: Install jq
20-
run: sudo apt-get update && sudo apt-get install -y jq
19+
- name: Fetch tags
20+
run: git fetch --tags
2121

2222
- name: Install MCP Publisher
2323
run: |
@@ -39,7 +39,7 @@ jobs:
3939
TAG_VERSION=$(echo "$LATEST_TAG" | sed 's/^v//')
4040
echo "Using latest tag: $LATEST_TAG"
4141
fi
42-
jq ".version = \"$TAG_VERSION\" | .packages[].version = \"$TAG_VERSION\"" server.json > server.json.tmp && mv server.json.tmp server.json
42+
sed -i "s/\${VERSION}/$TAG_VERSION/g" server.json
4343
echo "Updated server.json version to $TAG_VERSION"
4444
4545
- name: Login to MCP Registry

server.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"url": "https://github.com/github/github-mcp-server",
88
"source": "github"
99
},
10-
"version": "0.0.0",
10+
"version": "${VERSION}",
1111
"packages": [
1212
{
1313
"registryType": "oci",
1414
"registryBaseUrl": "https://ghcr.io",
1515
"identifier": "ghcr.io/github/github-mcp-server",
16-
"version": "0.0.0",
16+
"version": "${VERSION}",
1717
"runtimeHint": "docker",
1818
"transport": {
1919
"type": "stdio"

0 commit comments

Comments
 (0)