togello-mcp-server 1.0.11 → 1.0.12
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 +1 -1
- package/build/handlers/tool/createTaskHandler.js +3 -1
- package/build/index.js +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ This server implements the Model Context Protocol (MCP) for managing context in
|
|
|
28
28
|
## Tools
|
|
29
29
|
|
|
30
30
|
- get-tasks-list: TODO機能で未完了のタスクを取得します。タスクUUID / タスク名 / 予定開始日時 / 予定終了日時 / 優先度 / カテゴリ を認識できます。
|
|
31
|
-
- create-task: TODO
|
|
31
|
+
- create-task: TODO機能で新しいタスクを作成します。タスク名(taskName)を指定する必要があります。カテゴリーUUID(categoryUUID)、予定開始日時(scheduledStartDate)、URL(url)もオプションで指定できます。
|
|
32
32
|
- update-task: TODO機能でタスクを更新します。タスクの完了状態を更新できます。get-tasks-listで取得したタスクUUIDを指定する必要があります。
|
|
33
33
|
- get-todo-category-list: TODO機能からカテゴリーリストを取得します。カテゴリー名 / カテゴリーUUID を認識できます。
|
|
34
34
|
- get-today-calendar: 連携しているGoogleカレンダーの昨日/今日/明日の予定を取得します。予定名 / 開始日時 / 終了日時 を認識できます。
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { httpClient } from '../../client.js';
|
|
2
|
-
export const createTaskHandler = async ({ taskName, categoryUUID, }) => {
|
|
2
|
+
export const createTaskHandler = async ({ taskName, categoryUUID, scheduledStartDate, url, }) => {
|
|
3
3
|
try {
|
|
4
4
|
await httpClient.postJson({
|
|
5
5
|
path: '/v2/integration/todo',
|
|
6
6
|
body: {
|
|
7
7
|
label: taskName,
|
|
8
8
|
categoryUUID: categoryUUID,
|
|
9
|
+
scheduledStartDate: scheduledStartDate,
|
|
10
|
+
url: url,
|
|
9
11
|
},
|
|
10
12
|
});
|
|
11
13
|
return {
|
package/build/index.js
CHANGED
|
@@ -39,6 +39,14 @@ async function main() {
|
|
|
39
39
|
.string()
|
|
40
40
|
.optional()
|
|
41
41
|
.describe('category UUID. category UUID of get-todo-category-list'),
|
|
42
|
+
scheduledStartDate: z
|
|
43
|
+
.string()
|
|
44
|
+
.optional()
|
|
45
|
+
.describe('Scheduled start date in ISO format.'),
|
|
46
|
+
url: z
|
|
47
|
+
.string()
|
|
48
|
+
.optional()
|
|
49
|
+
.describe('Optional URL associated with the task.'),
|
|
42
50
|
}, createTaskHandler);
|
|
43
51
|
server.tool('update-task', 'Updates a task in the TODO feature.', {
|
|
44
52
|
todoUUID: z
|