From bad8050f685df047d7adcc4dd5353b44ca1730fa Mon Sep 17 00:00:00 2001 From: Nathan Cochran Date: Tue, 16 Dec 2025 14:33:00 -0500 Subject: [PATCH] Move mcp-publisher command out of GoReleaser --- .github/workflows/release.yml | 7 +++++++ .goreleaser.yaml | 7 ------- server-template.json | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7cd506c0..38696cea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,6 +66,13 @@ jobs: # PackageCloud credentials for publishing Linux packages PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} + - name: Publish to MCP Registry + if: "!contains(github.ref_name, '-')" # Skip pre-releases + run: | + VERSION="${GITHUB_REF_NAME#v}" + sed "s/{{ Version }}/$VERSION/g" server-template.json > server.json + ./mcp-publisher publish + - name: Invalidate CloudFront Cache env: AWS_ACCESS_KEY_ID: ${{ secrets.TIGER_CLI_RELEASES_AWS_ACCESS_KEY_ID }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9d6827a3..d4fe6ba8 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -206,13 +206,6 @@ publishers: env: - PACKAGECLOUD_TOKEN={{ .Env.PACKAGECLOUD_TOKEN }} - # Publish server.json to MCP Registry - - name: mcp-registry - disable: '{{ ne .Prerelease "" }}' # Skip this step for prereleases - ids: - - docker # Only publish docker images - cmd: sh -c 'sed "s/\$VERSION/{{ .Version }}/g" server-template.json > server.json && ./mcp-publisher publish' - # Release configuration release: github: diff --git a/server-template.json b/server-template.json index b91030f0..10b7a186 100644 --- a/server-template.json +++ b/server-template.json @@ -3,7 +3,7 @@ "name": "io.github.timescale/tiger-cli", "title": "Tiger MCP", "description": "Provides programmatic access to Tiger Cloud services, databases, and documentation.", - "version": "$VERSION", + "version": "{{ Version }}", "homepage": "https://github.com/timescale/tiger-cli", "repository": { "url": "https://github.com/timescale/tiger-cli", @@ -12,7 +12,7 @@ "packages": [ { "registryType": "oci", - "identifier": "ghcr.io/timescale/tiger-cli:$VERSION", + "identifier": "ghcr.io/timescale/tiger-cli:{{ Version }}", "transport": { "type": "stdio" },