diff --git a/.aider.conventions.md b/.aider.conventions.md index 483353d..c2be342 100644 --- a/.aider.conventions.md +++ b/.aider.conventions.md @@ -288,7 +288,7 @@ Shared engineering skills are available in `~/dev/.skills/`. Load at task start - **Name**: gitea-mcp - **Owner**: Mathias - **Client**: personal -- **Repo**: https://gitea.d-ma.be/mathias/gitea-mcp +- **Repo**: https://git.d-ma.be/mathias/gitea-mcp - **Status**: active ## Stack diff --git a/.context/PROJECT.md b/.context/PROJECT.md index 3189da0..bf5b52f 100644 --- a/.context/PROJECT.md +++ b/.context/PROJECT.md @@ -9,7 +9,7 @@ - **Name**: gitea-mcp - **Owner**: Mathias - **Client**: personal -- **Repo**: https://gitea.d-ma.be/mathias/gitea-mcp +- **Repo**: https://git.d-ma.be/mathias/gitea-mcp - **Status**: active ## Stack diff --git a/.context/system-prompt.txt b/.context/system-prompt.txt index 7fd3de9..f5a855b 100644 --- a/.context/system-prompt.txt +++ b/.context/system-prompt.txt @@ -293,7 +293,7 @@ Shared engineering skills are available in `~/dev/.skills/`. Load at task start - **Name**: gitea-mcp - **Owner**: Mathias - **Client**: personal -- **Repo**: https://gitea.d-ma.be/mathias/gitea-mcp +- **Repo**: https://git.d-ma.be/mathias/gitea-mcp - **Status**: active ## Stack diff --git a/.cursorrules b/.cursorrules index b86b184..942206a 100644 --- a/.cursorrules +++ b/.cursorrules @@ -291,7 +291,7 @@ Shared engineering skills are available in `~/dev/.skills/`. Load at task start - **Name**: gitea-mcp - **Owner**: Mathias - **Client**: personal -- **Repo**: https://gitea.d-ma.be/mathias/gitea-mcp +- **Repo**: https://git.d-ma.be/mathias/gitea-mcp - **Status**: active ## Stack diff --git a/AGENTS.md b/AGENTS.md index 483353d..c2be342 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -288,7 +288,7 @@ Shared engineering skills are available in `~/dev/.skills/`. Load at task start - **Name**: gitea-mcp - **Owner**: Mathias - **Client**: personal -- **Repo**: https://gitea.d-ma.be/mathias/gitea-mcp +- **Repo**: https://git.d-ma.be/mathias/gitea-mcp - **Status**: active ## Stack diff --git a/CLAUDE.md b/CLAUDE.md index 3189da0..bf5b52f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -9,7 +9,7 @@ - **Name**: gitea-mcp - **Owner**: Mathias - **Client**: personal -- **Repo**: https://gitea.d-ma.be/mathias/gitea-mcp +- **Repo**: https://git.d-ma.be/mathias/gitea-mcp - **Status**: active ## Stack diff --git a/Dockerfile b/Dockerfile index f0ca672..22b4927 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ FROM golang:1.26-alpine AS build WORKDIR /src -# Fetch internal gitea-hosted Go modules (e.g. mcp-chassis) without going +# Fetch internal git-hosted Go modules (e.g. mcp-chassis) without going # through proxy.golang.org and without HTTP→HTTPS surprises. Gitea returns # http:// in its go-import meta tag, so rewrite to https here and bypass # the module proxy + sumdb. RUN apk add --no-cache git && \ - git config --global url."https://gitea.d-ma.be/".insteadOf "http://gitea.d-ma.be/" -ENV GOPRIVATE=gitea.d-ma.be + git config --global url."https://git.d-ma.be/".insteadOf "http://git.d-ma.be/" +ENV GOPRIVATE=git.d-ma.be ENV GOPROXY=direct ENV GOSUMDB=off diff --git a/cmd/gitea-mcp/main.go b/cmd/gitea-mcp/main.go index da46432..d78ed34 100644 --- a/cmd/gitea-mcp/main.go +++ b/cmd/gitea-mcp/main.go @@ -18,6 +18,11 @@ import ( "git.d-ma.be/mathias/gitea-mcp/internal/tools" ) +// version is the build version, overridable via -ldflags "-X main.version=". +// Defaults to "dev" for local / un-stamped builds (was a hardcoded, drifting +// "0.1.0" — it now tells the truth instead of a stale literal). +var version = "dev" + func main() { logger := slog.New(slog.NewJSONHandler(os.Stdout, nil)) // Route the chassis's package-level slog (auth audit logs, gitea-mcp#9) through @@ -69,7 +74,7 @@ func main() { } addr := ":" + cfg.Port - logger.Info("gitea-mcp starting", "addr", addr, "version", "0.1.0") + logger.Info("gitea-mcp starting", "addr", addr, "version", version) if err := http.ListenAndServe(addr, mux); err != nil { logger.Error("server stopped", "err", err) os.Exit(1)