Skip to content
6 changes: 3 additions & 3 deletions .github/workflows/registry-releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v5

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

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

- name: Login to MCP Registry
Expand Down
4 changes: 2 additions & 2 deletions server.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"url": "https://github.com/github/github-mcp-server",
"source": "github"
},
"version": "0.0.0",
"version": "${VERSION}",
"packages": [
{
"registryType": "oci",
"registryBaseUrl": "https://ghcr.io",
"identifier": "ghcr.io/github/github-mcp-server",
"version": "0.0.0",
"version": "${VERSION}",
Comment on lines +10 to +16
Copy link

Copilot AI Sep 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using shell variable syntax ${VERSION} in a JSON file creates an invalid JSON document. Consider using a different placeholder format like __VERSION__ or {{VERSION}} to maintain JSON validity while the file serves as a template.

See below for a potential fix:

  "version": "__VERSION__",
  "packages": [
    {
      "registryType": "oci",
      "registryBaseUrl": "https://ghcr.io",
      "identifier": "ghcr.io/github/github-mcp-server",
      "version": "__VERSION__",

Copilot uses AI. Check for mistakes.
Comment on lines +10 to +16
Copy link

Copilot AI Sep 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using shell variable syntax ${VERSION} in a JSON file creates an invalid JSON document. Consider using a different placeholder format like __VERSION__ or {{VERSION}} to maintain JSON validity while the file serves as a template.

See below for a potential fix:

  "version": "__VERSION__",
  "packages": [
    {
      "registryType": "oci",
      "registryBaseUrl": "https://ghcr.io",
      "identifier": "ghcr.io/github/github-mcp-server",
      "version": "__VERSION__",

Copilot uses AI. Check for mistakes.
"runtimeHint": "docker",
"transport": {
"type": "stdio"
Expand Down
Loading