Skip to content

Commit c23dfac

Browse files
ioanarmsd2k
andauthored
fix: add version to package identifier and version field (#327)
Co-authored-by: Ben Sully <[email protected]>
1 parent 82003f4 commit c23dfac

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,17 @@ jobs:
6666
- name: Install dependencies
6767
run: |
6868
sudo apt-get update && sudo apt-get install -y jq
69-
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.2.3/mcp-publisher_1.2.3_linux_amd64.tar.gz" | tar xz mcp-publisher
69+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.3.0/mcp-publisher_1.3.0_linux_amd64.tar.gz" | tar xz mcp-publisher
7070
chmod +x mcp-publisher
7171
sudo mv mcp-publisher /usr/local/bin/
7272
7373
- name: Update server.json with Docker image
7474
run: |
7575
# Update the server.json with the correct Docker image reference
7676
# (note the image tag does not include the "v" prefix)
77-
jq --arg image "docker.io/grafana/mcp-grafana:${{ steps.image-tag.outputs.IMAGE_TAG }}" \
77+
jq --arg version "${{ steps.version.outputs.VERSION }}" \
78+
--arg image "docker.io/grafana/mcp-grafana:${{ steps.image-tag.outputs.IMAGE_TAG }}" \
79+
'.version = $version' \
7880
'.packages[0].identifier = $image' server.json > server.json.tmp
7981
mv server.json.tmp server.json
8082

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Build stage
22
FROM golang:1.24-bullseye AS builder
33

4-
LABEL io.modelcontextprotocol.server.name="io.github.grafana/mcp-grafana"
5-
64
# Set the working directory
75
WORKDIR /app
86

@@ -21,6 +19,8 @@ RUN go build -o mcp-grafana ./cmd/mcp-grafana
2119
# Final stage
2220
FROM debian:bullseye-slim
2321

22+
LABEL io.modelcontextprotocol.server.name="io.modelcontextprotocol.anonymous/mcp-grafana"
23+
2424
# Install ca-certificates for HTTPS requests
2525
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
2626

0 commit comments

Comments
 (0)