From e28345dd13c7a39a8c0551090946480b2d91fbdd Mon Sep 17 00:00:00 2001 From: Duarte Santos Date: Tue, 4 Aug 2026 16:35:34 +0200 Subject: [PATCH] Release v1.2.5: der MCP-Server, und sonst nichts an der App MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Letztes publiziertes Release war v1.2.4, also ist das hier v1.2.5 — alles seit dem Release in EINE Nummer. Inhalt ist genau eine Sache: der optionale MCP-Server aus PR #19 nebst dem i18n-Kern-Split, der ihn ueberhaupt erst unter reinem Node ladbar macht. An der App selbst aendert sich nichts. Wer keinen KI-Client benutzt, merkt von diesem Release ueberhaupt nichts: nichts wandert in den Docker-Build, die docker-compose.yml bleibt unberuehrt. Kein neues APK — der Bundle-Hash bewegt sich zwar (der Modulgraph haengt jetzt direkt am i18n-Kern), aber verhalten tut sich die App identisch. Die Download-Zeile auf der Website bleibt deshalb bei v1.2.4. --- CHANGELOG.md | 39 +++++++++++++++++++++++++++++++ README.md | 1 + api/package.json | 2 +- frontend/android/app/build.gradle | 4 ++-- frontend/package-lock.json | 4 ++-- frontend/package.json | 2 +- 6 files changed, 46 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f06387..58486ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,44 @@ # Changelog +## v1.2.5 — 2026-08-04 + +Nothing in the app itself changed. This release adds an optional side door: a small server that +lets an AI assistant you already run — Claude Desktop, Cursor, Cline — answer questions about +your own training, off the same files your instance already writes. If you don't use one, this +release is invisible to you. + +### Ask an AI about your training, without the data leaving your box (#19) + +- 🤖 **An MCP server (`mcp/`)** — opt-in, read-only, and not part of the Docker build. Your LLM + client spawns it as a local process, it reads `./data` directly, and it exits when the client + disconnects. No new container, no extra auth on the api, no third-party service, nothing over + the network. *"What did I bench last week?", "what's my estimated 1RM on deadlift?", "which + muscles have I been neglecting?"* +- **The answers match the Stats screen because they are the same numbers.** The server calls the + very functions in `frontend/src/lib/` the app already computes with, rather than reimplementing + them. Eight tools: routines, the week plan, workouts, one session in detail, body weight, + estimated 1RM and muscle balance. +- **Read-only on purpose.** Logging a workout from an assistant needs a long-lived token the api + does not have yet, plus a lock against the web UI's read-modify-write. Until both exist, the + server answers questions and does nothing else. It never reads passkey material, VAPID keys or + session state — only the profile it was pointed at. +- `docker-compose.yml` is untouched and nothing new enters the image, so an instance that ignores + this ships exactly what it shipped before. Setup is in [mcp/README.md](mcp/README.md). + +### Under the hood + +- The pure half of `i18n.js` — the language state, the constants, the readers — moved into + `i18n-core.js`, so the helpers under `frontend/src/lib/` can be loaded by a plain Node process + and not only by Vite. `i18n.js` keeps the Vite-only parts (the locale-pack loader, the React + hook) and re-exports the rest, so nothing that imports it had to change. +- The shared lib modules that only need `t` now take it from the core directly. A Vite-only + import inside a shared module is invisible under vitest, which transforms it, and fatal to the + MCP server, which does not — so the shared half stays clear of the bundler half by + construction rather than by remembering to. + +The MCP server was contributed by [@Pengboi](https://github.com/Pengboi) — the first feature in +openGym written by someone other than me. Thank you. + ## v1.2.4 — 2026-08-01 The effort ratings you have been recording since v1.2.3 now answer questions, and bodyweight diff --git a/README.md b/README.md index c8d8893..cfff491 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,7 @@ as a home-screen app, passkey sign-in, offline support, sync across your phone a - 🌍 **12 languages** — full UI translation (EN, DE, ES, FR, IT, PT, PL, TR, RU, ZH, KO, HI); exercise instructions localized in 10 of them, loaded on demand so the app stays fast - 📥 **Bring your history with you** — import from **FitNotes** (Android and iOS), **Strong** and **Hevy**, or body weight straight out of an **Apple Health** export. Exercise names are matched against the library and anything unrecognised becomes one of your own exercises, so nothing in the file is dropped - 📦 **Yours to keep** — one-tap JSON export/import, guest mode, **no telemetry** +- 🤖 **Ask an AI about your training** (optional) — an [MCP server](mcp/README.md) lets a client like Claude Desktop or Cursor read your history in your own words: *"what did I bench last week?"*. Read-only, spawned locally by the client, nothing leaves your box. Not in the Docker build — if you don't use an AI assistant, it isn't there - 📱 **Standalone Android app** — the whole tracker as a sideloadable APK: no account, no server, data on the phone, native workout reminders ([download](https://opengym.duarte-santos.ch)) ## Quick start (self-host) diff --git a/api/package.json b/api/package.json index bac7b39..ba14e46 100644 --- a/api/package.json +++ b/api/package.json @@ -1,6 +1,6 @@ { "name": "gym-api", - "version": "1.2.4", + "version": "1.2.5", "private": true, "type": "module", "main": "server.js", diff --git a/frontend/android/app/build.gradle b/frontend/android/app/build.gradle index ecd76b2..0b58287 100644 --- a/frontend/android/app/build.gradle +++ b/frontend/android/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "ch.duartesantos.opengym" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 5 - versionName "1.2.4" + versionCode 6 + versionName "1.2.5" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 4be4005..7ca26e4 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "opengym-frontend", - "version": "1.2.4", + "version": "1.2.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opengym-frontend", - "version": "1.2.4", + "version": "1.2.5", "license": "AGPL-3.0-or-later", "dependencies": { "@capacitor/core": "^7.6.8", diff --git a/frontend/package.json b/frontend/package.json index 452bd6c..b8b70ca 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "opengym-frontend", "private": true, - "version": "1.2.4", + "version": "1.2.5", "type": "module", "scripts": { "dev": "vite",