From 52b9fa23a5df9adabc7b8529df7e08e5d9af2cbd Mon Sep 17 00:00:00 2001 From: VibeProgramm Date: Mon, 7 Sep 2026 03:03:53 +0300 Subject: [PATCH] ci: set MCP Registry server.json version from the release tag --- .github/workflows/publish-mcp.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.yml index e7f14c8..191e58a 100644 --- a/.github/workflows/publish-mcp.yml +++ b/.github/workflows/publish-mcp.yml @@ -21,5 +21,10 @@ jobs: - name: Authenticate to MCP Registry run: ./mcp-publisher login github-oidc + - name: Set server.json version from the tag + run: | + VERSION="${GITHUB_REF#refs/tags/v}" + jq --arg v "$VERSION" '.version = $v' server.json > server.tmp && mv server.tmp server.json + - name: Publish server to MCP Registry run: ./mcp-publisher publish