Skip to content

Commit ae25eae

Browse files
luarssclaude
andcommitted
fix: move OCI package version to identifier tag for MCP registry
MCP registry requires OCI packages to have version in the image tag (e.g. ghcr.io/owner/image:1.0.0) instead of a separate version field. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3111503 commit ae25eae

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ jobs:
129129
- name: Update version in server.json
130130
run: |
131131
VERSION="${GITHUB_REF_NAME#v}"
132-
jq --arg v "$VERSION" '.version = $v | (.packages[].version) = $v' server.json > server.json.tmp && mv server.json.tmp server.json
132+
jq --arg v "$VERSION" '
133+
.version = $v |
134+
(.packages[] | select(.registryType == "pypi")) |= . + {"version": $v} |
135+
(.packages[] | select(.registryType == "oci")) |= .identifier |= (split(":")[0] + ":" + $v)
136+
' server.json > server.json.tmp && mv server.json.tmp server.json
133137
134138
- name: Wait for PyPI propagation
135139
run: sleep 30

server.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
},
1818
{
1919
"registryType": "oci",
20-
"identifier": "ghcr.io/luarss/openroad-mcp",
21-
"version": "0.3.0",
20+
"identifier": "ghcr.io/luarss/openroad-mcp:0.3.0",
2221
"transport": { "type": "stdio" },
2322
"runtimeHint": "docker"
2423
}

0 commit comments

Comments
 (0)