From 73a42e0aa780af2359121b067e12acd5c2eb416f Mon Sep 17 00:00:00 2001 From: Ben Sully Date: Wed, 1 Oct 2025 08:51:04 +0100 Subject: [PATCH] chore: add Gemini extension config This commit adsd a gemini-extension.json config file to the repo, following the instructions in the [Gemini CLI docs][docs]. [docs]: https://github.com/google-gemini/gemini-cli/blob/main/docs/extension-releasing.md --- .goreleaser.yaml | 57 +++++++++++++++++++++++++++++++++++++++++-- gemini-extension.json | 9 +++++++ 2 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 gemini-extension.json diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 519912ed..ed0508fa 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -7,7 +7,8 @@ before: - go mod tidy builds: - - env: + - id: default + env: - CGO_ENABLED=0 main: ./cmd/mcp-grafana goos: @@ -15,9 +16,24 @@ builds: - windows - darwin ldflags: "-s -w -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser" + - id: gemini-cli-extension + env: + - CGO_ENABLED=0 + main: ./cmd/mcp-grafana + goos: + - linux + - windows + - darwin + goarch: + - amd64 + - arm64 + ldflags: "-s -w -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser" archives: - - formats: tar.gz + - id: default + ids: + - default + formats: tar.gz # this name template makes the OS and Arch compatible with the results of `uname`. name_template: >- {{ .ProjectName }}_ @@ -31,6 +47,43 @@ archives: - goos: windows formats: zip + # The Gemini CLI Extension format. + # See https://github.com/google-gemini/gemini-cli/blob/main/docs/extension-releasing.md#platform-specific-archives. + # We'll use platform and architecture specific archive names, which must look like: + # + # {platform}.{arch}.{name}.{extension} + # + # Where the fields are: + # + # - {name}: The name of your extension. + # - {platform}: The operating system. Supported values are: + # - darwin (macOS) + # - linux + # - win32 (Windows) + # - {arch}: The architecture. Supported values are: + # - x64 + # - arm64 + # - {extension}: The file extension of the archive (e.g., .tar.gz or .zip). + # + # Examples: + # - darwin.arm64.{project}.tar.gz (specific to Apple Silicon Macs) + # - linux.x64.{project}.tar.gz + # - win32.{project}.zip + - id: gemini-cli-extension + ids: + - gemini-cli-extension + formats: tar.gz + files: + - gemini-extension.json + name_template: >- + {{ if eq .Os "windows" }}win32 + {{- else }}{{ .Os }}{{ end }}. + {{- if eq .Arch "amd64" }}x64 + {{- else }}{{ .Arch }}{{ end }}.grafana + format_overrides: + - goos: windows + formats: zip + changelog: sort: asc filters: diff --git a/gemini-extension.json b/gemini-extension.json new file mode 100644 index 00000000..35010ebe --- /dev/null +++ b/gemini-extension.json @@ -0,0 +1,9 @@ +{ + "name": "grafana", + "version": "0.7.0", + "mcpServers": { + "grafana": { + "command": "${extensionPath}${/}mcp-grafana" + } + } +}