@impv_npm/task-manager-mcp 1.0.1 → 1.2.0
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 +0 -50
- package/dist/index.js +0 -0
- package/dist/tools.js +33 -0
- package/package.json +7 -8
package/README.md
CHANGED
|
@@ -203,56 +203,6 @@ npx -y @impv_npm/task-manager-mcp
|
|
|
203
203
|
}
|
|
204
204
|
```
|
|
205
205
|
|
|
206
|
-
## 活用例
|
|
207
|
-
|
|
208
|
-
### 1. 朝の業務開始
|
|
209
|
-
|
|
210
|
-
```
|
|
211
|
-
「業務を開始して」
|
|
212
|
-
→ work_start が呼ばれ、Slackステータスが業務中に更新される
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
### 2. タスクの確認と着手
|
|
216
|
-
|
|
217
|
-
```
|
|
218
|
-
「今日やるべきタスクを教えて」
|
|
219
|
-
→ task_advise が呼ばれ、優先度の高いタスクが提案される
|
|
220
|
-
|
|
221
|
-
「タスク#123を開始する」
|
|
222
|
-
→ task_start が呼ばれ、ステータスがIn Progressに変更される
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
### 3. タスクの作成
|
|
226
|
-
|
|
227
|
-
```
|
|
228
|
-
「Acme社のダッシュボードにグラフ追加するタスクを作成して」
|
|
229
|
-
→ task_add が呼ばれ、新しいタスクが作成される
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
### 4. タスク一覧の確認
|
|
233
|
-
|
|
234
|
-
```
|
|
235
|
-
「進行中のタスク一覧を見せて」
|
|
236
|
-
→ task_list が status: "In Progress" で呼ばれる
|
|
237
|
-
|
|
238
|
-
「Acme社のタスクを教えて」
|
|
239
|
-
→ task_list が client: "Acme" で呼ばれる
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
### 5. タスクの完了
|
|
243
|
-
|
|
244
|
-
```
|
|
245
|
-
「タスク#123を完了した」
|
|
246
|
-
→ task_end が呼ばれ、ステータスがDoneに変更される
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
### 6. 業務終了
|
|
250
|
-
|
|
251
|
-
```
|
|
252
|
-
「業務終了」
|
|
253
|
-
→ work_end が呼ばれ、Slackステータスがクリアされる
|
|
254
|
-
```
|
|
255
|
-
|
|
256
206
|
## トラブルシューティング
|
|
257
207
|
|
|
258
208
|
### APIキーのエラー
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/tools.js
CHANGED
|
@@ -80,6 +80,23 @@ export function registerTools(server, client) {
|
|
|
80
80
|
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
81
81
|
};
|
|
82
82
|
});
|
|
83
|
+
// task_edit - タスク編集
|
|
84
|
+
server.tool("task_edit", "既存タスクの内容を編集します。変更したいフィールドのみ指定してください。", {
|
|
85
|
+
taskNumber: z.number().describe("タスク番号(#123の123部分)"),
|
|
86
|
+
title: z.string().optional().describe("タスクのタイトル"),
|
|
87
|
+
body: z.string().optional().describe("タスクの説明"),
|
|
88
|
+
client: z.string().optional().describe("クライアント名"),
|
|
89
|
+
project: z.string().optional().describe("プロジェクト名"),
|
|
90
|
+
dueDate: z.string().optional().nullable().describe("期日(YYYY-MM-DD形式)。nullで期日を削除"),
|
|
91
|
+
assignees: z.array(z.string()).optional().describe("担当者のログイン名リスト"),
|
|
92
|
+
ticketUrl: z.string().optional().nullable().describe("関連チケットURL。nullで削除"),
|
|
93
|
+
requestSourceUrl: z.string().optional().nullable().describe("依頼元URL。nullで削除"),
|
|
94
|
+
}, async (params) => {
|
|
95
|
+
const result = await client.call("task_edit", params);
|
|
96
|
+
return {
|
|
97
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
98
|
+
};
|
|
99
|
+
});
|
|
83
100
|
// task_advise - 次のタスク提案
|
|
84
101
|
server.tool("task_advise", "優先度と期日に基づいて、次に取り組むべきタスクを提案します。", {
|
|
85
102
|
assignee: z.string().optional().describe("担当者名でフィルタ"),
|
|
@@ -127,4 +144,20 @@ export function registerTools(server, client) {
|
|
|
127
144
|
],
|
|
128
145
|
};
|
|
129
146
|
});
|
|
147
|
+
// list_clients - クライアント一覧取得
|
|
148
|
+
server.tool("list_clients", "既存のクライアント名一覧を取得します。タスク作成時に表記ブレを防ぐために使用してください。", {}, async () => {
|
|
149
|
+
const result = await client.call("list_clients", {});
|
|
150
|
+
return {
|
|
151
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
152
|
+
};
|
|
153
|
+
});
|
|
154
|
+
// list_projects - プロジェクト一覧取得
|
|
155
|
+
server.tool("list_projects", "既存のプロジェクト名一覧を取得します。タスク作成時に表記ブレを防ぐために使用してください。", {
|
|
156
|
+
client: z.string().optional().describe("クライアント名でフィルタ(指定しない場合は全て)"),
|
|
157
|
+
}, async (params) => {
|
|
158
|
+
const result = await client.call("list_projects", params);
|
|
159
|
+
return {
|
|
160
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
161
|
+
};
|
|
162
|
+
});
|
|
130
163
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impv_npm/task-manager-mcp",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -9,12 +9,6 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsc",
|
|
14
|
-
"start": "node dist/index.js",
|
|
15
|
-
"dev": "tsx src/index.ts",
|
|
16
|
-
"prepublishOnly": "pnpm build"
|
|
17
|
-
},
|
|
18
12
|
"dependencies": {
|
|
19
13
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
20
14
|
"zod": "^4.3.6"
|
|
@@ -26,5 +20,10 @@
|
|
|
26
20
|
},
|
|
27
21
|
"publishConfig": {
|
|
28
22
|
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsc",
|
|
26
|
+
"start": "node dist/index.js",
|
|
27
|
+
"dev": "tsx src/index.ts"
|
|
29
28
|
}
|
|
30
|
-
}
|
|
29
|
+
}
|