Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/build-expt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v7.0.0
with:
go-version: ^1.19
go-version-file: go.mod
- name: Run Goreleaser
uses: goreleaser/goreleaser-action@v5
with:
Expand All @@ -36,9 +36,9 @@ jobs:
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v7.0.0
with:
go-version: ^1.19
go-version-file: go.mod
- name: Run Goreleaser
uses: goreleaser/goreleaser-action@v5
with:
Expand All @@ -55,9 +55,9 @@ jobs:
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v7.0.0
with:
go-version: ^1.19
go-version-file: go.mod
- name: Run Goreleaser
uses: goreleaser/goreleaser-action@v5
with:
Expand Down
30 changes: 29 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,34 @@ jobs:
with:
args: "install --force postgresql13 sqlite"

# community.chocolatey.org intermittently answers package metadata with a
# 504; choco then skips that package yet still exits 0 ("installed 1/1
# packages"), and the miss only surfaces ~15 minutes later as a
# FileNotFoundError in the export robot tests. Probe for each binary the
# tests need, re-install anything missing with backoff, and fail here if
# the feed stays down.
- name: Verify chocolatey packages (retry on feed timeout)
shell: pwsh
timeout-minutes: 20
run: |
$PSNativeCommandUseErrorActionPreference = $false
$probes = @(
@{ pkg = 'sqlite'; dir = 'C:\ProgramData\chocolatey\lib\SQLite\tools'; exe = 'sqlite3.exe' },
@{ pkg = 'postgresql13'; dir = 'C:\Program Files\PostgreSQL\13\bin'; exe = 'psql.exe' }
)
foreach ($p in $probes) {
$hit = $null
for ($attempt = 1; $attempt -le 4; $attempt++) {
$hit = Get-ChildItem -LiteralPath $p.dir -Filter $p.exe -Recurse -File -ErrorAction SilentlyContinue | Select-Object -First 1
if ($hit) { break }
Write-Host "$($p.pkg): $($p.exe) not found under $($p.dir) (attempt $attempt of 4); re-installing"
Start-Sleep -Seconds (20 * $attempt)
choco install --force --yes $p.pkg
}
if (-not $hit) { throw "$($p.pkg): $($p.exe) still missing after 4 attempts - chocolatey feed unavailable" }
Write-Host "$($p.pkg): OK -> $($hit.FullName)"
}

- name: Install Python dependencies
run: |
pip3 install -r cicd/requirements.txt
Expand Down Expand Up @@ -1690,7 +1718,7 @@ jobs:
- name: Pull Docker base images for cache purposes
if: env.BUILD_IMAGE_REQUIRED == 'true'
run: |
docker pull --platform ${{ matrix.platform }} golang:1.23-bullseye || echo 'could not pull image for cache purposes'
docker pull --platform ${{ matrix.platform }} golang:1.27.3-bookworm || echo 'could not pull image for cache purposes'
docker pull --platform ${{ matrix.platform }} ubuntu:22.04 || echo 'could not pull image for cache purposes'

- name: Pull Docker image for cache purposes
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/goreleaser.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/mcp-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,9 @@ jobs:
with:
workspaces: packaging/mcpb/cargo
- if: matrix.vector == 'go'
uses: actions/setup-go@v6
uses: actions/setup-go@v7.0.0
with:
go-version: '1.25'
go-version: '1.27.3'
cache-dependency-path: packaging/mcpb/go/go.sum
- if: matrix.vector == 'dotnet'
uses: actions/setup-dotnet@v5
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/mcp-wringer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# tools annotated readOnlyHint, and each stdio case restarts the server.
# Every mode uses a fixed seed, so a failure replays with the reproducer file
# in the uploaded report artifact:
# npx @stackql/mcp-wringer replay <file.repro.json>
# npx @stackql/mcp-wringer@0.1.1 replay <file.repro.json>
#
# cicd/mcp-wringer/mcp-server.mjs owns the server invocation.

Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:

- name: Fuzz stdio (2025-11-25)
id: stdio-2025
uses: stackql/mcp-wringer@v0
uses: stackql/mcp-wringer@v0.1.1
env:
MCP_WRINGER_SPEC_REVISION: "2025-11-25"
with:
Expand All @@ -131,7 +131,7 @@ jobs:
- name: Fuzz stdio (2026-07-28)
id: stdio-2026
if: ${{ !cancelled() && steps.prepare.outcome == 'success' }}
uses: stackql/mcp-wringer@v0
uses: stackql/mcp-wringer@v0.1.1
env:
MCP_WRINGER_SPEC_REVISION: "2026-07-28"
with:
Expand All @@ -150,7 +150,7 @@ jobs:
- name: Fuzz Streamable HTTP stateful (2025-11-25)
id: http-stateful
if: ${{ !cancelled() && steps.http-stateful-server.outcome == 'success' }}
uses: stackql/mcp-wringer@v0
uses: stackql/mcp-wringer@v0.1.1
env:
MCP_WRINGER_SPEC_REVISION: "2025-11-25"
with:
Expand All @@ -173,7 +173,7 @@ jobs:
- name: Fuzz Streamable HTTP stateless (2026-07-28)
id: http-stateless
if: ${{ !cancelled() && steps.http-stateless-server.outcome == 'success' }}
uses: stackql/mcp-wringer@v0
uses: stackql/mcp-wringer@v0.1.1
env:
MCP_WRINGER_SPEC_REVISION: "2026-07-28"
with:
Expand Down
2 changes: 1 addition & 1 deletion packaging/mcpb/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Cache layout note: the npm/PyPI wrappers and the Go SDK extract only the entry p

## Common commands

SDK vector targets (all take `VERSION=X.Y.Z`; see "The six wrapper vectors" above): `make manifests`, `make <vector>-manifest`, `make <vector>-build` (lint + unit tests + package), `make <vector>-smoke` (`smoke-test.py --cmd` against the launcher; `PYTHON=python` on Windows), `make <vector>-publish` (credentials from the environment, listed in the Makefile header). Toolchains: Rust stable (MSRV 1.88), Go 1.25, .NET 8+9 SDKs.
SDK vector targets (all take `VERSION=X.Y.Z`; see "The six wrapper vectors" above): `make manifests`, `make <vector>-manifest`, `make <vector>-build` (lint + unit tests + package), `make <vector>-smoke` (`smoke-test.py --cmd` against the launcher; `PYTHON=python` on Windows), `make <vector>-publish` (credentials from the environment, listed in the Makefile header). Toolchains: Rust stable (MSRV 1.88), Go 1.27.3, .NET 8+9 SDKs.

Post-release assurance: `make check-published [VERSION=X.Y.Z]` (`scripts/check-published.py`, stdlib only, read-only) probes every distribution target for the version (default: the latest GitHub release) and prints PASS/FAIL per venue - release assets, releases.stackql.io, Docker Hub (incl. `:latest`), npm, PyPI, crates.io, Go mirror + proxy, NuGet, the Official MCP Registry (incl. sha256 pins vs the release `.sha256` files and the package set vs `server.template.json`) and the GitHub MCP Registry. It never publishes; a non-zero exit means at least one venue is behind. The GitHub MCP Registry row trails `mcp-registry-publish` by up to 2 hours: GitHub syncs from the Official MCP Registry on an hourly sweep (runs can abort and retry) and its read API caches the listing for about 20 minutes (measured 2026-09-08: registry publish 02:54Z, GitHub entry updated 03:47Z, visible via the API between 04:00Z and 04:09Z). A FAIL there inside that window is expected; a FAIL after it means the sync is broken on GitHub's side.

Expand Down
2 changes: 1 addition & 1 deletion packaging/mcpb/go/CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CLAUDE.md - packaging/mcpb/go (module `github.com/stackql/stackql-mcp-go`)

The Go member of the StackQL embedded-MCP family: package `embed` runs the `stackql` MCP server either from a `go:embed`-carried binary (`cmd/stackql-mcp-fetch` downloads and pin-verifies it at `go generate` time) or via the sidecar path (shared cache, then a pin-verified download) when `Options.Binary` is unset, and returns a connected `modelcontextprotocol/go-sdk` client. Go 1.25. The module path stays `github.com/stackql/stackql-mcp-go`: the source of truth is here, `scripts/publish-mirror.sh` pushes the rendered tree to that mirror repo and tags `v<version>` (Go modules cannot be consumed cleanly from a monorepo subdirectory).
The Go member of the StackQL embedded-MCP family: package `embed` runs the `stackql` MCP server either from a `go:embed`-carried binary (`cmd/stackql-mcp-fetch` downloads and pin-verifies it at `go generate` time) or via the sidecar path (shared cache, then a pin-verified download) when `Options.Binary` is unset, and returns a connected `modelcontextprotocol/go-sdk` client. Go 1.27.3. The module path stays `github.com/stackql/stackql-mcp-go`: the source of truth is here, `scripts/publish-mirror.sh` pushes the rendered tree to that mirror repo and tags `v<version>` (Go modules cannot be consumed cleanly from a monorepo subdirectory).

## The contract (do not deviate)

Expand Down
2 changes: 1 addition & 1 deletion packaging/mcpb/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/stackql/stackql-mcp-go

go 1.25.0
go 1.27.3

require github.com/modelcontextprotocol/go-sdk v1.6.1

Expand Down
Loading