From 07cdfe3123c84d62f6bf0b77a01f18fb6bed9112 Mon Sep 17 00:00:00 2001 From: Ming Wen Date: Mon, 3 Aug 2026 12:57:32 +0800 Subject: [PATCH] ci(docker): add the MCP Registry ownership-verification label The MCP Registry verifies OCI-package ownership by checking the io.modelcontextprotocol.server.name label on the image against the server.json name. Bake it into the runtime stage so the next release image is publishable to the registry as io.github.api7/aisix. --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index fcd740dd..888230a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -74,6 +74,11 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \ # --- Stage 2: runtime -------------------------------------------------------- FROM debian:bookworm-slim AS runtime +# Ownership-verification label for the MCP Registry: when this image is +# published as an MCP server entry, the registry requires this label to +# match the server name in server.json. +LABEL io.modelcontextprotocol.server.name="io.github.api7/aisix" + RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates tini \ && rm -rf /var/lib/apt/lists/* \