@dod/planax-mcp 0.1.3 → 0.1.5
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/dist/tools/document.tools.js +16 -5
- package/dist/tools/folder.tools.js +56 -56
- package/dist/tools/plan.tools.js +140 -140
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -133,7 +133,7 @@ env = { PLANAX_ACCESS_TOKEN = "your_token_here" }
|
|
|
133
133
|
- `document_get` - 문서 상세 정보
|
|
134
134
|
- `document_create_markdown` - Markdown 문서 생성
|
|
135
135
|
- `document_get_markdown_content` - Markdown 문서 내용 조회
|
|
136
|
-
- `document_update_markdown_content` - Markdown 문서 내용 수정
|
|
136
|
+
- `document_update_markdown_content` - Markdown 문서 내용 수정 (기본은 현재 버전 덮어쓰기, `createNewVersion: true` 면 새 버전 + 변경 사유)
|
|
137
137
|
- `document_upload` - 파일(PDF, Word, Excel, 이미지 등) 업로드
|
|
138
138
|
- `document_replace_file` - 기존 문서의 파일을 새 파일로 교체 (새 버전으로 올라가고 이전 버전은 이력에 남음)
|
|
139
139
|
- `document_create_placeholder` - 나중에 채울 자리표시 문서 생성
|
|
@@ -369,19 +369,21 @@ export function register({ server, apiClient }) {
|
|
|
369
369
|
|
|
370
370
|
**Note:**
|
|
371
371
|
- Only works for documents with type MARKDOWN
|
|
372
|
-
-
|
|
372
|
+
- By default, overwrites the content of the current version (the version number does not change, changeReason is ignored)
|
|
373
|
+
- Set createNewVersion: true to create a new version; changeReason is then recorded in the version history
|
|
373
374
|
|
|
374
375
|
**Examples:**
|
|
375
|
-
1.
|
|
376
|
+
1. Overwrite the current version:
|
|
376
377
|
{
|
|
377
378
|
documentId: "...",
|
|
378
379
|
content: "# Updated Title\\n\\nNew content here..."
|
|
379
380
|
}
|
|
380
381
|
|
|
381
|
-
2.
|
|
382
|
+
2. Create a new version with a change reason:
|
|
382
383
|
{
|
|
383
384
|
documentId: "...",
|
|
384
385
|
content: "# Protocol v2\\n\\nUpdated protocol...",
|
|
386
|
+
createNewVersion: true,
|
|
385
387
|
changeReason: "Updated based on review feedback"
|
|
386
388
|
}
|
|
387
389
|
|
|
@@ -390,12 +392,21 @@ export function register({ server, apiClient }) {
|
|
|
390
392
|
projectId: z.string().uuid().describe('Project ID (UUID)'),
|
|
391
393
|
documentId: z.string().uuid().describe('Document ID (UUID) - must be MARKDOWN type'),
|
|
392
394
|
content: z.string().describe('New markdown content'),
|
|
393
|
-
|
|
395
|
+
createNewVersion: z
|
|
396
|
+
.boolean()
|
|
397
|
+
.optional()
|
|
398
|
+
.describe('true: create a new version. false or omitted (default): overwrite the current version'),
|
|
399
|
+
changeReason: z
|
|
400
|
+
.string()
|
|
401
|
+
.max(500)
|
|
402
|
+
.optional()
|
|
403
|
+
.describe('Reason for the change, recorded in the version history. Used only when createNewVersion is true'),
|
|
394
404
|
},
|
|
395
|
-
}, async ({ projectId, documentId, content, changeReason }) => {
|
|
405
|
+
}, async ({ projectId, documentId, content, createNewVersion, changeReason }) => {
|
|
396
406
|
try {
|
|
397
407
|
const result = await apiClient.patch(`/projects/${projectId}/documents/${documentId}/content`, {
|
|
398
408
|
content,
|
|
409
|
+
createNewVersion: createNewVersion ?? false,
|
|
399
410
|
changeReason,
|
|
400
411
|
});
|
|
401
412
|
return successResponse(result, 'Markdown content updated successfully');
|
|
@@ -17,14 +17,14 @@ const FolderColorSchema = z.enum(['blue', 'green', 'yellow', 'orange', 'red', 'p
|
|
|
17
17
|
export function register({ server, apiClient }) {
|
|
18
18
|
// ===== Folder List/Tree Operations =====
|
|
19
19
|
server.registerTool('folder_list', {
|
|
20
|
-
description: `List all folders in a project as a tree structure.
|
|
21
|
-
|
|
22
|
-
**Purpose:** 프로젝트의 문서 저장 폴더 구조를 조회합니다.
|
|
23
|
-
|
|
24
|
-
**Note:** Folder는 Plan의 Phase와 독립적입니다.
|
|
25
|
-
- Phase: 프로젝트 단계/일정 (언제/무엇을)
|
|
26
|
-
- Folder: 문서 저장 위치 (어디에)
|
|
27
|
-
|
|
20
|
+
description: `List all folders in a project as a tree structure.
|
|
21
|
+
|
|
22
|
+
**Purpose:** 프로젝트의 문서 저장 폴더 구조를 조회합니다.
|
|
23
|
+
|
|
24
|
+
**Note:** Folder는 Plan의 Phase와 독립적입니다.
|
|
25
|
+
- Phase: 프로젝트 단계/일정 (언제/무엇을)
|
|
26
|
+
- Folder: 문서 저장 위치 (어디에)
|
|
27
|
+
|
|
28
28
|
**Returns:** Root folders with nested subFolders as tree structure`,
|
|
29
29
|
inputSchema: {
|
|
30
30
|
projectId: z.string().uuid().describe('Project ID (UUID)'),
|
|
@@ -55,23 +55,23 @@ export function register({ server, apiClient }) {
|
|
|
55
55
|
});
|
|
56
56
|
// ===== Folder CRUD Operations =====
|
|
57
57
|
server.registerTool('folder_create', {
|
|
58
|
-
description: `Create a new folder in a project. Can create root folders or subfolders.
|
|
59
|
-
|
|
60
|
-
**Purpose:** 문서를 정리할 폴더를 생성합니다.
|
|
61
|
-
|
|
62
|
-
**Usage:**
|
|
63
|
-
- Root folder: parentFolderId 생략
|
|
64
|
-
- Subfolder: parentFolderId에 상위 폴더 ID 지정
|
|
65
|
-
|
|
66
|
-
**Examples:**
|
|
67
|
-
1. Root folder 생성:
|
|
68
|
-
{ projectId: "...", name: "01. Regulatory", color: "blue" }
|
|
69
|
-
|
|
70
|
-
2. Subfolder 생성:
|
|
71
|
-
{ projectId: "...", name: "FDA Submissions", parentFolderId: "..." }
|
|
72
|
-
|
|
73
|
-
**Colors:** blue, green, yellow, orange, red, purple, pink, gray
|
|
74
|
-
|
|
58
|
+
description: `Create a new folder in a project. Can create root folders or subfolders.
|
|
59
|
+
|
|
60
|
+
**Purpose:** 문서를 정리할 폴더를 생성합니다.
|
|
61
|
+
|
|
62
|
+
**Usage:**
|
|
63
|
+
- Root folder: parentFolderId 생략
|
|
64
|
+
- Subfolder: parentFolderId에 상위 폴더 ID 지정
|
|
65
|
+
|
|
66
|
+
**Examples:**
|
|
67
|
+
1. Root folder 생성:
|
|
68
|
+
{ projectId: "...", name: "01. Regulatory", color: "blue" }
|
|
69
|
+
|
|
70
|
+
2. Subfolder 생성:
|
|
71
|
+
{ projectId: "...", name: "FDA Submissions", parentFolderId: "..." }
|
|
72
|
+
|
|
73
|
+
**Colors:** blue, green, yellow, orange, red, purple, pink, gray
|
|
74
|
+
|
|
75
75
|
**Returns:** Created folder with id, name, color, and hierarchy info`,
|
|
76
76
|
inputSchema: {
|
|
77
77
|
projectId: z.string().uuid().describe('Project ID (UUID)'),
|
|
@@ -96,21 +96,21 @@ export function register({ server, apiClient }) {
|
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
server.registerTool('folder_update', {
|
|
99
|
-
description: `Update an existing folder.
|
|
100
|
-
|
|
101
|
-
**Usage:**
|
|
102
|
-
- 이름/설명/색상 변경
|
|
103
|
-
- 다른 폴더 하위로 이동 (parentFolderId 변경)
|
|
104
|
-
- Root로 이동 (parentFolderId: null)
|
|
105
|
-
|
|
106
|
-
**Examples:**
|
|
107
|
-
1. 이름/색상 변경:
|
|
108
|
-
{ projectId: "...", folderId: "...", name: "New Name", color: "purple" }
|
|
109
|
-
|
|
110
|
-
2. 다른 폴더로 이동:
|
|
111
|
-
{ projectId: "...", folderId: "...", parentFolderId: "new-parent-uuid" }
|
|
112
|
-
|
|
113
|
-
3. Root로 이동:
|
|
99
|
+
description: `Update an existing folder.
|
|
100
|
+
|
|
101
|
+
**Usage:**
|
|
102
|
+
- 이름/설명/색상 변경
|
|
103
|
+
- 다른 폴더 하위로 이동 (parentFolderId 변경)
|
|
104
|
+
- Root로 이동 (parentFolderId: null)
|
|
105
|
+
|
|
106
|
+
**Examples:**
|
|
107
|
+
1. 이름/색상 변경:
|
|
108
|
+
{ projectId: "...", folderId: "...", name: "New Name", color: "purple" }
|
|
109
|
+
|
|
110
|
+
2. 다른 폴더로 이동:
|
|
111
|
+
{ projectId: "...", folderId: "...", parentFolderId: "new-parent-uuid" }
|
|
112
|
+
|
|
113
|
+
3. Root로 이동:
|
|
114
114
|
{ projectId: "...", folderId: "...", parentFolderId: null }`,
|
|
115
115
|
inputSchema: {
|
|
116
116
|
projectId: z.string().uuid().describe('Project ID (UUID)'),
|
|
@@ -139,13 +139,13 @@ export function register({ server, apiClient }) {
|
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
141
|
server.registerTool('folder_delete', {
|
|
142
|
-
description: `Delete a folder.
|
|
143
|
-
|
|
144
|
-
**Constraints:**
|
|
145
|
-
- 폴더가 비어있어야 삭제 가능
|
|
146
|
-
- 하위 폴더가 있으면 삭제 불가
|
|
147
|
-
- 문서가 있으면 삭제 불가
|
|
148
|
-
|
|
142
|
+
description: `Delete a folder.
|
|
143
|
+
|
|
144
|
+
**Constraints:**
|
|
145
|
+
- 폴더가 비어있어야 삭제 가능
|
|
146
|
+
- 하위 폴더가 있으면 삭제 불가
|
|
147
|
+
- 문서가 있으면 삭제 불가
|
|
148
|
+
|
|
149
149
|
**Tip:** 하위 항목을 먼저 이동하거나 삭제 후 폴더 삭제`,
|
|
150
150
|
inputSchema: {
|
|
151
151
|
projectId: z.string().uuid().describe('Project ID (UUID)'),
|
|
@@ -162,15 +162,15 @@ export function register({ server, apiClient }) {
|
|
|
162
162
|
});
|
|
163
163
|
// ===== Folder Path/Navigation =====
|
|
164
164
|
server.registerTool('folder_get_path', {
|
|
165
|
-
description: `Get the breadcrumb path for a folder.
|
|
166
|
-
|
|
167
|
-
**Returns:** Array of folders from root to target folder
|
|
168
|
-
|
|
169
|
-
**Example Response:**
|
|
170
|
-
[
|
|
171
|
-
{ "id": "root-uuid", "name": "Research Documents" },
|
|
172
|
-
{ "id": "sub-uuid", "name": "Literature Review" },
|
|
173
|
-
{ "id": "target-uuid", "name": "2024 Papers" }
|
|
165
|
+
description: `Get the breadcrumb path for a folder.
|
|
166
|
+
|
|
167
|
+
**Returns:** Array of folders from root to target folder
|
|
168
|
+
|
|
169
|
+
**Example Response:**
|
|
170
|
+
[
|
|
171
|
+
{ "id": "root-uuid", "name": "Research Documents" },
|
|
172
|
+
{ "id": "sub-uuid", "name": "Literature Review" },
|
|
173
|
+
{ "id": "target-uuid", "name": "2024 Papers" }
|
|
174
174
|
]`,
|
|
175
175
|
inputSchema: {
|
|
176
176
|
projectId: z.string().uuid().describe('Project ID (UUID)'),
|
package/dist/tools/plan.tools.js
CHANGED
|
@@ -13,16 +13,16 @@ import { successResponse, errorResponse } from './types.js';
|
|
|
13
13
|
export function register({ server, apiClient }) {
|
|
14
14
|
// ===== Plan Basic Operations =====
|
|
15
15
|
server.registerTool('plan_check_exists', {
|
|
16
|
-
description: `Check if a plan exists for the project.
|
|
17
|
-
|
|
18
|
-
**When to use:**
|
|
19
|
-
- Before creating a new plan, check if one already exists
|
|
20
|
-
- Determine if plan-related operations are available
|
|
21
|
-
|
|
22
|
-
**Examples:**
|
|
23
|
-
1. Check plan existence:
|
|
24
|
-
{ projectId: "project-uuid" }
|
|
25
|
-
|
|
16
|
+
description: `Check if a plan exists for the project.
|
|
17
|
+
|
|
18
|
+
**When to use:**
|
|
19
|
+
- Before creating a new plan, check if one already exists
|
|
20
|
+
- Determine if plan-related operations are available
|
|
21
|
+
|
|
22
|
+
**Examples:**
|
|
23
|
+
1. Check plan existence:
|
|
24
|
+
{ projectId: "project-uuid" }
|
|
25
|
+
|
|
26
26
|
**Returns:** { exists: boolean }`,
|
|
27
27
|
inputSchema: {
|
|
28
28
|
projectId: z.string().uuid().describe('Project ID (UUID)'),
|
|
@@ -37,20 +37,20 @@ export function register({ server, apiClient }) {
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
server.registerTool('plan_create', {
|
|
40
|
-
description: `Create a new plan for the project (from template or blank).
|
|
41
|
-
|
|
42
|
-
**When to use:**
|
|
43
|
-
- Initialize project planning by creating a plan structure
|
|
44
|
-
- Start a new project with predefined phases from a template
|
|
45
|
-
- Create a blank plan to build custom structure
|
|
46
|
-
|
|
47
|
-
**Examples:**
|
|
48
|
-
1. Create blank plan:
|
|
49
|
-
{ projectId: "..." }
|
|
50
|
-
|
|
51
|
-
2. Create from template:
|
|
52
|
-
{ projectId: "...", templateId: "template-uuid" }
|
|
53
|
-
|
|
40
|
+
description: `Create a new plan for the project (from template or blank).
|
|
41
|
+
|
|
42
|
+
**When to use:**
|
|
43
|
+
- Initialize project planning by creating a plan structure
|
|
44
|
+
- Start a new project with predefined phases from a template
|
|
45
|
+
- Create a blank plan to build custom structure
|
|
46
|
+
|
|
47
|
+
**Examples:**
|
|
48
|
+
1. Create blank plan:
|
|
49
|
+
{ projectId: "..." }
|
|
50
|
+
|
|
51
|
+
2. Create from template:
|
|
52
|
+
{ projectId: "...", templateId: "template-uuid" }
|
|
53
|
+
|
|
54
54
|
**Returns:** Created plan object with initial structure`,
|
|
55
55
|
inputSchema: {
|
|
56
56
|
projectId: z.string().uuid().describe('Project ID (UUID)'),
|
|
@@ -68,21 +68,21 @@ export function register({ server, apiClient }) {
|
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
server.registerTool('plan_get_tree', {
|
|
71
|
-
description: `Get the full plan tree including all phases, tasks, and documents.
|
|
72
|
-
|
|
73
|
-
**When to use:**
|
|
74
|
-
- View entire project plan structure at once
|
|
75
|
-
- Get overview of all phases, tasks, and documents
|
|
76
|
-
- Export or analyze complete plan hierarchy
|
|
77
|
-
|
|
78
|
-
**Examples:**
|
|
79
|
-
1. Get full plan tree:
|
|
80
|
-
{ projectId: "..." }
|
|
81
|
-
|
|
82
|
-
**Returns:** Hierarchical tree structure with:
|
|
83
|
-
- phases (nested with sub-phases)
|
|
84
|
-
- tasks linked to each phase
|
|
85
|
-
- documents linked to each phase
|
|
71
|
+
description: `Get the full plan tree including all phases, tasks, and documents.
|
|
72
|
+
|
|
73
|
+
**When to use:**
|
|
74
|
+
- View entire project plan structure at once
|
|
75
|
+
- Get overview of all phases, tasks, and documents
|
|
76
|
+
- Export or analyze complete plan hierarchy
|
|
77
|
+
|
|
78
|
+
**Examples:**
|
|
79
|
+
1. Get full plan tree:
|
|
80
|
+
{ projectId: "..." }
|
|
81
|
+
|
|
82
|
+
**Returns:** Hierarchical tree structure with:
|
|
83
|
+
- phases (nested with sub-phases)
|
|
84
|
+
- tasks linked to each phase
|
|
85
|
+
- documents linked to each phase
|
|
86
86
|
- root-level tasks and documents`,
|
|
87
87
|
inputSchema: {
|
|
88
88
|
projectId: z.string().uuid().describe('Project ID (UUID)'),
|
|
@@ -98,17 +98,17 @@ export function register({ server, apiClient }) {
|
|
|
98
98
|
});
|
|
99
99
|
// ===== Phase Operations =====
|
|
100
100
|
server.registerTool('plan_list_root_phases', {
|
|
101
|
-
description: `List all root-level phases in the plan.
|
|
102
|
-
|
|
103
|
-
**When to use:**
|
|
104
|
-
- Get top-level phases without nested structure
|
|
105
|
-
- Quick overview of main project milestones
|
|
106
|
-
- Navigate to specific phase for more details
|
|
107
|
-
|
|
108
|
-
**Examples:**
|
|
109
|
-
1. List root phases:
|
|
110
|
-
{ projectId: "..." }
|
|
111
|
-
|
|
101
|
+
description: `List all root-level phases in the plan.
|
|
102
|
+
|
|
103
|
+
**When to use:**
|
|
104
|
+
- Get top-level phases without nested structure
|
|
105
|
+
- Quick overview of main project milestones
|
|
106
|
+
- Navigate to specific phase for more details
|
|
107
|
+
|
|
108
|
+
**Examples:**
|
|
109
|
+
1. List root phases:
|
|
110
|
+
{ projectId: "..." }
|
|
111
|
+
|
|
112
112
|
**Returns:** Array of root-level phases (phases without parent)`,
|
|
113
113
|
inputSchema: {
|
|
114
114
|
projectId: z.string().uuid().describe('Project ID (UUID)'),
|
|
@@ -123,22 +123,22 @@ export function register({ server, apiClient }) {
|
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
server.registerTool('plan_list_all_phases', {
|
|
126
|
-
description: `List all phases in the plan as a flat list with path information.
|
|
127
|
-
|
|
128
|
-
**When to use:**
|
|
129
|
-
- Get all phases regardless of nesting level
|
|
130
|
-
- Search or filter phases across entire plan
|
|
131
|
-
- Build breadcrumb navigation
|
|
132
|
-
- Export flat list for reporting
|
|
133
|
-
|
|
134
|
-
**Examples:**
|
|
135
|
-
1. List all phases:
|
|
136
|
-
{ projectId: "..." }
|
|
137
|
-
|
|
138
|
-
**Returns:** Flat array of all phases with:
|
|
139
|
-
- id, name, status
|
|
140
|
-
- parentPhaseId
|
|
141
|
-
- path (breadcrumb info)
|
|
126
|
+
description: `List all phases in the plan as a flat list with path information.
|
|
127
|
+
|
|
128
|
+
**When to use:**
|
|
129
|
+
- Get all phases regardless of nesting level
|
|
130
|
+
- Search or filter phases across entire plan
|
|
131
|
+
- Build breadcrumb navigation
|
|
132
|
+
- Export flat list for reporting
|
|
133
|
+
|
|
134
|
+
**Examples:**
|
|
135
|
+
1. List all phases:
|
|
136
|
+
{ projectId: "..." }
|
|
137
|
+
|
|
138
|
+
**Returns:** Flat array of all phases with:
|
|
139
|
+
- id, name, status
|
|
140
|
+
- parentPhaseId
|
|
141
|
+
- path (breadcrumb info)
|
|
142
142
|
- depth level`,
|
|
143
143
|
inputSchema: {
|
|
144
144
|
projectId: z.string().uuid().describe('Project ID (UUID)'),
|
|
@@ -153,21 +153,21 @@ export function register({ server, apiClient }) {
|
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
server.registerTool('plan_get_phase_children', {
|
|
156
|
-
description: `Get children of a phase (sub-phases, tasks, and documents).
|
|
157
|
-
|
|
158
|
-
**When to use:**
|
|
159
|
-
- Expand a phase to see its contents
|
|
160
|
-
- List sub-phases under a parent phase
|
|
161
|
-
- View tasks and documents linked to a specific phase
|
|
162
|
-
- Build tree view UI by loading children on demand
|
|
163
|
-
|
|
164
|
-
**Examples:**
|
|
165
|
-
1. Get phase children:
|
|
166
|
-
{ projectId: "...", phaseId: "phase-uuid" }
|
|
167
|
-
|
|
168
|
-
**Returns:** Object containing:
|
|
169
|
-
- subPhases: Array of child phases
|
|
170
|
-
- tasks: Array of linked tasks
|
|
156
|
+
description: `Get children of a phase (sub-phases, tasks, and documents).
|
|
157
|
+
|
|
158
|
+
**When to use:**
|
|
159
|
+
- Expand a phase to see its contents
|
|
160
|
+
- List sub-phases under a parent phase
|
|
161
|
+
- View tasks and documents linked to a specific phase
|
|
162
|
+
- Build tree view UI by loading children on demand
|
|
163
|
+
|
|
164
|
+
**Examples:**
|
|
165
|
+
1. Get phase children:
|
|
166
|
+
{ projectId: "...", phaseId: "phase-uuid" }
|
|
167
|
+
|
|
168
|
+
**Returns:** Object containing:
|
|
169
|
+
- subPhases: Array of child phases
|
|
170
|
+
- tasks: Array of linked tasks
|
|
171
171
|
- documents: Array of linked documents`,
|
|
172
172
|
inputSchema: {
|
|
173
173
|
projectId: z.string().uuid().describe('Project ID (UUID)'),
|
|
@@ -183,23 +183,23 @@ export function register({ server, apiClient }) {
|
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
185
|
server.registerTool('plan_create_phase', {
|
|
186
|
-
description: `Create a new phase in the plan.
|
|
187
|
-
|
|
188
|
-
**Usage:**
|
|
189
|
-
- Creates a phase at root level or as a sub-phase under another phase
|
|
190
|
-
- Phases organize tasks and documents hierarchically
|
|
191
|
-
- Supports unlimited nesting depth
|
|
192
|
-
|
|
193
|
-
**Examples:**
|
|
194
|
-
1. Create root phase:
|
|
195
|
-
{ projectId: "...", name: "Phase 1: Planning" }
|
|
196
|
-
|
|
197
|
-
2. Create sub-phase:
|
|
198
|
-
{ projectId: "...", name: "1.1 Requirements", parentPhaseId: "..." }
|
|
199
|
-
|
|
200
|
-
3. With dates:
|
|
201
|
-
{ projectId: "...", name: "Development", startDate: "2024-01-15", expectedEndDate: "2024-03-15" }
|
|
202
|
-
|
|
186
|
+
description: `Create a new phase in the plan.
|
|
187
|
+
|
|
188
|
+
**Usage:**
|
|
189
|
+
- Creates a phase at root level or as a sub-phase under another phase
|
|
190
|
+
- Phases organize tasks and documents hierarchically
|
|
191
|
+
- Supports unlimited nesting depth
|
|
192
|
+
|
|
193
|
+
**Examples:**
|
|
194
|
+
1. Create root phase:
|
|
195
|
+
{ projectId: "...", name: "Phase 1: Planning" }
|
|
196
|
+
|
|
197
|
+
2. Create sub-phase:
|
|
198
|
+
{ projectId: "...", name: "1.1 Requirements", parentPhaseId: "..." }
|
|
199
|
+
|
|
200
|
+
3. With dates:
|
|
201
|
+
{ projectId: "...", name: "Development", startDate: "2024-01-15", expectedEndDate: "2024-03-15" }
|
|
202
|
+
|
|
203
203
|
**Returns:** Created phase with id, name, status, order, and hierarchy info`,
|
|
204
204
|
inputSchema: {
|
|
205
205
|
projectId: z.string().uuid().describe('Project ID (UUID)'),
|
|
@@ -223,37 +223,37 @@ export function register({ server, apiClient }) {
|
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
225
|
server.registerTool('plan_update_phase', {
|
|
226
|
-
description: `Update an existing phase.
|
|
227
|
-
|
|
228
|
-
**When to use:**
|
|
229
|
-
- Rename a phase
|
|
230
|
-
- Update phase status (NOT_STARTED -> IN_PROGRESS -> COMPLETED)
|
|
231
|
-
- Set or update phase dates (start, expected end, actual end)
|
|
232
|
-
- Put a phase on hold
|
|
233
|
-
|
|
234
|
-
**Examples:**
|
|
235
|
-
1. Update status:
|
|
236
|
-
{ projectId: "...", phaseId: "...", status: "IN_PROGRESS" }
|
|
237
|
-
|
|
238
|
-
2. Rename phase:
|
|
239
|
-
{ projectId: "...", phaseId: "...", name: "Updated Phase Name" }
|
|
240
|
-
|
|
241
|
-
3. Set dates:
|
|
242
|
-
{
|
|
243
|
-
projectId: "...",
|
|
244
|
-
phaseId: "...",
|
|
245
|
-
startDate: "2024-01-15",
|
|
246
|
-
expectedEndDate: "2024-03-15"
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
4. Complete a phase:
|
|
250
|
-
{
|
|
251
|
-
projectId: "...",
|
|
252
|
-
phaseId: "...",
|
|
253
|
-
status: "COMPLETED",
|
|
254
|
-
actualEndDate: "2024-03-10"
|
|
255
|
-
}
|
|
256
|
-
|
|
226
|
+
description: `Update an existing phase.
|
|
227
|
+
|
|
228
|
+
**When to use:**
|
|
229
|
+
- Rename a phase
|
|
230
|
+
- Update phase status (NOT_STARTED -> IN_PROGRESS -> COMPLETED)
|
|
231
|
+
- Set or update phase dates (start, expected end, actual end)
|
|
232
|
+
- Put a phase on hold
|
|
233
|
+
|
|
234
|
+
**Examples:**
|
|
235
|
+
1. Update status:
|
|
236
|
+
{ projectId: "...", phaseId: "...", status: "IN_PROGRESS" }
|
|
237
|
+
|
|
238
|
+
2. Rename phase:
|
|
239
|
+
{ projectId: "...", phaseId: "...", name: "Updated Phase Name" }
|
|
240
|
+
|
|
241
|
+
3. Set dates:
|
|
242
|
+
{
|
|
243
|
+
projectId: "...",
|
|
244
|
+
phaseId: "...",
|
|
245
|
+
startDate: "2024-01-15",
|
|
246
|
+
expectedEndDate: "2024-03-15"
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
4. Complete a phase:
|
|
250
|
+
{
|
|
251
|
+
projectId: "...",
|
|
252
|
+
phaseId: "...",
|
|
253
|
+
status: "COMPLETED",
|
|
254
|
+
actualEndDate: "2024-03-10"
|
|
255
|
+
}
|
|
256
|
+
|
|
257
257
|
**Returns:** Updated phase object`,
|
|
258
258
|
inputSchema: {
|
|
259
259
|
projectId: z.string().uuid().describe('Project ID (UUID)'),
|
|
@@ -285,17 +285,17 @@ export function register({ server, apiClient }) {
|
|
|
285
285
|
}
|
|
286
286
|
});
|
|
287
287
|
server.registerTool('plan_delete_phase', {
|
|
288
|
-
description: `Delete a phase from the plan.
|
|
289
|
-
|
|
290
|
-
**Usage:**
|
|
291
|
-
- Deletes the specified phase and all its sub-phases recursively
|
|
292
|
-
- Task and Document links are removed (but Tasks/Documents themselves are preserved)
|
|
293
|
-
- This action cannot be undone
|
|
294
|
-
|
|
295
|
-
**Examples:**
|
|
296
|
-
1. Delete a phase:
|
|
297
|
-
{ projectId: "...", phaseId: "..." }
|
|
298
|
-
|
|
288
|
+
description: `Delete a phase from the plan.
|
|
289
|
+
|
|
290
|
+
**Usage:**
|
|
291
|
+
- Deletes the specified phase and all its sub-phases recursively
|
|
292
|
+
- Task and Document links are removed (but Tasks/Documents themselves are preserved)
|
|
293
|
+
- This action cannot be undone
|
|
294
|
+
|
|
295
|
+
**Examples:**
|
|
296
|
+
1. Delete a phase:
|
|
297
|
+
{ projectId: "...", phaseId: "..." }
|
|
298
|
+
|
|
299
299
|
**Returns:** Success confirmation message`,
|
|
300
300
|
inputSchema: {
|
|
301
301
|
projectId: z.string().uuid().describe('Project ID (UUID)'),
|