togello-mcp-server 1.0.23 → 1.0.25

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
@@ -29,9 +29,11 @@ https://togello.com/sign
29
29
 
30
30
  ### Tools
31
31
 
32
- - get-tasks-list: TODO 機能で未完了のタスクを取得します。タスク UUID / タスク名 / 予定開始日時 / 予定終了日時 / 優先度 / カテゴリ を認識できます。
33
- - create-task: TODO 機能で新しいタスクを作成します。タスク名(taskName)を指定する必要があります。カテゴリー UUID(categoryUUID)、予定開始日時(scheduledStartDate)、URL(url)もオプションで指定できます。
34
- - update-task: TODO 機能でタスクを更新します。タスクの完了状態を更新できます。get-tasks-list で取得したタスク UUID を指定する必要があります。
32
+ - get-tasks-list: TODO 機能で未完了のタスクを取得します。タスク UUID / タスク名 / 詳細(detail) / 予定開始日時 / 予定終了日時 / 優先度 / カテゴリ を認識できます。
33
+ - create-task: TODO 機能で新しいタスクを作成します。タスク名(taskName)を指定する必要があります。カテゴリー UUID(categoryUUID)、予定開始日時(scheduledStartDate)、URL(url)、詳細(detail)もオプションで指定できます。
34
+ - update-task: TODO 機能でタスクを更新します。タスクの完了状態に加えて詳細(detail)も更新できます。get-tasks-list で取得したタスク UUID を指定する必要があります。
35
+ - get-calendar-date-memo: カレンダー日付メモ機能から指定日のメモを取得します。`date` とメモ内容を認識できます。
36
+ - update-calendar-date-memo: カレンダー日付メモ機能の指定日のメモを更新します。`date` と `memo` を指定し、空文字または空白のみを渡すとその日のメモを削除できます。
35
37
  - get-todo-category-list: TODO 機能からカテゴリーリストを取得します。カテゴリー名 / カテゴリー UUID を認識できます。
36
38
  - get-today-calendar: 連携している Google カレンダーの昨日/今日/明日の予定を取得します。予定名 / 開始日時 / 終了日時 を認識できます。
37
39
  - get-activity-item-list: 統合機能からアクティビティ項目のリストを取得します。アクティビティ項目 UUID / 項目名 を認識できます。
@@ -1,5 +1,5 @@
1
1
  import { httpClient } from '../../client.js';
2
- export const createTaskHandler = async ({ taskName, categoryUUID, scheduledStartDate, scheduledEndDate, url, }) => {
2
+ export const createTaskHandler = async ({ taskName, categoryUUID, scheduledStartDate, scheduledEndDate, url, detail, }) => {
3
3
  try {
4
4
  await httpClient.postJson({
5
5
  path: '/v2/integration/todo',
@@ -9,6 +9,7 @@ export const createTaskHandler = async ({ taskName, categoryUUID, scheduledStart
9
9
  scheduledStartDate: scheduledStartDate,
10
10
  scheduledEndDate: scheduledEndDate,
11
11
  url: url,
12
+ detail: detail,
12
13
  },
13
14
  });
14
15
  return {
@@ -0,0 +1,28 @@
1
+ import { httpClient } from '../../client.js';
2
+ export const getCalendarDateMemoHandler = async ({ date }) => {
3
+ try {
4
+ const calendarDateMemo = await httpClient.fetchURL({
5
+ path: `/v2/integration/calendar-date-memo/${encodeURIComponent(date)}`,
6
+ });
7
+ return {
8
+ content: [
9
+ {
10
+ type: 'text',
11
+ text: `targetDate: ${calendarDateMemo.targetDate}\nmemo: ${calendarDateMemo.memo ?? ''}`,
12
+ },
13
+ ],
14
+ };
15
+ }
16
+ catch (error) {
17
+ console.error('Error getting calendar date memo:', error);
18
+ return {
19
+ isError: true,
20
+ content: [
21
+ {
22
+ type: 'text',
23
+ text: `Error getting calendar date memo: ${error}`,
24
+ },
25
+ ],
26
+ };
27
+ }
28
+ };
@@ -0,0 +1,27 @@
1
+ import { httpClient } from '../../client.js';
2
+ export const getTodayMemoHandler = async () => {
3
+ try {
4
+ const todayMemo = await httpClient.fetchURL({
5
+ path: '/v2/integration/calendar-date-memo/today',
6
+ });
7
+ return {
8
+ content: [
9
+ {
10
+ type: 'text',
11
+ text: `targetDate: ${todayMemo.targetDate}\nmemo: ${todayMemo.memo ?? ''}`,
12
+ },
13
+ ],
14
+ };
15
+ }
16
+ catch (error) {
17
+ console.error('Error getting today memo:', error);
18
+ return {
19
+ content: [
20
+ {
21
+ type: 'text',
22
+ text: `Error getting today memo: ${error}`,
23
+ },
24
+ ],
25
+ };
26
+ }
27
+ };
@@ -13,7 +13,7 @@ export const getTodoListHandler = async ({ categoryUUIDs }) => {
13
13
  {
14
14
  type: 'text',
15
15
  text: `The following is a single task represented in the order:
16
- [todo uuid, label of the task, scheduled start date, scheduled end date, priority, category of the task, URL associated with the task]`,
16
+ [todo uuid, label of the task, detail of the task, scheduled start date, scheduled end date, priority, category of the task, URL associated with the task]`,
17
17
  },
18
18
  {
19
19
  type: 'text',
@@ -25,6 +25,7 @@ export const getTodoListHandler = async ({ categoryUUIDs }) => {
25
25
  .map((todo) => [
26
26
  todo.todoUUID,
27
27
  todo.label,
28
+ todo.detail,
28
29
  todo.scheduledStartDate,
29
30
  todo.scheduledEndDate,
30
31
  todo.priorityNumber,
@@ -0,0 +1,32 @@
1
+ import { httpClient } from '../../client.js';
2
+ export const updateCalendarDateMemoHandler = async ({ date, memo }) => {
3
+ try {
4
+ const normalizedMemo = memo.trim();
5
+ await httpClient.putJson({
6
+ path: `/v2/integration/calendar-date-memo/${encodeURIComponent(date)}`,
7
+ body: {
8
+ memo: normalizedMemo,
9
+ },
10
+ });
11
+ return {
12
+ content: [
13
+ {
14
+ type: 'text',
15
+ text: 'Calendar date memo updated successfully.',
16
+ },
17
+ ],
18
+ };
19
+ }
20
+ catch (error) {
21
+ console.error('Error updating calendar date memo:', error);
22
+ return {
23
+ isError: true,
24
+ content: [
25
+ {
26
+ type: 'text',
27
+ text: `Error updating calendar date memo: ${error}`,
28
+ },
29
+ ],
30
+ };
31
+ }
32
+ };
@@ -1,5 +1,5 @@
1
1
  import { httpClient } from '../../client.js';
2
- export const updateTaskHandler = async ({ todoUUID, isCompleted, scheduledStartDate, scheduledEndDate, url, }) => {
2
+ export const updateTaskHandler = async ({ todoUUID, isCompleted, scheduledStartDate, scheduledEndDate, url, detail, }) => {
3
3
  try {
4
4
  await httpClient.putJson({
5
5
  path: `/v2/integration/todo/${todoUUID}`,
@@ -8,6 +8,7 @@ export const updateTaskHandler = async ({ todoUUID, isCompleted, scheduledStartD
8
8
  scheduledStartDate,
9
9
  scheduledEndDate,
10
10
  url,
11
+ detail,
11
12
  },
12
13
  });
13
14
  return {
@@ -0,0 +1,30 @@
1
+ import { httpClient } from '../../client.js';
2
+ export const updateTodayMemoHandler = async ({ memo }) => {
3
+ try {
4
+ await httpClient.putJson({
5
+ path: '/v2/integration/calendar-date-memo/today',
6
+ body: {
7
+ memo,
8
+ },
9
+ });
10
+ return {
11
+ content: [
12
+ {
13
+ type: 'text',
14
+ text: 'Today memo updated successfully.',
15
+ },
16
+ ],
17
+ };
18
+ }
19
+ catch (error) {
20
+ console.error('Error updating today memo:', error);
21
+ return {
22
+ content: [
23
+ {
24
+ type: 'text',
25
+ text: `Error updating today memo: ${error}`,
26
+ },
27
+ ],
28
+ };
29
+ }
30
+ };
@@ -5,12 +5,17 @@ import { completeActivityLogHandler } from './handlers/tool/completeActivityLogH
5
5
  import { createTaskHandler } from './handlers/tool/createTaskHandler.js';
6
6
  import { getActivityItemListHandler } from './handlers/tool/getActivityItemListHandler.js';
7
7
  import { getActivityLogListHandler } from './handlers/tool/getActivityLogListHandler.js';
8
+ import { getCalendarDateMemoHandler } from './handlers/tool/getCalendarDateMemoHandler.js';
8
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';
12
13
  import { startActivityLogHandler } from './handlers/tool/startActivityLogHandler.js';
14
+ import { updateCalendarDateMemoHandler } from './handlers/tool/updateCalendarDateMemoHandler.js';
13
15
  import { updateTaskHandler } from './handlers/tool/updateTaskHandler.js';
16
+ const calendarDateMemoDateSchema = z
17
+ .string()
18
+ .regex(/^\d{4}-\d{2}-\d{2}$/, 'Invalid date format, expected YYYY-MM-DD');
14
19
  function withUpstreamToken(cb, resolveUpstreamToken) {
15
20
  return async (args, extra) => {
16
21
  const token = resolveUpstreamToken?.(extra.sessionId);
@@ -29,7 +34,7 @@ export function createMcpServer(options = {}) {
29
34
  tools: {},
30
35
  },
31
36
  });
32
- server.tool('get-tasks-list', 'Retrieves incomplete tasks from the TODO feature. Recognizes task uuid / task name / scheduled start date and time / scheduled end date and time / priority / category', {
37
+ server.tool('get-tasks-list', 'Retrieves incomplete tasks from the TODO feature. Recognizes task uuid / task name / detail / scheduled start date and time / scheduled end date and time / priority / category', {
33
38
  categoryUUIDs: z.array(z.string()).optional().describe('Filters tasks by specified category UUIDs.'),
34
39
  }, withUpstreamToken(getTodoListHandler, options.resolveUpstreamToken));
35
40
  server.tool('create-task', 'Creates a new task in the TODO feature.', {
@@ -41,6 +46,7 @@ export function createMcpServer(options = {}) {
41
46
  scheduledStartDate: z.string().optional().describe('Scheduled start date in ISO format.'),
42
47
  scheduledEndDate: z.string().optional().describe('Scheduled end date in ISO format.'),
43
48
  url: z.string().optional().describe('Optional URL associated with the task.'),
49
+ detail: z.string().optional().describe('Optional detail associated with the task.'),
44
50
  }, withUpstreamToken(createTaskHandler, options.resolveUpstreamToken));
45
51
  server.tool('update-task', 'Updates a task in the TODO feature.', {
46
52
  todoUUID: z
@@ -61,7 +67,20 @@ export function createMcpServer(options = {}) {
61
67
  .string()
62
68
  .optional()
63
69
  .describe('Optional URL associated with the task. If the user does not specify, the information obtained from get-tasks-list is passed.'),
70
+ detail: z
71
+ .string()
72
+ .optional()
73
+ .describe('Optional detail associated with the task. If the user does not specify, the information obtained from get-tasks-list is passed.'),
64
74
  }, withUpstreamToken(updateTaskHandler, options.resolveUpstreamToken));
75
+ server.tool('get-calendar-date-memo', 'Retrieves a calendar date memo for the specified date. Recognizes target date and memo content.', {
76
+ date: calendarDateMemoDateSchema.describe('Target date in YYYY-MM-DD format.'),
77
+ }, withUpstreamToken(getCalendarDateMemoHandler, options.resolveUpstreamToken));
78
+ server.tool('update-calendar-date-memo', 'Updates a calendar date memo for the specified date.', {
79
+ date: calendarDateMemoDateSchema.describe('Target date in YYYY-MM-DD format.'),
80
+ memo: z
81
+ .string()
82
+ .describe('Memo content for the date. Pass an empty or whitespace-only string to clear the memo.'),
83
+ }, withUpstreamToken(updateCalendarDateMemoHandler, options.resolveUpstreamToken));
65
84
  server.tool('get-todo-category-list', 'Retrieves the list of categories from the TODO feature. Recognizes category name / category UUID', {}, withUpstreamToken(getTodoCategoryListHandler, options.resolveUpstreamToken));
66
85
  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. ', {}, withUpstreamToken(getTodayCalendarHandler, options.resolveUpstreamToken));
67
86
  server.tool('get-activity-item-list', 'Retrieves the list of activity items from the integration feature. Recognizes activity item UUID / item name', {}, withUpstreamToken(getActivityItemListHandler, options.resolveUpstreamToken));
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "togello-mcp-server",
4
- "version": "1.0.23",
4
+ "version": "1.0.25",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "build": "tsc && chmod 755 build/index.js",
8
+ "codex:preclone": "bash scripts/codex-cloud/preclone.sh",
8
9
  "start": "node build/index.js",
9
10
  "test": "echo \"Error: no test specified\" && exit 1"
10
11
  },