diff --git a/pyproject.toml b/pyproject.toml index bf750e2..7d4f123 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] 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" readme = "README.md" requires-python = ">=3.12" diff --git a/src/mcp_familywall/__init__.py b/src/mcp_familywall/__init__.py index b5fdc75..d31c31e 100644 --- a/src/mcp_familywall/__init__.py +++ b/src/mcp_familywall/__init__.py @@ -1 +1 @@ -__version__ = "0.2.2" +__version__ = "0.2.3" diff --git a/src/mcp_familywall/server.py b/src/mcp_familywall/server.py index 833dfce..fe65724 100644 --- a/src/mcp_familywall/server.py +++ b/src/mcp_familywall/server.py @@ -82,7 +82,7 @@ def _extract_lists(data: dict[str, Any]) -> list[dict[str, Any]]: { "id": list_id, "name": list_id, # real name unknown — TODO once field identified - "type": "UNKNOWN", + "type": None, "open": None, "total": None, } @@ -190,15 +190,15 @@ def get_lists(scope: str | None = None) -> str: result = [] for item in raw_lists: - # TODO: apply scope filtering once the circle field is identified - # in the response (field name not yet verified via live API call). + # _extract_lists already normalises to {id, name, type, open, total}. + # TODO: apply scope filtering once the circle field is identified. result.append( { - "id": item.get("metaId"), + "id": item.get("id"), "name": translate_name(item.get("name", "")), - "type": item.get("taskListType"), - "open": item.get("remainingTaskNumber"), - "total": item.get("totalTaskNumber"), + "type": item.get("type"), + "open": item.get("open"), + "total": item.get("total"), } )