Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

Release v1.2.5: der MCP-Server, und sonst nichts an der App

Duarte Santose28345dd13c7
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4f063871a..58486abf4 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 c8d889389..cfff49159 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 bac7b3969..ba14e46d4 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 ecd76b2a8..0b58287f5 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 4be4005cc..7ca26e41e 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 452bd6c53..b8b70caae 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",