togello-mcp-server 1.0.34 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { httpClient } from '../../client.js';
|
|
2
2
|
import { errorToolResponse, jsonToolResponse } from './toolResponse.js';
|
|
3
|
-
export const updateTaskHandler = async ({ todoUUID, isCompleted, status, scheduledStartDate, scheduledEndDate, url, detail, }) => {
|
|
3
|
+
export const updateTaskHandler = async ({ todoUUID, taskName, isCompleted, status, scheduledStartDate, scheduledEndDate, url, detail, }) => {
|
|
4
4
|
try {
|
|
5
|
-
if (
|
|
5
|
+
if (taskName === undefined &&
|
|
6
|
+
isCompleted === undefined &&
|
|
6
7
|
status === undefined &&
|
|
7
8
|
scheduledStartDate === undefined &&
|
|
8
9
|
scheduledEndDate === undefined &&
|
|
@@ -16,6 +17,7 @@ export const updateTaskHandler = async ({ todoUUID, isCompleted, status, schedul
|
|
|
16
17
|
await httpClient.putJson({
|
|
17
18
|
path: `/v2/integration/todo/${encodeURIComponent(todoUUID)}`,
|
|
18
19
|
body: {
|
|
20
|
+
label: taskName,
|
|
19
21
|
isCompleted,
|
|
20
22
|
status,
|
|
21
23
|
scheduledStartDate,
|
|
@@ -26,6 +28,7 @@ export const updateTaskHandler = async ({ todoUUID, isCompleted, status, schedul
|
|
|
26
28
|
});
|
|
27
29
|
return jsonToolResponse({
|
|
28
30
|
todoUUID,
|
|
31
|
+
taskName,
|
|
29
32
|
isCompleted,
|
|
30
33
|
status,
|
|
31
34
|
updated: true,
|
package/build/mcpServer.js
CHANGED
|
@@ -93,6 +93,10 @@ export function createMcpServer(options = {}) {
|
|
|
93
93
|
.string()
|
|
94
94
|
.uuid()
|
|
95
95
|
.describe('Task UUID. Please specify the task uuid (todo uuid) obtained from get-tasks-list. You cannot use this tool without specifying it.'),
|
|
96
|
+
taskName: z
|
|
97
|
+
.string()
|
|
98
|
+
.optional()
|
|
99
|
+
.describe('Optional task name. If omitted, the current task name is kept.'),
|
|
96
100
|
isCompleted: z
|
|
97
101
|
.boolean()
|
|
98
102
|
.optional()
|
package/package.json
CHANGED