Skip to content

Commit 1bc76b8

Browse files
luarssclaude
andcommitted
fix: use full tag name (with v prefix) for OCI image identifier
Docker images are pushed with v-prefixed tags (e.g. v0.3.0-dev4), so the MCP registry OCI identifier must match. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9d686f0 commit 1bc76b8

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/mcp-registry-publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ jobs:
3737
- name: Update version in server.json
3838
run: |
3939
VERSION="${{ inputs.version }}"
40-
jq --arg v "$VERSION" '.version = $v | (.packages[].version) = $v' server.json > server.json.tmp && mv server.json.tmp server.json
40+
IMAGE_TAG="v${VERSION}"
41+
jq --arg v "$VERSION" --arg t "$IMAGE_TAG" '
42+
.version = $v |
43+
(.packages[] | select(.registryType == "pypi")).version = $v |
44+
(.packages[] | select(.registryType == "oci")).identifier |= (split(":")[0] + ":" + $t)
45+
' server.json > server.json.tmp && mv server.json.tmp server.json
4146
4247
- name: Publish to MCP Registry
4348
run: ./mcp-publisher publish

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,11 @@ jobs:
129129
- name: Update version in server.json
130130
run: |
131131
VERSION="${GITHUB_REF_NAME#v}"
132-
jq --arg v "$VERSION" '
132+
IMAGE_TAG="${GITHUB_REF_NAME}"
133+
jq --arg v "$VERSION" --arg t "$IMAGE_TAG" '
133134
.version = $v |
134135
(.packages[] | select(.registryType == "pypi")).version = $v |
135-
(.packages[] | select(.registryType == "oci")).identifier |= (split(":")[0] + ":" + $v)
136+
(.packages[] | select(.registryType == "oci")).identifier |= (split(":")[0] + ":" + $t)
136137
' server.json > server.json.tmp && mv server.json.tmp server.json
137138
138139
- name: Wait for PyPI propagation

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "openroad-mcp"
7-
version = "0.3.0.dev3"
7+
version = "0.3.0.dev4"
88
authors = [
99
{name = "Precision Innovations", email="jluar@precisioninno.com"},
1010
]

0 commit comments

Comments
 (0)