togello-mcp-server 1.0.9 → 1.0.10
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
|
@@ -27,8 +27,9 @@ This server implements the Model Context Protocol (MCP) for managing context in
|
|
|
27
27
|
|
|
28
28
|
## Tools
|
|
29
29
|
|
|
30
|
-
- get-tasks-list: TODO
|
|
30
|
+
- get-tasks-list: TODO機能で未完了のタスクを取得します。タスクUUID / タスク名 / 予定開始日時 / 予定終了日時 / 優先度 / カテゴリ を認識できます。
|
|
31
31
|
- create-task: TODO機能で新しいタスクを作成します。タスク名を指定する必要があります。
|
|
32
|
+
- update-task: TODO機能でタスクを更新します。タスクの完了状態を更新できます。get-tasks-listで取得したタスクUUIDを指定する必要があります。
|
|
32
33
|
- get-todo-category-list: TODO機能からカテゴリーリストを取得します。カテゴリー名 / カテゴリーUUID を認識できます。
|
|
33
34
|
- get-today-calendar: 連携しているGoogleカレンダーの昨日/今日/明日の予定を取得します。予定名 / 開始日時 / 終了日時 を認識できます。
|
|
34
35
|
- get-activity-item-list: 統合機能からアクティビティ項目のリストを取得します。アクティビティ項目UUID / 項目名 を認識できます。
|
|
@@ -9,7 +9,7 @@ export const getTodoListHandler = async ({}) => {
|
|
|
9
9
|
{
|
|
10
10
|
type: "text",
|
|
11
11
|
text: `The following is a single task represented in the order:
|
|
12
|
-
[label of the task, scheduled start date, scheduled end date, priority, category of the task]`,
|
|
12
|
+
[todo uuid, label of the task, scheduled start date, scheduled end date, priority, category of the task]`,
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
type: "text",
|
|
@@ -19,6 +19,7 @@ export const getTodoListHandler = async ({}) => {
|
|
|
19
19
|
type: "text",
|
|
20
20
|
text: tasks
|
|
21
21
|
.map((todo) => [
|
|
22
|
+
todo.todoUUID,
|
|
22
23
|
todo.label,
|
|
23
24
|
todo.scheduledStartDate,
|
|
24
25
|
todo.scheduledEndDate,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { httpClient } from "../../client.js";
|
|
2
|
+
export const updateTaskHandler = async ({ todoUUID, isCompleted, }) => {
|
|
3
|
+
try {
|
|
4
|
+
await httpClient.putJson({
|
|
5
|
+
path: `/v2/integration/todo/${todoUUID}`,
|
|
6
|
+
body: {
|
|
7
|
+
isCompleted,
|
|
8
|
+
},
|
|
9
|
+
});
|
|
10
|
+
return {
|
|
11
|
+
content: [
|
|
12
|
+
{
|
|
13
|
+
type: "text",
|
|
14
|
+
text: `Task status updated successfully. Task is now ${isCompleted ? "completed" : "incomplete"}.`,
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
console.error("Error updating task:", error);
|
|
21
|
+
return {
|
|
22
|
+
content: [
|
|
23
|
+
{
|
|
24
|
+
type: "text",
|
|
25
|
+
text: `Error updating task: ${error}`,
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
};
|
package/build/index.js
CHANGED
|
@@ -10,6 +10,7 @@ import { getTodayCalendarHandler } from "./handlers/tool/getTodayCalendarHandler
|
|
|
10
10
|
import { getTodoCategoryListHandler } from "./handlers/tool/getTodoCategoryListHandler.js";
|
|
11
11
|
import { getTodoListHandler } from "./handlers/tool/getTodoListHandler.js";
|
|
12
12
|
import { startActivityLogHandler } from "./handlers/tool/startActivityLogHandler.js";
|
|
13
|
+
import { updateTaskHandler } from "./handlers/tool/updateTaskHandler.js";
|
|
13
14
|
const server = new McpServer({
|
|
14
15
|
name: "togello",
|
|
15
16
|
version: "1.0.0",
|
|
@@ -31,7 +32,7 @@ async function main() {
|
|
|
31
32
|
// "togello://activity-item-list",
|
|
32
33
|
// categoryListHandler
|
|
33
34
|
// );
|
|
34
|
-
server.tool("get-tasks-list", "Retrieves incomplete tasks from the TODO feature. Recognizes task name / scheduled start date and time / scheduled end date and time / priority / category", {}, getTodoListHandler);
|
|
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", {}, getTodoListHandler);
|
|
35
36
|
server.tool("create-task", "Creates a new task in the TODO feature.", {
|
|
36
37
|
taskName: z.string().describe("create task name"),
|
|
37
38
|
categoryUUID: z
|
|
@@ -39,6 +40,14 @@ async function main() {
|
|
|
39
40
|
.optional()
|
|
40
41
|
.describe("category UUID. category UUID of get-todo-category-list"),
|
|
41
42
|
}, createTaskHandler);
|
|
43
|
+
server.tool("update-task", "Updates a task in the TODO feature.", {
|
|
44
|
+
todoUUID: z
|
|
45
|
+
.string()
|
|
46
|
+
.describe("Task UUID. Please specify the task uuid (todo uuid) obtained from get-tasks-list. You cannot use this tool without specifying it."),
|
|
47
|
+
isCompleted: z
|
|
48
|
+
.boolean()
|
|
49
|
+
.describe("You can update the completion status of the task. If true, it is completed. If false, it can be reverted to incomplete."),
|
|
50
|
+
}, updateTaskHandler);
|
|
42
51
|
server.tool("get-todo-category-list", "Retrieves the list of categories from the TODO feature. Recognizes category name / category UUID", {}, getTodoCategoryListHandler);
|
|
43
52
|
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);
|
|
44
53
|
server.tool("get-activity-item-list", "Retrieves the list of activity items from the integration feature. Recognizes activity item UUID / item name", {}, getActivityItemListHandler);
|