fix: set list id correctly in _extract_lists (v0.2.3)

This commit is contained in:
2026-04-15 13:51:12 +02:00
parent 8cf707e3bd
commit eedf9c2ce5
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "mcp-familywall" name = "mcp-familywall"
version = "0.2.2" version = "0.2.3"
description = "MCP server for Family Wall — read your family's lists and tasks via Claude" description = "MCP server for Family Wall — read your family's lists and tasks via Claude"
readme = "README.md" readme = "README.md"
requires-python = ">=3.12" requires-python = ">=3.12"
+1 -1
View File
@@ -1 +1 @@
__version__ = "0.2.2" __version__ = "0.2.3"
+7 -7
View File
@@ -82,7 +82,7 @@ def _extract_lists(data: dict[str, Any]) -> list[dict[str, Any]]:
{ {
"id": list_id, "id": list_id,
"name": list_id, # real name unknown — TODO once field identified "name": list_id, # real name unknown — TODO once field identified
"type": "UNKNOWN", "type": None,
"open": None, "open": None,
"total": None, "total": None,
} }
@@ -190,15 +190,15 @@ def get_lists(scope: str | None = None) -> str:
result = [] result = []
for item in raw_lists: for item in raw_lists:
# TODO: apply scope filtering once the circle field is identified # _extract_lists already normalises to {id, name, type, open, total}.
# in the response (field name not yet verified via live API call). # TODO: apply scope filtering once the circle field is identified.
result.append( result.append(
{ {
"id": item.get("metaId"), "id": item.get("id"),
"name": translate_name(item.get("name", "")), "name": translate_name(item.get("name", "")),
"type": item.get("taskListType"), "type": item.get("type"),
"open": item.get("remainingTaskNumber"), "open": item.get("open"),
"total": item.get("totalTaskNumber"), "total": item.get("total"),
} }
) )