togello-mcp-server 1.0.34 → 1.0.36

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.
@@ -12,8 +12,10 @@ export const tasksHandler = async (uri, _options) => {
12
12
  text: tasks
13
13
  .map((todo) => JSON.stringify({
14
14
  label: todo.label,
15
+ status: todo.status,
15
16
  scheduledStartDate: todo.scheduledStartDate,
16
17
  scheduledEndDate: todo.scheduledEndDate,
18
+ deadlineDateTime: todo.deadlineDateTime,
17
19
  priorityNumber: todo.priorityNumber,
18
20
  }))
19
21
  .join(','),
@@ -1,20 +1,24 @@
1
1
  import { httpClient } from '../../client.js';
2
2
  import { errorToolResponse, jsonToolResponse } from './toolResponse.js';
3
- export const createTaskHandler = async ({ taskName, categoryUUID, scheduledStartDate, scheduledEndDate, url, detail, }) => {
3
+ export const createTaskHandler = async ({ taskName, status, categoryUUID, scheduledStartDate, scheduledEndDate, deadlineDateTime, url, detail, }) => {
4
4
  try {
5
5
  await httpClient.postJson({
6
6
  path: '/v2/integration/todo',
7
7
  body: {
8
8
  label: taskName,
9
+ status: status,
9
10
  categoryUUID: categoryUUID,
10
11
  scheduledStartDate: scheduledStartDate,
11
12
  scheduledEndDate: scheduledEndDate,
13
+ deadlineDateTime: deadlineDateTime,
12
14
  url: url,
13
15
  detail: detail,
14
16
  },
15
17
  });
16
18
  return jsonToolResponse({
17
19
  taskName,
20
+ status,
21
+ deadlineDateTime,
18
22
  created: true,
19
23
  });
20
24
  }
@@ -19,6 +19,7 @@ export const getTodayCalendarHandler = async () => {
19
19
  taskName: task.label,
20
20
  scheduledStartDate: task.scheduledStartDate,
21
21
  scheduledEndDate: task.scheduledEndDate,
22
+ deadlineDateTime: task.deadlineDateTime,
22
23
  })),
23
24
  });
24
25
  }
@@ -17,6 +17,7 @@ export const getTodoListHandler = async ({ categoryUUIDs, }) => {
17
17
  detail: todo.detail,
18
18
  scheduledStartDate: todo.scheduledStartDate,
19
19
  scheduledEndDate: todo.scheduledEndDate,
20
+ deadlineDateTime: todo.deadlineDateTime,
20
21
  priorityNumber: todo.priorityNumber,
21
22
  categoryUUID: todo.categoryUUID,
22
23
  categoryLabel: todo.categoryLabel,
@@ -1,11 +1,13 @@
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, deadlineDateTime, url, detail, }) => {
4
4
  try {
5
- if (isCompleted === undefined &&
5
+ if (taskName === undefined &&
6
+ isCompleted === undefined &&
6
7
  status === undefined &&
7
8
  scheduledStartDate === undefined &&
8
9
  scheduledEndDate === undefined &&
10
+ deadlineDateTime === undefined &&
9
11
  url === undefined &&
10
12
  detail === undefined) {
11
13
  return errorToolResponse('At least one update field is required');
@@ -16,18 +18,22 @@ export const updateTaskHandler = async ({ todoUUID, isCompleted, status, schedul
16
18
  await httpClient.putJson({
17
19
  path: `/v2/integration/todo/${encodeURIComponent(todoUUID)}`,
18
20
  body: {
21
+ label: taskName,
19
22
  isCompleted,
20
23
  status,
21
24
  scheduledStartDate,
22
25
  scheduledEndDate,
26
+ deadlineDateTime,
23
27
  url,
24
28
  detail,
25
29
  },
26
30
  });
27
31
  return jsonToolResponse({
28
32
  todoUUID,
33
+ taskName,
29
34
  isCompleted,
30
35
  status,
36
+ deadlineDateTime,
31
37
  updated: true,
32
38
  });
33
39
  }
@@ -50,7 +50,7 @@ export function createMcpServer(options = {}) {
50
50
  },
51
51
  });
52
52
  server.registerTool('get-tasks-list', {
53
- description: 'Retrieves incomplete tasks from the TODO feature. Recognizes task uuid / task name / status / detail / scheduled start date and time / scheduled end date and time / priority / category',
53
+ description: 'Retrieves incomplete tasks from the TODO feature. Recognizes task uuid / task name / status / detail / scheduled start date and time / scheduled end date and time / deadline date and time / priority / category',
54
54
  inputSchema: {
55
55
  categoryUUIDs: z
56
56
  .array(z.string())
@@ -63,6 +63,10 @@ export function createMcpServer(options = {}) {
63
63
  description: 'Creates a new task in the TODO feature.',
64
64
  inputSchema: {
65
65
  taskName: z.string().describe('create task name'),
66
+ status: z
67
+ .enum(['TODO', 'PENDING', 'DOING', 'DONE'])
68
+ .optional()
69
+ .describe('Optional. Creates the task with the specified todo status.'),
66
70
  categoryUUID: z
67
71
  .string()
68
72
  .optional()
@@ -75,6 +79,10 @@ export function createMcpServer(options = {}) {
75
79
  .string()
76
80
  .optional()
77
81
  .describe('Scheduled end date in ISO format.'),
82
+ deadlineDateTime: z
83
+ .string()
84
+ .optional()
85
+ .describe('Deadline date and time in ISO format.'),
78
86
  url: z
79
87
  .string()
80
88
  .optional()
@@ -93,14 +101,18 @@ export function createMcpServer(options = {}) {
93
101
  .string()
94
102
  .uuid()
95
103
  .describe('Task UUID. Please specify the task uuid (todo uuid) obtained from get-tasks-list. You cannot use this tool without specifying it.'),
104
+ taskName: z
105
+ .string()
106
+ .optional()
107
+ .describe('Optional task name. If omitted, the current task name is kept.'),
96
108
  isCompleted: z
97
109
  .boolean()
98
110
  .optional()
99
111
  .describe('Optional. Backward-compatible completion update. true marks the task done. false preserves existing TODO or DOING tasks and reopens DONE tasks to TODO.'),
100
112
  status: z
101
- .enum(['TODO', 'DOING', 'DONE'])
113
+ .enum(['TODO', 'PENDING', 'DOING', 'DONE'])
102
114
  .optional()
103
- .describe('Optional. Updates the todo status directly. Use this to switch tasks between TODO, DOING, and DONE.'),
115
+ .describe('Optional. Updates the todo status directly. Use this to switch tasks between TODO, PENDING, DOING, and DONE.'),
104
116
  scheduledStartDate: z
105
117
  .string()
106
118
  .optional()
@@ -109,6 +121,10 @@ export function createMcpServer(options = {}) {
109
121
  .string()
110
122
  .optional()
111
123
  .describe('Scheduled end date in ISO format. If omitted, the current value is kept.'),
124
+ deadlineDateTime: z
125
+ .string()
126
+ .optional()
127
+ .describe('Deadline date and time in ISO format. If omitted, the current value is kept.'),
112
128
  url: z
113
129
  .string()
114
130
  .optional()
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "togello-mcp-server",
4
- "version": "1.0.34",
4
+ "version": "1.0.36",
5
5
  "description": "MCP server for Togello tasks, calendar memos, calendar events, and activity logs.",
6
6
  "main": "build/index.js",
7
7
  "scripts": {