togello-mcp-server 1.0.19 → 1.0.21
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
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This server implements the Model Context Protocol (MCP) for managing context in applications.
|
|
4
4
|
|
|
5
|
+
https://togello.com/sign
|
|
6
|
+
|
|
5
7
|
## Using npm
|
|
6
8
|
|
|
7
9
|
```
|
|
@@ -18,14 +20,14 @@ This server implements the Model Context Protocol (MCP) for managing context in
|
|
|
18
20
|
}
|
|
19
21
|
```
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
## Features
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
### Resources
|
|
24
26
|
|
|
25
27
|
- category-list: タスクのカテゴリー一覧を提供します。URI: `togello://category-list`
|
|
26
28
|
- activity-item-list: アクティビティ項目の一覧を提供します。URI: `togello://activity-item-list`
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
### Tools
|
|
29
31
|
|
|
30
32
|
- get-tasks-list: TODO 機能で未完了のタスクを取得します。タスク UUID / タスク名 / 予定開始日時 / 予定終了日時 / 優先度 / カテゴリ を認識できます。
|
|
31
33
|
- create-task: TODO 機能で新しいタスクを作成します。タスク名(taskName)を指定する必要があります。カテゴリー UUID(categoryUUID)、予定開始日時(scheduledStartDate)、URL(url)もオプションで指定できます。
|
|
@@ -36,6 +38,13 @@ This server implements the Model Context Protocol (MCP) for managing context in
|
|
|
36
38
|
- get-activity-log-list: 統合機能からアクティビティログのリストを取得します。すべてのログの終了日時が入力されている場合、現在何も実行していないことを意味します。終了日時が null のものがある場合(最大で 1 つ)、現在その活動を実行中であることを意味します。アクティビティログ UUID / 開始日時 / 終了日時 / 項目名 を認識できます。
|
|
37
39
|
- start-activity-log: アクティビティログを開始します。`get-activity-item-list` で取得した項目名(`activityItemName`)を指定する必要があります。`get-activity-log-list` で取得したログリストの全ての `endDateTime` に値がある場合(現在実行中のアクティビティがない場合)に呼び出すことができます。
|
|
38
40
|
- complete-activity-log: アクティビティログを完了します。`get-activity-log-list` で取得した、現在実行中のアクティビティログの UUID(`activityLogUUID`)を指定する必要があります。
|
|
41
|
+
- get-japan-current-time: Returns the current time in Japan (JST). No parameters are required.
|
|
42
|
+
|
|
43
|
+
## MCP Review
|
|
44
|
+
|
|
45
|
+
Certified
|
|
46
|
+
https://mcpreview.com/mcp-servers/toru-takagi/togello-mcp-server
|
|
47
|
+
|
|
39
48
|
|
|
40
49
|
## publish
|
|
41
50
|
|
|
@@ -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
|
+
};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { httpClient } from '../../client.js';
|
|
2
|
-
export const getTodoListHandler = async () => {
|
|
2
|
+
export const getTodoListHandler = async ({ categoryUUIDs }) => {
|
|
3
3
|
try {
|
|
4
|
+
const categoryUUIDArray = categoryUUIDs ?? [];
|
|
5
|
+
const qs = categoryUUIDArray.length > 0
|
|
6
|
+
? `?${categoryUUIDArray.map((u) => `categoryUUID=${encodeURIComponent(u)}`).join('&')}`
|
|
7
|
+
: '';
|
|
4
8
|
const tasks = await httpClient.fetchURL({
|
|
5
|
-
path:
|
|
9
|
+
path: `/v2/integration/todo${qs}`,
|
|
6
10
|
});
|
|
7
11
|
return {
|
|
8
12
|
content: [
|
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';
|
|
@@ -32,7 +33,9 @@ async function main() {
|
|
|
32
33
|
// "togello://activity-item-list",
|
|
33
34
|
// categoryListHandler
|
|
34
35
|
// );
|
|
35
|
-
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', {
|
|
36
|
+
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
|
+
categoryUUIDs: z.array(z.string()).optional().describe('Filters tasks by specified category UUIDs.'),
|
|
38
|
+
}, getTodoListHandler);
|
|
36
39
|
server.tool('create-task', 'Creates a new task in the TODO feature.', {
|
|
37
40
|
taskName: z.string().describe('create task name'),
|
|
38
41
|
categoryUUID: z
|
|
@@ -90,6 +93,7 @@ async function main() {
|
|
|
90
93
|
.string()
|
|
91
94
|
.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.'),
|
|
92
95
|
}, completeActivityLogHandler);
|
|
96
|
+
server.tool('get-japan-current-time', 'Returns the current time in Japan (JST).', {}, getJapanCurrentTimeHandler);
|
|
93
97
|
await server.connect(transport);
|
|
94
98
|
}
|
|
95
99
|
main().catch((error) => {
|