Commit Graph
18 Commits
Author SHA1 Message Date
cyrilixandClaude Sonnet 5 bf357015bc build: fix Docker build and switch releases to the homelab Tekton pipeline
The Dockerfile was broken since the MCP endpoint was added: it built a
single file (cmd/domogeek/domogeek.go) instead of the whole package, so
mcp.go's symbols (calendarDayFor, newMCPHandler) were undefined. Fixes
that by building ./cmd/domogeek, pins the builder image to
golang:1.27-alpine (module now requires go 1.25+), and drops the
hardcoded GOOS/GOARCH=amd64 so multi-arch builds compile natively per
platform instead of always producing an amd64 binary.

Also fixes .Dockerignore (wrong case, never actually read by
docker/buildah) by renaming it to .dockerignore, and anchors its
"domogeek" pattern to /domogeek so it excludes only the compiled binary,
not the whole cmd/domogeek source directory (same bug as the .gitignore
fix in an earlier commit).

Removes build-docker.sh: image releases now go through the existing
homelab Tekton pipeline (gitea-docker-build-multiarch), triggered by a
Gitea webhook on tag push, same pattern as other repos (e.g.
dra-devices). Images move from docker.io/cyrilix/domogeek to
git.cyrilix.bzh/cyrilix/domogeek. Documented in CLAUDE.md and README.md.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu8wwahgecuCGfesTKCfEd
2026-09-05 11:09:28 +02:00
cyrilixandClaude Sonnet 5 383c889cab feat: expose current date and time via HTTP and MCP
Adds GET /datetime and an MCP get_current_datetime tool returning the
current date/time in Europe/Paris, alongside the existing calendar
endpoints. Both share the same CurrentDateTime payload shape.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu8wwahgecuCGfesTKCfEd
2026-09-05 10:58:38 +02:00
cyrilixandClaude Sonnet 5 e5468ef654 feat: add MCP endpoint exposing calendar tools over Streamable HTTP
Adds a POST /mcp endpoint (github.com/modelcontextprotocol/go-sdk) with
three tools mirroring the existing /calendar logic: get_calendar_today,
get_calendar_for_date and get_holidays. Bumps go.mod to Go 1.25 (required
by the SDK) and vendors the new dependencies. Also fixes an unanchored
.gitignore rule ("domogeek") that was silently excluding all untracked
files under cmd/domogeek/.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu8wwahgecuCGfesTKCfEd
2026-09-05 10:53:31 +02:00
cyrilix e30c25b198 fix: increate retry attemps of caldav init v0.3.2 2022-09-28 09:11:16 +02:00
cyrilix b8fde634b5 fix: retry caldav init at startup v0.3.1 2022-09-28 09:02:31 +02:00
cyrilix 352dfcf2b6 refactor: manage caldav credentials v0.3.0 2022-06-06 17:59:51 +02:00
cyrilix df5c189743 fix: bad response for holidays from caldav 2022-05-27 11:01:13 +02:00
cyrilix 923672a418 logging: use zap logging framework v0.2.0 2022-04-18 23:16:35 +02:00
cyrilix 3e545deb44 refactor: move packages to 'pkg' directory 2022-04-18 23:02:11 +02:00
cyrilix d7191461eb feat: implement caldav search 2022-04-18 23:01:01 +02:00
cyrilix f9e8f4b9c1 fix: calendar unit test failing 2022-04-18 22:58:59 +02:00
cyrilix 949a30e001 fix(calendar): bad compute for paques monday v0.1.1 2022-04-18 12:45:16 +02:00
cyrilix 7db9a124d8 update gitignore v0.1.0 2022-04-15 09:21:32 +02:00
cyrilix ccec4f70dd feat: add status probe 2022-04-15 09:20:28 +02:00
cyrilix c23bc5cbbe upgrade dependencies and golang to 1.18 2022-04-14 22:58:43 +02:00
cyrilix 583030c964 Add prometheus metrics 2019-11-10 21:25:05 +01:00
cyrilix 2470d288bd First implementation 2019-11-04 21:40:00 +01:00
cyrilix 0fb8716d47 Initial commit 2019-11-04 21:36:42 +01:00