Skip to content

Commit 246b184

Browse files
committed
server.json: drop per-package version field (OCI packages must not have it)
The registry validator rejects OCI packages with an explicit version field - the version is read from the tag in the identifier (':1.0.3'). Update both the static server.json and the workflow's sed step so the field is consistently absent.
1 parent 49b49a8 commit 246b184

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/publish-image.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ jobs:
118118
d = json.loads(p.read_text())
119119
d["version"] = "$V"
120120
for pkg in d.get("packages", []):
121-
pkg["version"] = "$V"
121+
# OCI packages must NOT have a 'version' field; the version
122+
# lives inside the identifier tag (per registry validator).
123+
pkg.pop("version", None)
122124
ident = pkg.get("identifier", "")
123125
if ":" in ident:
124126
pkg["identifier"] = ident.rsplit(":", 1)[0] + ":$V"

server.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
{
1212
"registryType": "oci",
1313
"identifier": "ghcr.io/maciekaz/eset-mcp:1.0.3",
14-
"version": "1.0.3",
1514
"transport": {
1615
"type": "stdio"
1716
}

0 commit comments

Comments
 (0)