From c49ba8ff8d812f48129312ea4decab76836cb8e3 Mon Sep 17 00:00:00 2001 From: Isaac Johnson Date: Tue, 14 Oct 2025 07:36:39 -0500 Subject: [PATCH] 0.22 - would not update lables if no other fields, allow update labels only --- Dockerfile | 2 +- gemini-extension.json | 4 ++-- main.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9f7797b..3df2edc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,4 +20,4 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . CMD ["python", "main.py"] -#harbor.freshbrewed.science/library/vikunjamcp:0.21 +#harbor.freshbrewed.science/library/vikunjamcp:0.22 diff --git a/gemini-extension.json b/gemini-extension.json index 72be395..032ce36 100644 --- a/gemini-extension.json +++ b/gemini-extension.json @@ -1,6 +1,6 @@ { "name": "vikunja", - "version": "1.0.21", + "version": "1.0.22", "mcpServers": { "nodeServer": { "command": "docker", @@ -14,7 +14,7 @@ "VIKUNJA_USERNAME", "-e", "VIKUNJA_PASSWORD", - "harbor.freshbrewed.science/library/vikunjamcp:0.21" + "harbor.freshbrewed.science/library/vikunjamcp:0.22" ], "env": { "VIKUNJA_URL": "$VIKUNJA_URL", diff --git a/main.py b/main.py index 64b6d4e..825b54e 100644 --- a/main.py +++ b/main.py @@ -558,6 +558,9 @@ def update_task_details( payload = {} + # at the least, id + payload["id"] = task_id + # Simple helper to set only when value explicitly passed (not None) def set_if(provided, key, transform=lambda x: x): if provided is not None: @@ -617,9 +620,6 @@ def update_task_details( else: labels_payload = {"labels": [str(labels)]} - if not payload: - return "No fields provided to update." - try: logger.info("update_task_details: updating task_id=%s with payload keys=%s", task_id, list(payload.keys())) response = session.post(f"{VIKUNJA_URL}/api/v1/tasks/{task_id}", json=payload)