togello-mcp-server 1.0.18 → 1.0.20

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
@@ -36,6 +36,7 @@ This server implements the Model Context Protocol (MCP) for managing context in
36
36
  - get-activity-log-list: 統合機能からアクティビティログのリストを取得します。すべてのログの終了日時が入力されている場合、現在何も実行していないことを意味します。終了日時が null のものがある場合(最大で 1 つ)、現在その活動を実行中であることを意味します。アクティビティログ UUID / 開始日時 / 終了日時 / 項目名 を認識できます。
37
37
  - start-activity-log: アクティビティログを開始します。`get-activity-item-list` で取得した項目名(`activityItemName`)を指定する必要があります。`get-activity-log-list` で取得したログリストの全ての `endDateTime` に値がある場合(現在実行中のアクティビティがない場合)に呼び出すことができます。
38
38
  - complete-activity-log: アクティビティログを完了します。`get-activity-log-list` で取得した、現在実行中のアクティビティログの UUID(`activityLogUUID`)を指定する必要があります。
39
+ - get-japan-current-time: Returns the current time in Japan (JST). No parameters are required.
39
40
 
40
41
  ## publish
41
42
 
@@ -1,5 +1,5 @@
1
1
  import { httpClient } from '../../client.js';
2
- export const createTaskHandler = async ({ taskName, categoryUUID, scheduledStartDate, url, }) => {
2
+ export const createTaskHandler = async ({ taskName, categoryUUID, scheduledStartDate, scheduledEndDate, url, }) => {
3
3
  try {
4
4
  await httpClient.postJson({
5
5
  path: '/v2/integration/todo',
@@ -7,6 +7,7 @@ export const createTaskHandler = async ({ taskName, categoryUUID, scheduledStart
7
7
  label: taskName,
8
8
  categoryUUID: categoryUUID,
9
9
  scheduledStartDate: scheduledStartDate,
10
+ scheduledEndDate: scheduledEndDate,
10
11
  url: url,
11
12
  },
12
13
  });
@@ -0,0 +1,25 @@
1
+ export const getJapanCurrentTimeHandler = async () => {
2
+ try {
3
+ const now = new Date();
4
+ // 日本標準時(JST)でフォーマット
5
+ const jstTime = now.toLocaleString('ja-JP', { timeZone: 'Asia/Tokyo' });
6
+ return {
7
+ content: [
8
+ {
9
+ type: 'text',
10
+ text: `現在の日本時刻(JST)は: ${jstTime}`,
11
+ },
12
+ ],
13
+ };
14
+ }
15
+ catch (error) {
16
+ return {
17
+ content: [
18
+ {
19
+ type: 'text',
20
+ text: `日本時刻取得中にエラーが発生しました: ${error}`,
21
+ },
22
+ ],
23
+ };
24
+ }
25
+ };
@@ -4,6 +4,10 @@ export const getTodayCalendarHandler = async () => {
4
4
  const googleEvents = await httpClient.fetchURL({
5
5
  path: '/v2/integration/google-calendar/event',
6
6
  });
7
+ const tasks = await httpClient.fetchURL({
8
+ path: '/v2/integration/todo',
9
+ });
10
+ const filteredTasks = tasks.filter((task) => task.scheduledStartDate != null);
7
11
  return {
8
12
  content: [
9
13
  {
@@ -21,6 +25,20 @@ export const getTodayCalendarHandler = async () => {
21
25
  ])
22
26
  .join(','),
23
27
  },
28
+ {
29
+ type: 'text',
30
+ text: 'en: The following is a task. The following is the order:[task name, scheduled start date, scheduled end date]',
31
+ },
32
+ {
33
+ type: 'text',
34
+ text: filteredTasks
35
+ .map((task) => [
36
+ task.label,
37
+ task.scheduledStartDate,
38
+ task.scheduledEndDate,
39
+ ])
40
+ .join(','),
41
+ },
24
42
  ],
25
43
  };
26
44
  }
package/build/index.js CHANGED
@@ -6,6 +6,7 @@ import { completeActivityLogHandler } from './handlers/tool/completeActivityLogH
6
6
  import { createTaskHandler } from './handlers/tool/createTaskHandler.js';
7
7
  import { getActivityItemListHandler } from './handlers/tool/getActivityItemListHandler.js';
8
8
  import { getActivityLogListHandler } from './handlers/tool/getActivityLogListHandler.js';
9
+ import { getJapanCurrentTimeHandler } from './handlers/tool/getJapanCurrentTimeHandler.js';
9
10
  import { getTodayCalendarHandler } from './handlers/tool/getTodayCalendarHandler.js';
10
11
  import { getTodoCategoryListHandler } from './handlers/tool/getTodoCategoryListHandler.js';
11
12
  import { getTodoListHandler } from './handlers/tool/getTodoListHandler.js';
@@ -43,6 +44,10 @@ async function main() {
43
44
  .string()
44
45
  .optional()
45
46
  .describe('Scheduled start date in ISO format.'),
47
+ scheduledEndDate: z
48
+ .string()
49
+ .optional()
50
+ .describe('Scheduled end date in ISO format.'),
46
51
  url: z
47
52
  .string()
48
53
  .optional()
@@ -54,19 +59,19 @@ async function main() {
54
59
  .describe('Task UUID. Please specify the task uuid (todo uuid) obtained from get-tasks-list. You cannot use this tool without specifying it.'),
55
60
  isCompleted: z
56
61
  .boolean()
57
- .describe('You can update the completion status of the task. If true, it is completed. If false, it can be reverted to incomplete.'),
62
+ .describe('You can update the completion status of the task. If true, it is completed.'),
58
63
  scheduledStartDate: z
59
64
  .string()
60
65
  .optional()
61
- .describe('Scheduled start date in ISO format.'),
66
+ .describe('Scheduled start date in ISO format.If the user does not specify, the information obtained from get-tasks-list is passed.'),
62
67
  scheduledEndDate: z
63
68
  .string()
64
69
  .optional()
65
- .describe('Scheduled end date in ISO format.'),
70
+ .describe('Scheduled end date in ISO format.If the user does not specify, the information obtained from get-tasks-list is passed.'),
66
71
  url: z
67
72
  .string()
68
73
  .optional()
69
- .describe('Optional URL associated with the task.'),
74
+ .describe('Optional URL associated with the task.If the user does not specify, the information obtained from get-tasks-list is passed.'),
70
75
  }, updateTaskHandler);
71
76
  server.tool('get-todo-category-list', 'Retrieves the list of categories from the TODO feature. Recognizes category name / category UUID', {}, getTodoCategoryListHandler);
72
77
  server.tool('get-today-calendar', 'Retrieves scheduled events for yesterday/today/tomorrow from the linked Google Calendar. Recognizes event name / start date and time / end date and time. ', {}, getTodayCalendarHandler);
@@ -86,6 +91,7 @@ async function main() {
86
91
  .string()
87
92
  .describe('Activity log UUID. Please specify the activityLogUUID obtained from get-activity-log-list. You cannot specify a value that is not in activityLogUUID, so this tool cannot be used.'),
88
93
  }, completeActivityLogHandler);
94
+ server.tool('get-japan-current-time', 'Returns the current time in Japan (JST).', {}, getJapanCurrentTimeHandler);
89
95
  await server.connect(transport);
90
96
  }
91
97
  main().catch((error) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "togello-mcp-server",
4
- "version": "1.0.18",
4
+ "version": "1.0.20",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "build": "tsc && chmod 755 build/index.js",