From 2f07e1b3fe2c64f12b399a6790a5e71a33873b89 Mon Sep 17 00:00:00 2001 From: BukeLy Date: Mon, 23 Nov 2026 15:01:42 +0800 Subject: [PATCH] chore: server.json leaves out the version, which every release fills in from its tag The repo's server.json said 0.2.10 while the registry listed 0.4.1: the release job overwrote the version and the image tag, and nothing kept the file's copy current. Now the file has no version, the image name lives only in server.json, and the job adds the tag to it. --- .github/workflows/image.yml | 4 ++-- server.json | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index bb97e82..76600f3 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -81,10 +81,10 @@ jobs: --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \ "$archive" tar xzf "$archive" mcp-publisher - # server.json in the repo names the last version; the release's tag names this one + # server.json leaves the version out; the release's tag gives it to the listing and its image - run: | v="${GITHUB_REF_NAME#v}" - jq --arg v "$v" '.version = $v | .packages[0].identifier = "ghcr.io/bukely/peerbox:" + $v' server.json > server.tmp + jq --arg v "$v" '.version = $v | .packages[0].identifier += ":" + $v' server.json > server.tmp mv server.tmp server.json - run: ./mcp-publisher login github-oidc - run: ./mcp-publisher publish diff --git a/server.json b/server.json index 0087765..b348dbc 100644 --- a/server.json +++ b/server.json @@ -11,7 +11,6 @@ "icons": [ { "src": "https://peerbox.net/icon.png", "mimeType": "image/png", "sizes": ["128x128"] } ], - "version": "0.2.10", "remotes": [ { "type": "streamable-http", @@ -21,7 +20,7 @@ "packages": [ { "registryType": "oci", - "identifier": "ghcr.io/bukely/peerbox:0.2.10", + "identifier": "ghcr.io/bukely/peerbox", "transport": { "type": "streamable-http", "url": "http://localhost:{PORT}/mcp"