From 332b01718e1a0b43f7d5228a5be21ac9eef75bc8 Mon Sep 17 00:00:00 2001 From: Marcus van Elst Date: Wed, 15 Apr 2026 14:47:59 +0200 Subject: [PATCH] fix: correct get_activities field mapping, document wallget response (v0.3.2) --- SPEC.md | 10 ++++++++++ pyproject.toml | 2 +- src/mcp_familywall/__init__.py | 2 +- src/mcp_familywall/server.py | 8 ++++---- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/SPEC.md b/SPEC.md index ca3b81e..85c9fc3 100644 --- a/SPEC.md +++ b/SPEC.md @@ -151,6 +151,16 @@ Content-Type: application/x-www-form-urlencoded | `masterNested` | optional | | `sortBy` | optional | +**Response-Struktur (verifiziert):** +``` +a00.r.r[] + .metaId → ID der Aktivität (= wallMessageId) + .refType → Aktivitätstyp (z.B. STATUS, FAMILY_CREATED) + .text → Text (optional, fehlt bei System-Events) + .creationDate → Datum (ISO 8601) + .accountId → Autor-ID +``` + **Response-Struktur:** zu verifizieren beim ersten echten Call ### `wallactivityget` – Einzelne Aktivität abrufen diff --git a/pyproject.toml b/pyproject.toml index c6df00e..45bc8dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "mcp-familywall" -version = "0.3.1" +version = "0.3.2" description = "MCP server for Family Wall — read your family's lists and tasks via Claude" readme = "README.md" requires-python = ">=3.12" diff --git a/src/mcp_familywall/__init__.py b/src/mcp_familywall/__init__.py index 260c070..f9aa3e1 100644 --- a/src/mcp_familywall/__init__.py +++ b/src/mcp_familywall/__init__.py @@ -1 +1 @@ -__version__ = "0.3.1" +__version__ = "0.3.2" diff --git a/src/mcp_familywall/server.py b/src/mcp_familywall/server.py index 87916c0..b5a3456 100644 --- a/src/mcp_familywall/server.py +++ b/src/mcp_familywall/server.py @@ -289,10 +289,10 @@ def get_activities(limit: int = 20): result.append( { "id": item.get("metaId"), - "type": item.get("type"), - "text": item.get("text") or item.get("comment"), - "date": item.get("date") or item.get("createdDate"), - "author": item.get("authorName") or item.get("author"), + "type": item.get("refType"), + "text": item.get("text"), + "date": item.get("creationDate"), + "author": item.get("accountId"), } )