Skip to content

Commit 0e246a9

Browse files
sd2kioanarm
andauthored
fix: don't use registryBaseUrl in server.json (#325)
* fix: don't use registryBaseUrl in server.json [These docs][docs] are misleading, apparently oci images shouldn't use registryBaseUrl but should just have the full Docker image tag in the identifier. [docs]: https://github.com/modelcontextprotocol/registry/blob/main/docs/guides/publishing/publish-server.md#example-serverjson-docker-hub * add docker.io prefix to MCP registry image identifier --------- Co-authored-by: Ioanna Armouti <[email protected]>
1 parent 5ed6922 commit 0e246a9

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/docker.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,8 @@ jobs:
7373
run: |
7474
# Update the server.json with the correct Docker image reference
7575
# (note the image tag does not include the "v" prefix)
76-
jq --arg version "${{ steps.version.outputs.VERSION }}" \
77-
--arg image "grafana/mcp-grafana:${{ steps.image-tag.outputs.IMAGE_TAG }}" \
78-
'.packages[0].version = $version |
79-
.packages[0].identifier = $image |
80-
.version = $version' server.json > server.json.tmp
76+
jq --arg image "docker.io/grafana/mcp-grafana:${{ steps.image-tag.outputs.IMAGE_TAG }}" \
77+
'.packages[0].identifier = $image' server.json > server.json.tmp
8178
mv server.json.tmp server.json
8279
8380
- name: Login to MCP Registry

server.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"packages": [
1111
{
1212
"registryType": "oci",
13-
"registryBaseUrl": "https://docker.io",
14-
"identifier": "grafana/mcp-grafana",
13+
"identifier": "docker.io/grafana/mcp-grafana",
1514
"version": "$VERSION",
1615
"transport": {
1716
"type": "stdio"

0 commit comments

Comments
 (0)