togello-mcp-server 1.0.41 → 1.0.42
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.
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ All tools set MCP `readOnlyHint`, `openWorldHint`, and `destructiveHint` annotat
|
|
|
74
74
|
Write tools return JSON. Failed tool responses also return JSON and are marked with `isError: true`. Tools that can overwrite existing private Togello data set `destructiveHint: true`; create/start tools set `destructiveHint: false`.
|
|
75
75
|
|
|
76
76
|
- `create-task`: Creates a TODO task.
|
|
77
|
-
- `update-task`: Updates a TODO task.
|
|
77
|
+
- `update-task`: Updates a TODO task, including category assignment or removal.
|
|
78
78
|
- `update-calendar-date-memo`: Updates or clears a calendar date memo.
|
|
79
79
|
- `start-activity-log`: Starts an activity log.
|
|
80
80
|
- `complete-activity-log`: Completes an activity log.
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { httpClient } from '../../client.js';
|
|
2
2
|
import { errorToolResponse, jsonToolResponse } from './toolResponse.js';
|
|
3
|
-
export const updateTaskHandler = async ({ todoUUID, taskName, isCompleted, status, scheduledStartDate, scheduledEndDate, deadlineDateTime, url, detail, }) => {
|
|
3
|
+
export const updateTaskHandler = async ({ todoUUID, taskName, isCompleted, status, categoryUUID, scheduledStartDate, scheduledEndDate, deadlineDateTime, url, detail, }) => {
|
|
4
4
|
try {
|
|
5
5
|
if (taskName === undefined &&
|
|
6
6
|
isCompleted === undefined &&
|
|
7
7
|
status === undefined &&
|
|
8
|
+
categoryUUID === undefined &&
|
|
8
9
|
scheduledStartDate === undefined &&
|
|
9
10
|
scheduledEndDate === undefined &&
|
|
10
11
|
deadlineDateTime === undefined &&
|
|
@@ -21,6 +22,7 @@ export const updateTaskHandler = async ({ todoUUID, taskName, isCompleted, statu
|
|
|
21
22
|
label: taskName,
|
|
22
23
|
isCompleted,
|
|
23
24
|
status,
|
|
25
|
+
categoryUUID,
|
|
24
26
|
scheduledStartDate,
|
|
25
27
|
scheduledEndDate,
|
|
26
28
|
deadlineDateTime,
|
|
@@ -33,6 +35,7 @@ export const updateTaskHandler = async ({ todoUUID, taskName, isCompleted, statu
|
|
|
33
35
|
taskName,
|
|
34
36
|
isCompleted,
|
|
35
37
|
status,
|
|
38
|
+
categoryUUID,
|
|
36
39
|
deadlineDateTime,
|
|
37
40
|
updated: true,
|
|
38
41
|
});
|
package/build/mcpServer.js
CHANGED
|
@@ -129,6 +129,12 @@ export function createMcpServer(options = {}) {
|
|
|
129
129
|
.enum(['TODO', 'PENDING', 'DOING', 'DONE'])
|
|
130
130
|
.optional()
|
|
131
131
|
.describe('Optional. Updates the todo status directly. Use this to switch tasks between TODO, PENDING, DOING, and DONE.'),
|
|
132
|
+
categoryUUID: z
|
|
133
|
+
.string()
|
|
134
|
+
.uuid()
|
|
135
|
+
.nullable()
|
|
136
|
+
.optional()
|
|
137
|
+
.describe('Optional category UUID associated with the task. Use get-todo-category-list to obtain a valid category UUID. Set to null to remove the current category. If omitted, the current value is kept.'),
|
|
132
138
|
scheduledStartDate: z
|
|
133
139
|
.string()
|
|
134
140
|
.optional()
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "togello-mcp-server",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.42",
|
|
5
5
|
"description": "MCP server for Togello tasks, calendar memos, calendar events, and activity logs.",
|
|
6
6
|
"main": "build/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc && chmod 755 build/index.js",
|
|
9
9
|
"codex:preclone": "bash scripts/codex-cloud/preclone.sh",
|
|
10
10
|
"start": "node build/index.js",
|
|
11
|
-
"test": "
|
|
11
|
+
"test": "npm run build && node --test"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"mcp",
|