fix: correct get_activities field mapping, document wallget response (v0.3.2)
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -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"
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = "0.3.1"
|
||||
__version__ = "0.3.2"
|
||||
|
||||
@@ -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"),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user