@vibescope/mcp-server 0.0.1 → 0.1.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 +113 -98
- package/dist/api-client.d.ts +1114 -0
- package/dist/api-client.js +698 -0
- package/dist/cli.d.ts +1 -6
- package/dist/cli.js +39 -240
- package/dist/config/tool-categories.d.ts +31 -0
- package/dist/config/tool-categories.js +253 -0
- package/dist/handlers/blockers.js +57 -58
- package/dist/handlers/bodies-of-work.d.ts +2 -0
- package/dist/handlers/bodies-of-work.js +106 -476
- package/dist/handlers/cost.d.ts +1 -0
- package/dist/handlers/cost.js +35 -113
- package/dist/handlers/decisions.d.ts +2 -0
- package/dist/handlers/decisions.js +28 -27
- package/dist/handlers/deployment.js +112 -828
- package/dist/handlers/discovery.js +31 -0
- package/dist/handlers/fallback.d.ts +2 -0
- package/dist/handlers/fallback.js +39 -134
- package/dist/handlers/findings.js +43 -67
- package/dist/handlers/git-issues.d.ts +9 -13
- package/dist/handlers/git-issues.js +80 -225
- package/dist/handlers/ideas.d.ts +3 -0
- package/dist/handlers/ideas.js +53 -134
- package/dist/handlers/index.d.ts +2 -0
- package/dist/handlers/index.js +6 -0
- package/dist/handlers/milestones.d.ts +2 -0
- package/dist/handlers/milestones.js +51 -98
- package/dist/handlers/organizations.js +79 -275
- package/dist/handlers/progress.d.ts +2 -0
- package/dist/handlers/progress.js +25 -123
- package/dist/handlers/project.js +42 -221
- package/dist/handlers/requests.d.ts +2 -0
- package/dist/handlers/requests.js +23 -83
- package/dist/handlers/session.js +99 -585
- package/dist/handlers/sprints.d.ts +32 -0
- package/dist/handlers/sprints.js +274 -0
- package/dist/handlers/tasks.d.ts +7 -10
- package/dist/handlers/tasks.js +230 -900
- package/dist/handlers/tool-docs.d.ts +8 -0
- package/dist/handlers/tool-docs.js +657 -0
- package/dist/handlers/types.d.ts +11 -3
- package/dist/handlers/validation.d.ts +1 -1
- package/dist/handlers/validation.js +26 -153
- package/dist/index.js +473 -160
- package/dist/knowledge.js +106 -9
- package/dist/tools.js +4 -0
- package/dist/validators.d.ts +21 -0
- package/dist/validators.js +91 -0
- package/package.json +2 -3
- package/src/api-client.ts +1752 -0
- package/src/cli.test.ts +128 -302
- package/src/cli.ts +41 -285
- package/src/handlers/__test-setup__.ts +210 -0
- package/src/handlers/__test-utils__.ts +4 -134
- package/src/handlers/blockers.test.ts +114 -124
- package/src/handlers/blockers.ts +68 -70
- package/src/handlers/bodies-of-work.test.ts +236 -831
- package/src/handlers/bodies-of-work.ts +194 -525
- package/src/handlers/cost.test.ts +149 -113
- package/src/handlers/cost.ts +44 -132
- package/src/handlers/decisions.test.ts +111 -209
- package/src/handlers/decisions.ts +35 -27
- package/src/handlers/deployment.test.ts +193 -239
- package/src/handlers/deployment.ts +140 -895
- package/src/handlers/discovery.test.ts +20 -67
- package/src/handlers/discovery.ts +32 -0
- package/src/handlers/fallback.test.ts +128 -361
- package/src/handlers/fallback.ts +62 -148
- package/src/handlers/findings.test.ts +127 -345
- package/src/handlers/findings.ts +49 -66
- package/src/handlers/git-issues.test.ts +623 -0
- package/src/handlers/git-issues.ts +174 -0
- package/src/handlers/ideas.test.ts +229 -343
- package/src/handlers/ideas.ts +69 -143
- package/src/handlers/index.ts +6 -0
- package/src/handlers/milestones.test.ts +167 -281
- package/src/handlers/milestones.ts +54 -93
- package/src/handlers/organizations.test.ts +275 -467
- package/src/handlers/organizations.ts +84 -294
- package/src/handlers/progress.test.ts +112 -218
- package/src/handlers/progress.ts +29 -142
- package/src/handlers/project.test.ts +203 -226
- package/src/handlers/project.ts +48 -238
- package/src/handlers/requests.test.ts +74 -342
- package/src/handlers/requests.ts +25 -83
- package/src/handlers/session.test.ts +241 -206
- package/src/handlers/session.ts +110 -657
- package/src/handlers/sprints.test.ts +711 -0
- package/src/handlers/sprints.ts +497 -0
- package/src/handlers/tasks.test.ts +608 -353
- package/src/handlers/tasks.ts +248 -1025
- package/src/handlers/types.ts +12 -4
- package/src/handlers/validation.test.ts +189 -572
- package/src/handlers/validation.ts +29 -166
- package/src/index.ts +473 -184
- package/src/knowledge.ts +107 -9
- package/src/tools.ts +2506 -0
- package/src/validators.test.ts +223 -223
- package/src/validators.ts +127 -0
- package/tsconfig.json +1 -1
- package/vitest.config.ts +14 -13
- package/dist/cli.test.d.ts +0 -1
- package/dist/cli.test.js +0 -367
- package/dist/handlers/__test-utils__.d.ts +0 -72
- package/dist/handlers/__test-utils__.js +0 -176
- package/dist/handlers/checkouts.d.ts +0 -37
- package/dist/handlers/checkouts.js +0 -377
- package/dist/handlers/knowledge-query.d.ts +0 -22
- package/dist/handlers/knowledge-query.js +0 -253
- package/dist/handlers/knowledge.d.ts +0 -12
- package/dist/handlers/knowledge.js +0 -108
- package/dist/handlers/roles.d.ts +0 -30
- package/dist/handlers/roles.js +0 -281
- package/dist/handlers/tasks.test.d.ts +0 -1
- package/dist/handlers/tasks.test.js +0 -431
- package/dist/utils.test.d.ts +0 -1
- package/dist/utils.test.js +0 -532
- package/dist/validators.test.d.ts +0 -1
- package/dist/validators.test.js +0 -176
- package/src/tmpclaude-0078-cwd +0 -1
- package/src/tmpclaude-0ee1-cwd +0 -1
- package/src/tmpclaude-2dd5-cwd +0 -1
- package/src/tmpclaude-344c-cwd +0 -1
- package/src/tmpclaude-3860-cwd +0 -1
- package/src/tmpclaude-4b63-cwd +0 -1
- package/src/tmpclaude-5c73-cwd +0 -1
- package/src/tmpclaude-5ee3-cwd +0 -1
- package/src/tmpclaude-6795-cwd +0 -1
- package/src/tmpclaude-709e-cwd +0 -1
- package/src/tmpclaude-9839-cwd +0 -1
- package/src/tmpclaude-d829-cwd +0 -1
- package/src/tmpclaude-e072-cwd +0 -1
- package/src/tmpclaude-f6ee-cwd +0 -1
- package/tmpclaude-0439-cwd +0 -1
- package/tmpclaude-132f-cwd +0 -1
- package/tmpclaude-15bb-cwd +0 -1
- package/tmpclaude-165a-cwd +0 -1
- package/tmpclaude-1ba9-cwd +0 -1
- package/tmpclaude-21a3-cwd +0 -1
- package/tmpclaude-2a38-cwd +0 -1
- package/tmpclaude-2adf-cwd +0 -1
- package/tmpclaude-2f56-cwd +0 -1
- package/tmpclaude-3626-cwd +0 -1
- package/tmpclaude-3727-cwd +0 -1
- package/tmpclaude-40bc-cwd +0 -1
- package/tmpclaude-436f-cwd +0 -1
- package/tmpclaude-4783-cwd +0 -1
- package/tmpclaude-4b6d-cwd +0 -1
- package/tmpclaude-4ba4-cwd +0 -1
- package/tmpclaude-51e6-cwd +0 -1
- package/tmpclaude-5ecf-cwd +0 -1
- package/tmpclaude-6f97-cwd +0 -1
- package/tmpclaude-7fb2-cwd +0 -1
- package/tmpclaude-825c-cwd +0 -1
- package/tmpclaude-8baf-cwd +0 -1
- package/tmpclaude-8d9f-cwd +0 -1
- package/tmpclaude-975c-cwd +0 -1
- package/tmpclaude-9983-cwd +0 -1
- package/tmpclaude-a045-cwd +0 -1
- package/tmpclaude-ac4a-cwd +0 -1
- package/tmpclaude-b593-cwd +0 -1
- package/tmpclaude-b891-cwd +0 -1
- package/tmpclaude-c032-cwd +0 -1
- package/tmpclaude-cf43-cwd +0 -1
- package/tmpclaude-d040-cwd +0 -1
- package/tmpclaude-dcdd-cwd +0 -1
- package/tmpclaude-dcee-cwd +0 -1
- package/tmpclaude-e16b-cwd +0 -1
- package/tmpclaude-ecd2-cwd +0 -1
- package/tmpclaude-f48d-cwd +0 -1
package/src/tools.ts
ADDED
|
@@ -0,0 +1,2506 @@
|
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// Tool Definitions
|
|
5
|
+
// ============================================================================
|
|
6
|
+
|
|
7
|
+
export const tools: Tool[] = [
|
|
8
|
+
{
|
|
9
|
+
name: 'start_work_session',
|
|
10
|
+
description: `CALL THIS FIRST when beginning work on a project.
|
|
11
|
+
Returns session info, persona, role, and next task. Use mode:'full' for complete context.`,
|
|
12
|
+
inputSchema: {
|
|
13
|
+
type: 'object',
|
|
14
|
+
properties: {
|
|
15
|
+
project_id: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
description: 'Project UUID',
|
|
18
|
+
},
|
|
19
|
+
git_url: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'Git repository URL. Used to find project if project_id not provided.',
|
|
22
|
+
},
|
|
23
|
+
mode: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
enum: ['lite', 'full'],
|
|
26
|
+
description: 'Response mode: lite (default, minimal tokens) or full (complete context)',
|
|
27
|
+
},
|
|
28
|
+
model: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
enum: ['opus', 'sonnet', 'haiku'],
|
|
31
|
+
description: 'Claude model being used (for accurate cost tracking). E.g., "opus", "sonnet", "haiku".',
|
|
32
|
+
},
|
|
33
|
+
role: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
enum: ['developer', 'validator', 'deployer', 'reviewer', 'maintainer'],
|
|
36
|
+
description: 'Agent role: developer (general work, default), validator (task validation), deployer (deployments), reviewer (code review), maintainer (housekeeping)',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'get_help',
|
|
43
|
+
description: 'Get guidance on a specific topic. Use when unsure about workflows.',
|
|
44
|
+
inputSchema: {
|
|
45
|
+
type: 'object',
|
|
46
|
+
properties: {
|
|
47
|
+
topic: {
|
|
48
|
+
type: 'string',
|
|
49
|
+
enum: ['getting_started', 'tasks', 'validation', 'deployment', 'git', 'blockers', 'milestones', 'fallback', 'session', 'tokens', 'roles', 'knowledge', 'topics'],
|
|
50
|
+
description: 'Help topic. Use "topics" to list all available.',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
required: ['topic'],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'get_token_usage',
|
|
58
|
+
description: 'Get token usage stats for this session. Monitor efficiency.',
|
|
59
|
+
inputSchema: {
|
|
60
|
+
type: 'object',
|
|
61
|
+
properties: {},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
// Cost monitoring tools
|
|
65
|
+
{
|
|
66
|
+
name: 'get_cost_summary',
|
|
67
|
+
description: 'Get cost summary (daily/weekly/monthly) for a project.',
|
|
68
|
+
inputSchema: {
|
|
69
|
+
type: 'object',
|
|
70
|
+
properties: {
|
|
71
|
+
project_id: {
|
|
72
|
+
type: 'string',
|
|
73
|
+
description: 'Project UUID',
|
|
74
|
+
},
|
|
75
|
+
period: {
|
|
76
|
+
type: 'string',
|
|
77
|
+
enum: ['daily', 'weekly', 'monthly'],
|
|
78
|
+
description: 'Summary period (default: daily)',
|
|
79
|
+
},
|
|
80
|
+
limit: {
|
|
81
|
+
type: 'number',
|
|
82
|
+
description: 'Max records to return (default: 30)',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
required: ['project_id'],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'get_cost_alerts',
|
|
90
|
+
description: 'Get cost alerts for the current user.',
|
|
91
|
+
inputSchema: {
|
|
92
|
+
type: 'object',
|
|
93
|
+
properties: {
|
|
94
|
+
project_id: {
|
|
95
|
+
type: 'string',
|
|
96
|
+
description: 'Filter by project (optional)',
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'add_cost_alert',
|
|
103
|
+
description: 'Add a cost alert threshold.',
|
|
104
|
+
inputSchema: {
|
|
105
|
+
type: 'object',
|
|
106
|
+
properties: {
|
|
107
|
+
project_id: {
|
|
108
|
+
type: 'string',
|
|
109
|
+
description: 'Project UUID (null for all projects)',
|
|
110
|
+
},
|
|
111
|
+
threshold_amount: {
|
|
112
|
+
type: 'number',
|
|
113
|
+
description: 'Amount in USD that triggers the alert',
|
|
114
|
+
},
|
|
115
|
+
threshold_period: {
|
|
116
|
+
type: 'string',
|
|
117
|
+
enum: ['daily', 'weekly', 'monthly'],
|
|
118
|
+
description: 'Period for the threshold',
|
|
119
|
+
},
|
|
120
|
+
alert_type: {
|
|
121
|
+
type: 'string',
|
|
122
|
+
enum: ['warning', 'critical'],
|
|
123
|
+
description: 'Alert severity (default: warning)',
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
required: ['threshold_amount', 'threshold_period'],
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: 'update_cost_alert',
|
|
131
|
+
description: 'Update a cost alert.',
|
|
132
|
+
inputSchema: {
|
|
133
|
+
type: 'object',
|
|
134
|
+
properties: {
|
|
135
|
+
alert_id: {
|
|
136
|
+
type: 'string',
|
|
137
|
+
description: 'Alert UUID',
|
|
138
|
+
},
|
|
139
|
+
threshold_amount: {
|
|
140
|
+
type: 'number',
|
|
141
|
+
description: 'New threshold amount in USD',
|
|
142
|
+
},
|
|
143
|
+
threshold_period: {
|
|
144
|
+
type: 'string',
|
|
145
|
+
enum: ['daily', 'weekly', 'monthly'],
|
|
146
|
+
description: 'New period',
|
|
147
|
+
},
|
|
148
|
+
alert_type: {
|
|
149
|
+
type: 'string',
|
|
150
|
+
enum: ['warning', 'critical'],
|
|
151
|
+
description: 'New alert type',
|
|
152
|
+
},
|
|
153
|
+
enabled: {
|
|
154
|
+
type: 'boolean',
|
|
155
|
+
description: 'Enable or disable the alert',
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
required: ['alert_id'],
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'delete_cost_alert',
|
|
163
|
+
description: 'Delete a cost alert.',
|
|
164
|
+
inputSchema: {
|
|
165
|
+
type: 'object',
|
|
166
|
+
properties: {
|
|
167
|
+
alert_id: {
|
|
168
|
+
type: 'string',
|
|
169
|
+
description: 'Alert UUID to delete',
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
required: ['alert_id'],
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: 'get_task_costs',
|
|
177
|
+
description: 'Get cost breakdown by task for a project.',
|
|
178
|
+
inputSchema: {
|
|
179
|
+
type: 'object',
|
|
180
|
+
properties: {
|
|
181
|
+
project_id: {
|
|
182
|
+
type: 'string',
|
|
183
|
+
description: 'Project UUID',
|
|
184
|
+
},
|
|
185
|
+
limit: {
|
|
186
|
+
type: 'number',
|
|
187
|
+
description: 'Max tasks to return (default: 20)',
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
required: ['project_id'],
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
// Knowledge Base Query Tool
|
|
194
|
+
{
|
|
195
|
+
name: 'query_knowledge_base',
|
|
196
|
+
description: `Query aggregated project knowledge in a single call. Returns findings, Q&A, decisions, completed tasks, and resolved blockers. Use this instead of multiple separate tool calls to reduce token usage.`,
|
|
197
|
+
inputSchema: {
|
|
198
|
+
type: 'object',
|
|
199
|
+
properties: {
|
|
200
|
+
project_id: {
|
|
201
|
+
type: 'string',
|
|
202
|
+
description: 'Project UUID',
|
|
203
|
+
},
|
|
204
|
+
scope: {
|
|
205
|
+
type: 'string',
|
|
206
|
+
enum: ['summary', 'detailed'],
|
|
207
|
+
description: 'Response detail level: summary (default) or detailed (includes rationales)',
|
|
208
|
+
},
|
|
209
|
+
categories: {
|
|
210
|
+
type: 'array',
|
|
211
|
+
items: {
|
|
212
|
+
type: 'string',
|
|
213
|
+
enum: ['findings', 'qa', 'decisions', 'completed_tasks', 'blockers', 'progress'],
|
|
214
|
+
},
|
|
215
|
+
description: 'Categories to include (default: all). Filter to reduce response size.',
|
|
216
|
+
},
|
|
217
|
+
limit: {
|
|
218
|
+
type: 'number',
|
|
219
|
+
description: 'Max items per category (default: 5, max: 20)',
|
|
220
|
+
},
|
|
221
|
+
search_query: {
|
|
222
|
+
type: 'string',
|
|
223
|
+
description: 'Optional text search across all knowledge',
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
required: ['project_id'],
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: 'discover_tools',
|
|
231
|
+
description: 'List tools by category. Use get_tool_info for details.',
|
|
232
|
+
inputSchema: {
|
|
233
|
+
type: 'object',
|
|
234
|
+
properties: {
|
|
235
|
+
category: {
|
|
236
|
+
type: 'string',
|
|
237
|
+
enum: ['session', 'project', 'tasks', 'milestones', 'progress', 'blockers', 'decisions', 'ideas', 'findings', 'validation', 'deployment', 'fallback', 'requests', 'organizations', 'cost', 'knowledge'],
|
|
238
|
+
description: 'Category to list (omit for all categories)',
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
name: 'get_tool_info',
|
|
245
|
+
description: 'Get detailed tool documentation.',
|
|
246
|
+
inputSchema: {
|
|
247
|
+
type: 'object',
|
|
248
|
+
properties: {
|
|
249
|
+
tool_name: {
|
|
250
|
+
type: 'string',
|
|
251
|
+
description: 'Tool name',
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
required: ['tool_name'],
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
name: 'get_project_context',
|
|
259
|
+
description: 'Get full project context: goals, instructions, tasks, blockers, decisions.',
|
|
260
|
+
inputSchema: {
|
|
261
|
+
type: 'object',
|
|
262
|
+
properties: {
|
|
263
|
+
project_id: {
|
|
264
|
+
type: 'string',
|
|
265
|
+
description: 'Project UUID. If not provided, will list all projects.',
|
|
266
|
+
},
|
|
267
|
+
git_url: {
|
|
268
|
+
type: 'string',
|
|
269
|
+
description: 'Git repository URL. Used to find project if project_id not provided.',
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
name: 'get_git_workflow',
|
|
276
|
+
description: 'Get git workflow config and branching instructions for the project.',
|
|
277
|
+
inputSchema: {
|
|
278
|
+
type: 'object',
|
|
279
|
+
properties: {
|
|
280
|
+
project_id: {
|
|
281
|
+
type: 'string',
|
|
282
|
+
description: 'Project UUID',
|
|
283
|
+
},
|
|
284
|
+
task_id: {
|
|
285
|
+
type: 'string',
|
|
286
|
+
description: 'Optional task ID to include branch naming suggestion',
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
required: ['project_id'],
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
name: 'create_project',
|
|
294
|
+
description: 'Create a new project to track in Vibescope.',
|
|
295
|
+
inputSchema: {
|
|
296
|
+
type: 'object',
|
|
297
|
+
properties: {
|
|
298
|
+
name: {
|
|
299
|
+
type: 'string',
|
|
300
|
+
description: 'Project display name',
|
|
301
|
+
},
|
|
302
|
+
description: {
|
|
303
|
+
type: 'string',
|
|
304
|
+
description: 'Brief project description',
|
|
305
|
+
},
|
|
306
|
+
goal: {
|
|
307
|
+
type: 'string',
|
|
308
|
+
description: 'What does "done" look like for this project?',
|
|
309
|
+
},
|
|
310
|
+
git_url: {
|
|
311
|
+
type: 'string',
|
|
312
|
+
description: 'Git repository URL (if available)',
|
|
313
|
+
},
|
|
314
|
+
tech_stack: {
|
|
315
|
+
type: 'array',
|
|
316
|
+
items: { type: 'string' },
|
|
317
|
+
description: 'Technologies used (e.g., ["TypeScript", "React", "PostgreSQL"])',
|
|
318
|
+
},
|
|
319
|
+
},
|
|
320
|
+
required: ['name'],
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
name: 'update_project',
|
|
325
|
+
description: 'Update project details (name, description, goal, settings).',
|
|
326
|
+
inputSchema: {
|
|
327
|
+
type: 'object',
|
|
328
|
+
properties: {
|
|
329
|
+
project_id: {
|
|
330
|
+
type: 'string',
|
|
331
|
+
description: 'Project UUID',
|
|
332
|
+
},
|
|
333
|
+
name: { type: 'string' },
|
|
334
|
+
description: { type: 'string' },
|
|
335
|
+
goal: { type: 'string' },
|
|
336
|
+
git_url: { type: 'string' },
|
|
337
|
+
tech_stack: {
|
|
338
|
+
type: 'array',
|
|
339
|
+
items: { type: 'string' },
|
|
340
|
+
},
|
|
341
|
+
status: {
|
|
342
|
+
type: 'string',
|
|
343
|
+
enum: ['active', 'paused', 'completed', 'archived'],
|
|
344
|
+
},
|
|
345
|
+
git_workflow: {
|
|
346
|
+
type: 'string',
|
|
347
|
+
enum: ['none', 'trunk-based', 'github-flow', 'git-flow'],
|
|
348
|
+
description: 'Git workflow: none (no branching), trunk-based (commit to main), github-flow (feature branches + PR), git-flow (develop/release branches)',
|
|
349
|
+
},
|
|
350
|
+
git_main_branch: {
|
|
351
|
+
type: 'string',
|
|
352
|
+
description: 'Main branch name (default: main)',
|
|
353
|
+
},
|
|
354
|
+
git_develop_branch: {
|
|
355
|
+
type: 'string',
|
|
356
|
+
description: 'Development branch name (used with git-flow)',
|
|
357
|
+
},
|
|
358
|
+
git_auto_branch: {
|
|
359
|
+
type: 'boolean',
|
|
360
|
+
description: 'Automatically create feature branches for new tasks',
|
|
361
|
+
},
|
|
362
|
+
git_auto_tag: {
|
|
363
|
+
type: 'boolean',
|
|
364
|
+
description: 'Automatically tag deployments on main branch',
|
|
365
|
+
},
|
|
366
|
+
git_auto_commit_on_complete: {
|
|
367
|
+
type: 'boolean',
|
|
368
|
+
description: 'Agents must commit changes after completing tasks',
|
|
369
|
+
},
|
|
370
|
+
git_auto_pr_on_complete: {
|
|
371
|
+
type: 'boolean',
|
|
372
|
+
description: 'Agents must create PR after completing tasks',
|
|
373
|
+
},
|
|
374
|
+
deployment_instructions: {
|
|
375
|
+
type: 'string',
|
|
376
|
+
description: 'Instructions for how to deploy (e.g., "Push to main for Vercel auto-deploy", "Run fly deploy")',
|
|
377
|
+
},
|
|
378
|
+
},
|
|
379
|
+
required: ['project_id'],
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
name: 'update_project_readme',
|
|
384
|
+
description: 'Sync README content to the dashboard.',
|
|
385
|
+
inputSchema: {
|
|
386
|
+
type: 'object',
|
|
387
|
+
properties: {
|
|
388
|
+
project_id: {
|
|
389
|
+
type: 'string',
|
|
390
|
+
description: 'Project UUID',
|
|
391
|
+
},
|
|
392
|
+
readme_content: {
|
|
393
|
+
type: 'string',
|
|
394
|
+
description: 'README content in markdown format',
|
|
395
|
+
},
|
|
396
|
+
},
|
|
397
|
+
required: ['project_id', 'readme_content'],
|
|
398
|
+
},
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
name: 'get_tasks',
|
|
402
|
+
description: 'Get tasks for a project, optionally filtered by status. By default returns only root tasks (not subtasks).',
|
|
403
|
+
inputSchema: {
|
|
404
|
+
type: 'object',
|
|
405
|
+
properties: {
|
|
406
|
+
project_id: {
|
|
407
|
+
type: 'string',
|
|
408
|
+
description: 'Project UUID',
|
|
409
|
+
},
|
|
410
|
+
status: {
|
|
411
|
+
type: 'string',
|
|
412
|
+
enum: ['backlog', 'pending', 'in_progress', 'completed', 'cancelled'],
|
|
413
|
+
description: 'Filter by status (optional)',
|
|
414
|
+
},
|
|
415
|
+
limit: {
|
|
416
|
+
type: 'number',
|
|
417
|
+
description: 'Max number of tasks to return (default 50)',
|
|
418
|
+
},
|
|
419
|
+
include_subtasks: {
|
|
420
|
+
type: 'boolean',
|
|
421
|
+
description: 'Include subtasks in results (default false). Use get_subtasks for subtasks of a specific task.',
|
|
422
|
+
},
|
|
423
|
+
include_metadata: {
|
|
424
|
+
type: 'boolean',
|
|
425
|
+
description: 'When true, returns all task fields (description, progress, timestamps, etc.). When false (default), returns only id/title/priority/status to save tokens.',
|
|
426
|
+
},
|
|
427
|
+
},
|
|
428
|
+
required: ['project_id'],
|
|
429
|
+
},
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
name: 'get_next_task',
|
|
433
|
+
description: 'Get highest priority pending task. Skips claimed tasks. Check deployment_blocks_tasks first.',
|
|
434
|
+
inputSchema: {
|
|
435
|
+
type: 'object',
|
|
436
|
+
properties: {
|
|
437
|
+
project_id: {
|
|
438
|
+
type: 'string',
|
|
439
|
+
description: 'Project UUID',
|
|
440
|
+
},
|
|
441
|
+
},
|
|
442
|
+
required: ['project_id'],
|
|
443
|
+
},
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
name: 'add_task',
|
|
447
|
+
description: 'Add a new task. Priority 1=highest, 5=lowest. Include estimated_minutes. Use blocking=true for deployment finalization tasks that must complete before other work.',
|
|
448
|
+
inputSchema: {
|
|
449
|
+
type: 'object',
|
|
450
|
+
properties: {
|
|
451
|
+
project_id: {
|
|
452
|
+
type: 'string',
|
|
453
|
+
description: 'Project UUID',
|
|
454
|
+
},
|
|
455
|
+
title: {
|
|
456
|
+
type: 'string',
|
|
457
|
+
description: 'Task title',
|
|
458
|
+
},
|
|
459
|
+
description: {
|
|
460
|
+
type: 'string',
|
|
461
|
+
description: 'Detailed description',
|
|
462
|
+
},
|
|
463
|
+
priority: {
|
|
464
|
+
type: 'number',
|
|
465
|
+
minimum: 1,
|
|
466
|
+
maximum: 5,
|
|
467
|
+
description: 'Priority 1-5 (1 = highest)',
|
|
468
|
+
},
|
|
469
|
+
estimated_minutes: {
|
|
470
|
+
type: 'number',
|
|
471
|
+
minimum: 1,
|
|
472
|
+
description: 'Estimated time to complete in minutes',
|
|
473
|
+
},
|
|
474
|
+
blocking: {
|
|
475
|
+
type: 'boolean',
|
|
476
|
+
description: 'When true, this task blocks all other work until complete (used for deployment finalization)',
|
|
477
|
+
},
|
|
478
|
+
model_capability: {
|
|
479
|
+
type: 'string',
|
|
480
|
+
enum: ['haiku', 'sonnet', 'opus'],
|
|
481
|
+
description: 'Recommended model capability: haiku (simple tasks), sonnet (standard), opus (complex reasoning)',
|
|
482
|
+
},
|
|
483
|
+
},
|
|
484
|
+
required: ['project_id', 'title'],
|
|
485
|
+
},
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
name: 'update_task',
|
|
489
|
+
description: 'Update task status, progress, or details. Include progress_note with progress_percentage.',
|
|
490
|
+
inputSchema: {
|
|
491
|
+
type: 'object',
|
|
492
|
+
properties: {
|
|
493
|
+
task_id: {
|
|
494
|
+
type: 'string',
|
|
495
|
+
description: 'Task UUID',
|
|
496
|
+
},
|
|
497
|
+
title: { type: 'string' },
|
|
498
|
+
description: { type: 'string' },
|
|
499
|
+
priority: {
|
|
500
|
+
type: 'number',
|
|
501
|
+
minimum: 1,
|
|
502
|
+
maximum: 5,
|
|
503
|
+
},
|
|
504
|
+
status: {
|
|
505
|
+
type: 'string',
|
|
506
|
+
enum: ['backlog', 'pending', 'in_progress', 'completed', 'cancelled'],
|
|
507
|
+
},
|
|
508
|
+
progress_percentage: {
|
|
509
|
+
type: 'number',
|
|
510
|
+
minimum: 0,
|
|
511
|
+
maximum: 100,
|
|
512
|
+
description: '0-100 completion percentage',
|
|
513
|
+
},
|
|
514
|
+
progress_note: {
|
|
515
|
+
type: 'string',
|
|
516
|
+
description: 'Brief note (auto-logged)',
|
|
517
|
+
},
|
|
518
|
+
estimated_minutes: {
|
|
519
|
+
type: 'number',
|
|
520
|
+
minimum: 1,
|
|
521
|
+
description: 'Revised time estimate',
|
|
522
|
+
},
|
|
523
|
+
git_branch: {
|
|
524
|
+
type: 'string',
|
|
525
|
+
description: 'Git branch associated with this task',
|
|
526
|
+
},
|
|
527
|
+
model_capability: {
|
|
528
|
+
type: 'string',
|
|
529
|
+
enum: ['haiku', 'sonnet', 'opus'],
|
|
530
|
+
description: 'Recommended model capability: haiku (simple tasks), sonnet (standard), opus (complex reasoning)',
|
|
531
|
+
},
|
|
532
|
+
},
|
|
533
|
+
required: ['task_id'],
|
|
534
|
+
},
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
name: 'complete_task',
|
|
538
|
+
description: 'Mark task done. Returns next_task and context counts (validation, blockers, deployment).',
|
|
539
|
+
inputSchema: {
|
|
540
|
+
type: 'object',
|
|
541
|
+
properties: {
|
|
542
|
+
task_id: {
|
|
543
|
+
type: 'string',
|
|
544
|
+
description: 'Task UUID',
|
|
545
|
+
},
|
|
546
|
+
summary: {
|
|
547
|
+
type: 'string',
|
|
548
|
+
description: 'Brief summary of what was done',
|
|
549
|
+
},
|
|
550
|
+
},
|
|
551
|
+
required: ['task_id'],
|
|
552
|
+
},
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
name: 'log_progress',
|
|
556
|
+
description: `Log progress update. Record significant milestones or observations.`,
|
|
557
|
+
inputSchema: {
|
|
558
|
+
type: 'object',
|
|
559
|
+
properties: {
|
|
560
|
+
project_id: {
|
|
561
|
+
type: 'string',
|
|
562
|
+
description: 'Project UUID',
|
|
563
|
+
},
|
|
564
|
+
task_id: {
|
|
565
|
+
type: 'string',
|
|
566
|
+
description: 'Task UUID (optional, links progress to specific task)',
|
|
567
|
+
},
|
|
568
|
+
summary: {
|
|
569
|
+
type: 'string',
|
|
570
|
+
description: 'Brief summary of progress',
|
|
571
|
+
},
|
|
572
|
+
details: {
|
|
573
|
+
type: 'string',
|
|
574
|
+
description: 'Detailed notes (optional)',
|
|
575
|
+
},
|
|
576
|
+
},
|
|
577
|
+
required: ['project_id', 'summary'],
|
|
578
|
+
},
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
name: 'add_blocker',
|
|
582
|
+
description: `Record a blocker preventing progress.`,
|
|
583
|
+
inputSchema: {
|
|
584
|
+
type: 'object',
|
|
585
|
+
properties: {
|
|
586
|
+
project_id: {
|
|
587
|
+
type: 'string',
|
|
588
|
+
description: 'Project UUID',
|
|
589
|
+
},
|
|
590
|
+
description: {
|
|
591
|
+
type: 'string',
|
|
592
|
+
description: 'What is blocking progress?',
|
|
593
|
+
},
|
|
594
|
+
},
|
|
595
|
+
required: ['project_id', 'description'],
|
|
596
|
+
},
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
name: 'resolve_blocker',
|
|
600
|
+
description: `Mark a blocker as resolved.`,
|
|
601
|
+
inputSchema: {
|
|
602
|
+
type: 'object',
|
|
603
|
+
properties: {
|
|
604
|
+
blocker_id: {
|
|
605
|
+
type: 'string',
|
|
606
|
+
description: 'Blocker UUID',
|
|
607
|
+
},
|
|
608
|
+
resolution_note: {
|
|
609
|
+
type: 'string',
|
|
610
|
+
description: 'How was it resolved?',
|
|
611
|
+
},
|
|
612
|
+
},
|
|
613
|
+
required: ['blocker_id'],
|
|
614
|
+
},
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
name: 'get_blockers',
|
|
618
|
+
description: `Get blockers for a project, optionally filtered by status.`,
|
|
619
|
+
inputSchema: {
|
|
620
|
+
type: 'object',
|
|
621
|
+
properties: {
|
|
622
|
+
project_id: {
|
|
623
|
+
type: 'string',
|
|
624
|
+
description: 'Project UUID',
|
|
625
|
+
},
|
|
626
|
+
status: {
|
|
627
|
+
type: 'string',
|
|
628
|
+
enum: ['open', 'resolved'],
|
|
629
|
+
description: 'Filter by status (default: open)',
|
|
630
|
+
},
|
|
631
|
+
},
|
|
632
|
+
required: ['project_id'],
|
|
633
|
+
},
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
name: 'log_decision',
|
|
637
|
+
description: `Record an architectural or technical decision with rationale.`,
|
|
638
|
+
inputSchema: {
|
|
639
|
+
type: 'object',
|
|
640
|
+
properties: {
|
|
641
|
+
project_id: {
|
|
642
|
+
type: 'string',
|
|
643
|
+
description: 'Project UUID',
|
|
644
|
+
},
|
|
645
|
+
title: {
|
|
646
|
+
type: 'string',
|
|
647
|
+
description: 'Decision title (e.g., "Use PostgreSQL for database")',
|
|
648
|
+
},
|
|
649
|
+
description: {
|
|
650
|
+
type: 'string',
|
|
651
|
+
description: 'What was decided',
|
|
652
|
+
},
|
|
653
|
+
rationale: {
|
|
654
|
+
type: 'string',
|
|
655
|
+
description: 'Why this decision was made',
|
|
656
|
+
},
|
|
657
|
+
alternatives_considered: {
|
|
658
|
+
type: 'array',
|
|
659
|
+
items: { type: 'string' },
|
|
660
|
+
description: 'Other options that were considered',
|
|
661
|
+
},
|
|
662
|
+
},
|
|
663
|
+
required: ['project_id', 'title', 'description'],
|
|
664
|
+
},
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
name: 'get_decisions',
|
|
668
|
+
description: `Get recorded decisions for a project.`,
|
|
669
|
+
inputSchema: {
|
|
670
|
+
type: 'object',
|
|
671
|
+
properties: {
|
|
672
|
+
project_id: {
|
|
673
|
+
type: 'string',
|
|
674
|
+
description: 'Project UUID',
|
|
675
|
+
},
|
|
676
|
+
},
|
|
677
|
+
required: ['project_id'],
|
|
678
|
+
},
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
name: 'add_idea',
|
|
682
|
+
description: `Record an idea for improvements or features. Starts as 'raw', can progress to 'shipped'.`,
|
|
683
|
+
inputSchema: {
|
|
684
|
+
type: 'object',
|
|
685
|
+
properties: {
|
|
686
|
+
project_id: {
|
|
687
|
+
type: 'string',
|
|
688
|
+
description: 'Project UUID',
|
|
689
|
+
},
|
|
690
|
+
title: {
|
|
691
|
+
type: 'string',
|
|
692
|
+
description: 'Idea title',
|
|
693
|
+
},
|
|
694
|
+
description: {
|
|
695
|
+
type: 'string',
|
|
696
|
+
description: 'Detailed description',
|
|
697
|
+
},
|
|
698
|
+
status: {
|
|
699
|
+
type: 'string',
|
|
700
|
+
enum: ['raw', 'exploring', 'planned', 'in_development', 'shipped'],
|
|
701
|
+
description: 'Development stage (default: raw)',
|
|
702
|
+
},
|
|
703
|
+
},
|
|
704
|
+
required: ['project_id', 'title'],
|
|
705
|
+
},
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
name: 'update_idea',
|
|
709
|
+
description: `Update an idea's status or details.`,
|
|
710
|
+
inputSchema: {
|
|
711
|
+
type: 'object',
|
|
712
|
+
properties: {
|
|
713
|
+
idea_id: {
|
|
714
|
+
type: 'string',
|
|
715
|
+
description: 'Idea UUID',
|
|
716
|
+
},
|
|
717
|
+
title: {
|
|
718
|
+
type: 'string',
|
|
719
|
+
description: 'Updated title',
|
|
720
|
+
},
|
|
721
|
+
description: {
|
|
722
|
+
type: 'string',
|
|
723
|
+
description: 'Updated description',
|
|
724
|
+
},
|
|
725
|
+
status: {
|
|
726
|
+
type: 'string',
|
|
727
|
+
enum: ['raw', 'exploring', 'planned', 'in_development', 'shipped'],
|
|
728
|
+
description: 'New development stage',
|
|
729
|
+
},
|
|
730
|
+
doc_url: {
|
|
731
|
+
type: 'string',
|
|
732
|
+
description: 'URL to feature documentation/specification',
|
|
733
|
+
},
|
|
734
|
+
},
|
|
735
|
+
required: ['idea_id'],
|
|
736
|
+
},
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
name: 'get_ideas',
|
|
740
|
+
description: `Get recorded ideas for a project, optionally filtered by status.`,
|
|
741
|
+
inputSchema: {
|
|
742
|
+
type: 'object',
|
|
743
|
+
properties: {
|
|
744
|
+
project_id: {
|
|
745
|
+
type: 'string',
|
|
746
|
+
description: 'Project UUID',
|
|
747
|
+
},
|
|
748
|
+
status: {
|
|
749
|
+
type: 'string',
|
|
750
|
+
enum: ['raw', 'exploring', 'planned', 'in_development', 'shipped'],
|
|
751
|
+
description: 'Filter by status (optional)',
|
|
752
|
+
},
|
|
753
|
+
limit: {
|
|
754
|
+
type: 'number',
|
|
755
|
+
description: 'Max number of ideas to return (default 50, max 100)',
|
|
756
|
+
},
|
|
757
|
+
offset: {
|
|
758
|
+
type: 'number',
|
|
759
|
+
description: 'Number of ideas to skip for pagination (default 0)',
|
|
760
|
+
},
|
|
761
|
+
search_query: {
|
|
762
|
+
type: 'string',
|
|
763
|
+
description: 'Search ideas by title or description',
|
|
764
|
+
},
|
|
765
|
+
},
|
|
766
|
+
required: ['project_id'],
|
|
767
|
+
},
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
name: 'delete_task',
|
|
771
|
+
description: `Delete a task.`,
|
|
772
|
+
inputSchema: {
|
|
773
|
+
type: 'object',
|
|
774
|
+
properties: {
|
|
775
|
+
task_id: {
|
|
776
|
+
type: 'string',
|
|
777
|
+
description: 'Task UUID',
|
|
778
|
+
},
|
|
779
|
+
},
|
|
780
|
+
required: ['task_id'],
|
|
781
|
+
},
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
name: 'add_task_reference',
|
|
785
|
+
description: 'Add a reference URL to a task (docs, PRs, issues).',
|
|
786
|
+
inputSchema: {
|
|
787
|
+
type: 'object',
|
|
788
|
+
properties: {
|
|
789
|
+
task_id: {
|
|
790
|
+
type: 'string',
|
|
791
|
+
description: 'Task UUID',
|
|
792
|
+
},
|
|
793
|
+
url: {
|
|
794
|
+
type: 'string',
|
|
795
|
+
description: 'URL to add as reference',
|
|
796
|
+
},
|
|
797
|
+
label: {
|
|
798
|
+
type: 'string',
|
|
799
|
+
description: 'Optional label/title for the reference',
|
|
800
|
+
},
|
|
801
|
+
},
|
|
802
|
+
required: ['task_id', 'url'],
|
|
803
|
+
},
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
name: 'remove_task_reference',
|
|
807
|
+
description: `Remove a reference link from a task by URL.`,
|
|
808
|
+
inputSchema: {
|
|
809
|
+
type: 'object',
|
|
810
|
+
properties: {
|
|
811
|
+
task_id: {
|
|
812
|
+
type: 'string',
|
|
813
|
+
description: 'Task UUID',
|
|
814
|
+
},
|
|
815
|
+
url: {
|
|
816
|
+
type: 'string',
|
|
817
|
+
description: 'URL of the reference to remove',
|
|
818
|
+
},
|
|
819
|
+
},
|
|
820
|
+
required: ['task_id', 'url'],
|
|
821
|
+
},
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
name: 'delete_idea',
|
|
825
|
+
description: `Delete an idea.`,
|
|
826
|
+
inputSchema: {
|
|
827
|
+
type: 'object',
|
|
828
|
+
properties: {
|
|
829
|
+
idea_id: {
|
|
830
|
+
type: 'string',
|
|
831
|
+
description: 'Idea UUID',
|
|
832
|
+
},
|
|
833
|
+
},
|
|
834
|
+
required: ['idea_id'],
|
|
835
|
+
},
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
name: 'convert_idea_to_task',
|
|
839
|
+
description: `Convert an idea to a task. Creates a task from the idea's title and description, links them, and optionally updates the idea status to 'in_development'. Useful for planned ideas that are ready for implementation.`,
|
|
840
|
+
inputSchema: {
|
|
841
|
+
type: 'object',
|
|
842
|
+
properties: {
|
|
843
|
+
idea_id: {
|
|
844
|
+
type: 'string',
|
|
845
|
+
description: 'Idea UUID to convert',
|
|
846
|
+
},
|
|
847
|
+
priority: {
|
|
848
|
+
type: 'number',
|
|
849
|
+
minimum: 1,
|
|
850
|
+
maximum: 5,
|
|
851
|
+
description: 'Task priority 1-5 (default: 3, 1 = highest)',
|
|
852
|
+
},
|
|
853
|
+
estimated_minutes: {
|
|
854
|
+
type: 'number',
|
|
855
|
+
minimum: 1,
|
|
856
|
+
description: 'Estimated time to complete in minutes',
|
|
857
|
+
},
|
|
858
|
+
update_status: {
|
|
859
|
+
type: 'boolean',
|
|
860
|
+
description: "Update idea status to 'in_development' (default: true)",
|
|
861
|
+
},
|
|
862
|
+
},
|
|
863
|
+
required: ['idea_id'],
|
|
864
|
+
},
|
|
865
|
+
},
|
|
866
|
+
// Findings (knowledge base)
|
|
867
|
+
{
|
|
868
|
+
name: 'add_finding',
|
|
869
|
+
description: 'Record a finding from an audit/review (performance, security, code quality, etc).',
|
|
870
|
+
inputSchema: {
|
|
871
|
+
type: 'object',
|
|
872
|
+
properties: {
|
|
873
|
+
project_id: { type: 'string', description: 'Project UUID' },
|
|
874
|
+
category: { type: 'string', enum: ['performance', 'security', 'code_quality', 'accessibility', 'documentation', 'architecture', 'testing', 'other'], description: 'Category of the finding (default: other)' },
|
|
875
|
+
title: { type: 'string', description: 'Brief title describing the finding' },
|
|
876
|
+
description: { type: 'string', description: 'Detailed description of the finding, including impact and suggested fix' },
|
|
877
|
+
severity: { type: 'string', enum: ['info', 'low', 'medium', 'high', 'critical'], description: 'Severity level (default: info)' },
|
|
878
|
+
file_path: { type: 'string', description: 'File path where the issue was found (optional)' },
|
|
879
|
+
line_number: { type: 'number', description: 'Line number in the file (optional)' },
|
|
880
|
+
related_task_id: { type: 'string', description: 'ID of related task if this finding came from a task (optional)' },
|
|
881
|
+
},
|
|
882
|
+
required: ['project_id', 'title'],
|
|
883
|
+
},
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
name: 'get_findings',
|
|
887
|
+
description: `Get findings for a project, optionally filtered by category, severity, or status.`,
|
|
888
|
+
inputSchema: {
|
|
889
|
+
type: 'object',
|
|
890
|
+
properties: {
|
|
891
|
+
project_id: { type: 'string', description: 'Project UUID' },
|
|
892
|
+
category: { type: 'string', enum: ['performance', 'security', 'code_quality', 'accessibility', 'documentation', 'architecture', 'testing', 'other'], description: 'Filter by category (optional)' },
|
|
893
|
+
severity: { type: 'string', enum: ['info', 'low', 'medium', 'high', 'critical'], description: 'Filter by severity (optional)' },
|
|
894
|
+
status: { type: 'string', enum: ['open', 'addressed', 'dismissed', 'wontfix'], description: 'Filter by status (default: all)' },
|
|
895
|
+
limit: { type: 'number', description: 'Max number of findings to return (default 50)' },
|
|
896
|
+
},
|
|
897
|
+
required: ['project_id'],
|
|
898
|
+
},
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
name: 'update_finding',
|
|
902
|
+
description: `Update a finding's status or details. Use to mark findings as addressed or dismissed.`,
|
|
903
|
+
inputSchema: {
|
|
904
|
+
type: 'object',
|
|
905
|
+
properties: {
|
|
906
|
+
finding_id: { type: 'string', description: 'Finding UUID' },
|
|
907
|
+
status: { type: 'string', enum: ['open', 'addressed', 'dismissed', 'wontfix'], description: 'New status' },
|
|
908
|
+
resolution_note: { type: 'string', description: 'Note explaining how the finding was addressed or why it was dismissed' },
|
|
909
|
+
title: { type: 'string', description: 'Updated title' },
|
|
910
|
+
description: { type: 'string', description: 'Updated description' },
|
|
911
|
+
severity: { type: 'string', enum: ['info', 'low', 'medium', 'high', 'critical'], description: 'Updated severity' },
|
|
912
|
+
},
|
|
913
|
+
required: ['finding_id'],
|
|
914
|
+
},
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
name: 'delete_finding',
|
|
918
|
+
description: `Delete a finding.`,
|
|
919
|
+
inputSchema: {
|
|
920
|
+
type: 'object',
|
|
921
|
+
properties: {
|
|
922
|
+
finding_id: { type: 'string', description: 'Finding UUID' },
|
|
923
|
+
},
|
|
924
|
+
required: ['finding_id'],
|
|
925
|
+
},
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
name: 'delete_blocker',
|
|
929
|
+
description: `Delete a blocker.`,
|
|
930
|
+
inputSchema: {
|
|
931
|
+
type: 'object',
|
|
932
|
+
properties: {
|
|
933
|
+
blocker_id: {
|
|
934
|
+
type: 'string',
|
|
935
|
+
description: 'Blocker UUID',
|
|
936
|
+
},
|
|
937
|
+
},
|
|
938
|
+
required: ['blocker_id'],
|
|
939
|
+
},
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
name: 'delete_decision',
|
|
943
|
+
description: `Delete a decision.`,
|
|
944
|
+
inputSchema: {
|
|
945
|
+
type: 'object',
|
|
946
|
+
properties: {
|
|
947
|
+
decision_id: {
|
|
948
|
+
type: 'string',
|
|
949
|
+
description: 'Decision UUID',
|
|
950
|
+
},
|
|
951
|
+
},
|
|
952
|
+
required: ['decision_id'],
|
|
953
|
+
},
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
name: 'get_activity_feed',
|
|
957
|
+
description: `Get combined activity feed (tasks, progress, blockers, decisions) in chronological order.`,
|
|
958
|
+
inputSchema: {
|
|
959
|
+
type: 'object',
|
|
960
|
+
properties: {
|
|
961
|
+
project_id: {
|
|
962
|
+
type: 'string',
|
|
963
|
+
description: 'Project UUID',
|
|
964
|
+
},
|
|
965
|
+
types: {
|
|
966
|
+
type: 'array',
|
|
967
|
+
items: {
|
|
968
|
+
type: 'string',
|
|
969
|
+
enum: ['task', 'progress', 'blocker', 'decision'],
|
|
970
|
+
},
|
|
971
|
+
description: 'Filter by activity types (default: all)',
|
|
972
|
+
},
|
|
973
|
+
created_by: {
|
|
974
|
+
type: 'string',
|
|
975
|
+
enum: ['agent', 'user'],
|
|
976
|
+
description: 'Filter by creator (default: all)',
|
|
977
|
+
},
|
|
978
|
+
since: {
|
|
979
|
+
type: 'string',
|
|
980
|
+
description: 'ISO date string - only return activity after this time',
|
|
981
|
+
},
|
|
982
|
+
limit: {
|
|
983
|
+
type: 'number',
|
|
984
|
+
description: 'Max number of items to return (default 50, max 200)',
|
|
985
|
+
},
|
|
986
|
+
},
|
|
987
|
+
required: ['project_id'],
|
|
988
|
+
},
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
name: 'batch_update_tasks',
|
|
992
|
+
description: 'Update multiple tasks at once. Include progress_note with progress_percentage.',
|
|
993
|
+
inputSchema: {
|
|
994
|
+
type: 'object',
|
|
995
|
+
properties: {
|
|
996
|
+
updates: {
|
|
997
|
+
type: 'array',
|
|
998
|
+
description: 'Array of task updates to apply',
|
|
999
|
+
items: {
|
|
1000
|
+
type: 'object',
|
|
1001
|
+
properties: {
|
|
1002
|
+
task_id: { type: 'string', description: 'Task UUID' },
|
|
1003
|
+
status: { type: 'string', enum: ['backlog', 'pending', 'in_progress', 'completed', 'cancelled'] },
|
|
1004
|
+
progress_percentage: { type: 'number', minimum: 0, maximum: 100 },
|
|
1005
|
+
progress_note: { type: 'string', description: 'Brief note about what was achieved' },
|
|
1006
|
+
priority: { type: 'number', minimum: 1, maximum: 5 },
|
|
1007
|
+
},
|
|
1008
|
+
required: ['task_id'],
|
|
1009
|
+
},
|
|
1010
|
+
},
|
|
1011
|
+
},
|
|
1012
|
+
required: ['updates'],
|
|
1013
|
+
},
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
name: 'batch_complete_tasks',
|
|
1017
|
+
description: `Mark multiple tasks as completed at once.`,
|
|
1018
|
+
inputSchema: {
|
|
1019
|
+
type: 'object',
|
|
1020
|
+
properties: {
|
|
1021
|
+
completions: {
|
|
1022
|
+
type: 'array',
|
|
1023
|
+
description: 'Array of task completions',
|
|
1024
|
+
items: {
|
|
1025
|
+
type: 'object',
|
|
1026
|
+
properties: {
|
|
1027
|
+
task_id: { type: 'string', description: 'Task UUID' },
|
|
1028
|
+
summary: { type: 'string', description: 'Optional completion summary' },
|
|
1029
|
+
},
|
|
1030
|
+
required: ['task_id'],
|
|
1031
|
+
},
|
|
1032
|
+
},
|
|
1033
|
+
},
|
|
1034
|
+
required: ['completions'],
|
|
1035
|
+
},
|
|
1036
|
+
},
|
|
1037
|
+
// =========================================================================
|
|
1038
|
+
// Subtask Tools
|
|
1039
|
+
// =========================================================================
|
|
1040
|
+
{
|
|
1041
|
+
name: 'add_subtask',
|
|
1042
|
+
description: `Add a subtask to break down a larger task into smaller workable pieces.
|
|
1043
|
+
Subtasks can be claimed and worked on independently by any agent.
|
|
1044
|
+
Subtasks inherit the project from their parent task.
|
|
1045
|
+
Max depth is 1 (subtasks cannot have their own subtasks).`,
|
|
1046
|
+
inputSchema: {
|
|
1047
|
+
type: 'object',
|
|
1048
|
+
properties: {
|
|
1049
|
+
parent_task_id: {
|
|
1050
|
+
type: 'string',
|
|
1051
|
+
description: 'UUID of the parent task to add subtask to',
|
|
1052
|
+
},
|
|
1053
|
+
title: {
|
|
1054
|
+
type: 'string',
|
|
1055
|
+
description: 'Subtask title',
|
|
1056
|
+
},
|
|
1057
|
+
description: {
|
|
1058
|
+
type: 'string',
|
|
1059
|
+
description: 'Detailed description (optional)',
|
|
1060
|
+
},
|
|
1061
|
+
priority: {
|
|
1062
|
+
type: 'number',
|
|
1063
|
+
minimum: 1,
|
|
1064
|
+
maximum: 5,
|
|
1065
|
+
description: 'Priority 1-5 (1 = highest). Defaults to parent task priority.',
|
|
1066
|
+
},
|
|
1067
|
+
estimated_minutes: {
|
|
1068
|
+
type: 'number',
|
|
1069
|
+
minimum: 1,
|
|
1070
|
+
description: 'Estimated time to complete in minutes',
|
|
1071
|
+
},
|
|
1072
|
+
},
|
|
1073
|
+
required: ['parent_task_id', 'title'],
|
|
1074
|
+
},
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
name: 'get_subtasks',
|
|
1078
|
+
description: `Get subtasks for a parent task.
|
|
1079
|
+
Returns subtasks with aggregate completion stats.`,
|
|
1080
|
+
inputSchema: {
|
|
1081
|
+
type: 'object',
|
|
1082
|
+
properties: {
|
|
1083
|
+
parent_task_id: {
|
|
1084
|
+
type: 'string',
|
|
1085
|
+
description: 'UUID of the parent task',
|
|
1086
|
+
},
|
|
1087
|
+
status: {
|
|
1088
|
+
type: 'string',
|
|
1089
|
+
enum: ['backlog', 'pending', 'in_progress', 'completed', 'cancelled'],
|
|
1090
|
+
description: 'Filter by status (optional)',
|
|
1091
|
+
},
|
|
1092
|
+
},
|
|
1093
|
+
required: ['parent_task_id'],
|
|
1094
|
+
},
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
name: 'heartbeat',
|
|
1098
|
+
description: `Send heartbeat to maintain 'active' status. Call every 30-60 seconds.`,
|
|
1099
|
+
inputSchema: {
|
|
1100
|
+
type: 'object',
|
|
1101
|
+
properties: {
|
|
1102
|
+
session_id: {
|
|
1103
|
+
type: 'string',
|
|
1104
|
+
description: 'Session ID from start_work_session (optional, uses current session if not provided)',
|
|
1105
|
+
},
|
|
1106
|
+
},
|
|
1107
|
+
},
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
name: 'end_work_session',
|
|
1111
|
+
description: `End session and release claimed tasks. Returns session summary.`,
|
|
1112
|
+
inputSchema: {
|
|
1113
|
+
type: 'object',
|
|
1114
|
+
properties: {
|
|
1115
|
+
session_id: {
|
|
1116
|
+
type: 'string',
|
|
1117
|
+
description: 'Session ID to end (optional, uses current session if not provided)',
|
|
1118
|
+
},
|
|
1119
|
+
},
|
|
1120
|
+
},
|
|
1121
|
+
},
|
|
1122
|
+
// =========================================================================
|
|
1123
|
+
// Task Validation Tools
|
|
1124
|
+
// =========================================================================
|
|
1125
|
+
{
|
|
1126
|
+
name: 'get_tasks_awaiting_validation',
|
|
1127
|
+
description: `Get completed tasks not yet validated.`,
|
|
1128
|
+
inputSchema: {
|
|
1129
|
+
type: 'object',
|
|
1130
|
+
properties: {
|
|
1131
|
+
project_id: {
|
|
1132
|
+
type: 'string',
|
|
1133
|
+
description: 'Project UUID',
|
|
1134
|
+
},
|
|
1135
|
+
},
|
|
1136
|
+
required: ['project_id'],
|
|
1137
|
+
},
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
name: 'claim_validation',
|
|
1141
|
+
description: 'Claim a completed task for review. Shows "being reviewed" on dashboard.',
|
|
1142
|
+
inputSchema: {
|
|
1143
|
+
type: 'object',
|
|
1144
|
+
properties: {
|
|
1145
|
+
task_id: {
|
|
1146
|
+
type: 'string',
|
|
1147
|
+
description: 'Task UUID to claim for review',
|
|
1148
|
+
},
|
|
1149
|
+
},
|
|
1150
|
+
required: ['task_id'],
|
|
1151
|
+
},
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
name: 'validate_task',
|
|
1155
|
+
description: 'Validate a completed task. Include test results in validation_notes.',
|
|
1156
|
+
inputSchema: {
|
|
1157
|
+
type: 'object',
|
|
1158
|
+
properties: {
|
|
1159
|
+
task_id: {
|
|
1160
|
+
type: 'string',
|
|
1161
|
+
description: 'Task UUID to validate',
|
|
1162
|
+
},
|
|
1163
|
+
validation_notes: {
|
|
1164
|
+
type: 'string',
|
|
1165
|
+
description: 'Notes about the validation (what was checked, any issues found)',
|
|
1166
|
+
},
|
|
1167
|
+
approved: {
|
|
1168
|
+
type: 'boolean',
|
|
1169
|
+
description: 'Whether the task passes validation (true = approved, false = needs more work)',
|
|
1170
|
+
},
|
|
1171
|
+
},
|
|
1172
|
+
required: ['task_id', 'approved'],
|
|
1173
|
+
},
|
|
1174
|
+
},
|
|
1175
|
+
// =========================================================================
|
|
1176
|
+
// Deployment Coordination Tools
|
|
1177
|
+
// =========================================================================
|
|
1178
|
+
{
|
|
1179
|
+
name: 'request_deployment',
|
|
1180
|
+
description: 'Request a deployment. Requires validation first. One active deployment per project.',
|
|
1181
|
+
inputSchema: {
|
|
1182
|
+
type: 'object',
|
|
1183
|
+
properties: {
|
|
1184
|
+
project_id: {
|
|
1185
|
+
type: 'string',
|
|
1186
|
+
description: 'Project UUID',
|
|
1187
|
+
},
|
|
1188
|
+
environment: {
|
|
1189
|
+
type: 'string',
|
|
1190
|
+
enum: ['development', 'staging', 'production'],
|
|
1191
|
+
description: 'Target environment (default: production)',
|
|
1192
|
+
},
|
|
1193
|
+
version_bump: {
|
|
1194
|
+
type: 'string',
|
|
1195
|
+
enum: ['patch', 'minor', 'major'],
|
|
1196
|
+
description: 'Version bump: major/minor/patch (default: patch)',
|
|
1197
|
+
},
|
|
1198
|
+
notes: {
|
|
1199
|
+
type: 'string',
|
|
1200
|
+
description: 'Optional notes about this deployment',
|
|
1201
|
+
},
|
|
1202
|
+
git_ref: {
|
|
1203
|
+
type: 'string',
|
|
1204
|
+
description: 'Git branch or commit being deployed',
|
|
1205
|
+
},
|
|
1206
|
+
},
|
|
1207
|
+
required: ['project_id'],
|
|
1208
|
+
},
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
name: 'claim_deployment_validation',
|
|
1212
|
+
description: `Claim pending deployment for validation. Run build+tests, then call report_validation.`,
|
|
1213
|
+
inputSchema: {
|
|
1214
|
+
type: 'object',
|
|
1215
|
+
properties: {
|
|
1216
|
+
project_id: {
|
|
1217
|
+
type: 'string',
|
|
1218
|
+
description: 'Project UUID',
|
|
1219
|
+
},
|
|
1220
|
+
},
|
|
1221
|
+
required: ['project_id'],
|
|
1222
|
+
},
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
name: 'report_validation',
|
|
1226
|
+
description: `Report build/test results. If passed, status->'ready'. If failed, creates investigation task.`,
|
|
1227
|
+
inputSchema: {
|
|
1228
|
+
type: 'object',
|
|
1229
|
+
properties: {
|
|
1230
|
+
project_id: {
|
|
1231
|
+
type: 'string',
|
|
1232
|
+
description: 'Project UUID',
|
|
1233
|
+
},
|
|
1234
|
+
build_passed: {
|
|
1235
|
+
type: 'boolean',
|
|
1236
|
+
description: 'Whether the build succeeded',
|
|
1237
|
+
},
|
|
1238
|
+
tests_passed: {
|
|
1239
|
+
type: 'boolean',
|
|
1240
|
+
description: 'Whether the tests passed',
|
|
1241
|
+
},
|
|
1242
|
+
error_message: {
|
|
1243
|
+
type: 'string',
|
|
1244
|
+
description: 'Error details if validation failed',
|
|
1245
|
+
},
|
|
1246
|
+
},
|
|
1247
|
+
required: ['project_id', 'build_passed', 'tests_passed'],
|
|
1248
|
+
},
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
name: 'check_deployment_status',
|
|
1252
|
+
description: `Get active deployment status and details.`,
|
|
1253
|
+
inputSchema: {
|
|
1254
|
+
type: 'object',
|
|
1255
|
+
properties: {
|
|
1256
|
+
project_id: {
|
|
1257
|
+
type: 'string',
|
|
1258
|
+
description: 'Project UUID',
|
|
1259
|
+
},
|
|
1260
|
+
},
|
|
1261
|
+
required: ['project_id'],
|
|
1262
|
+
},
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
name: 'start_deployment',
|
|
1266
|
+
description: `Start deployment (requires 'ready' status). Sets status to 'deploying'.`,
|
|
1267
|
+
inputSchema: {
|
|
1268
|
+
type: 'object',
|
|
1269
|
+
properties: {
|
|
1270
|
+
project_id: {
|
|
1271
|
+
type: 'string',
|
|
1272
|
+
description: 'Project UUID',
|
|
1273
|
+
},
|
|
1274
|
+
},
|
|
1275
|
+
required: ['project_id'],
|
|
1276
|
+
},
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
name: 'complete_deployment',
|
|
1280
|
+
description: `Mark deployment as complete (success or failure).`,
|
|
1281
|
+
inputSchema: {
|
|
1282
|
+
type: 'object',
|
|
1283
|
+
properties: {
|
|
1284
|
+
project_id: {
|
|
1285
|
+
type: 'string',
|
|
1286
|
+
description: 'Project UUID',
|
|
1287
|
+
},
|
|
1288
|
+
success: {
|
|
1289
|
+
type: 'boolean',
|
|
1290
|
+
description: 'Whether the deployment succeeded',
|
|
1291
|
+
},
|
|
1292
|
+
summary: {
|
|
1293
|
+
type: 'string',
|
|
1294
|
+
description: 'Summary of what was deployed or why it failed',
|
|
1295
|
+
},
|
|
1296
|
+
},
|
|
1297
|
+
required: ['project_id', 'success'],
|
|
1298
|
+
},
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
name: 'cancel_deployment',
|
|
1302
|
+
description: `Cancel active deployment. Sets status to 'failed'.`,
|
|
1303
|
+
inputSchema: {
|
|
1304
|
+
type: 'object',
|
|
1305
|
+
properties: {
|
|
1306
|
+
project_id: {
|
|
1307
|
+
type: 'string',
|
|
1308
|
+
description: 'Project UUID',
|
|
1309
|
+
},
|
|
1310
|
+
reason: {
|
|
1311
|
+
type: 'string',
|
|
1312
|
+
description: 'Reason for cancellation',
|
|
1313
|
+
},
|
|
1314
|
+
},
|
|
1315
|
+
required: ['project_id'],
|
|
1316
|
+
},
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
name: 'add_deployment_requirement',
|
|
1320
|
+
description: `Add a pre-deployment requirement (migration, env var, config change). These are shown as a checklist before deployment.`,
|
|
1321
|
+
inputSchema: {
|
|
1322
|
+
type: 'object',
|
|
1323
|
+
properties: {
|
|
1324
|
+
project_id: {
|
|
1325
|
+
type: 'string',
|
|
1326
|
+
description: 'Project UUID',
|
|
1327
|
+
},
|
|
1328
|
+
type: {
|
|
1329
|
+
type: 'string',
|
|
1330
|
+
description: 'Type of requirement',
|
|
1331
|
+
enum: ['migration', 'env_var', 'config', 'manual', 'breaking_change', 'agent_task'],
|
|
1332
|
+
},
|
|
1333
|
+
title: {
|
|
1334
|
+
type: 'string',
|
|
1335
|
+
description: 'Brief description (e.g., "Run migration: 20250114_token_tracking.sql")',
|
|
1336
|
+
},
|
|
1337
|
+
description: {
|
|
1338
|
+
type: 'string',
|
|
1339
|
+
description: 'Optional detailed instructions',
|
|
1340
|
+
},
|
|
1341
|
+
file_path: {
|
|
1342
|
+
type: 'string',
|
|
1343
|
+
description: 'Optional file path reference',
|
|
1344
|
+
},
|
|
1345
|
+
stage: {
|
|
1346
|
+
type: 'string',
|
|
1347
|
+
description: 'Deployment stage: preparation (default), deployment, or verification',
|
|
1348
|
+
enum: ['preparation', 'deployment', 'verification'],
|
|
1349
|
+
},
|
|
1350
|
+
blocking: {
|
|
1351
|
+
type: 'boolean',
|
|
1352
|
+
description: 'When true, converted task blocks all other work until complete',
|
|
1353
|
+
},
|
|
1354
|
+
},
|
|
1355
|
+
required: ['project_id', 'type', 'title'],
|
|
1356
|
+
},
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
name: 'complete_deployment_requirement',
|
|
1360
|
+
description: `Mark a deployment requirement as completed.`,
|
|
1361
|
+
inputSchema: {
|
|
1362
|
+
type: 'object',
|
|
1363
|
+
properties: {
|
|
1364
|
+
requirement_id: {
|
|
1365
|
+
type: 'string',
|
|
1366
|
+
description: 'Requirement UUID',
|
|
1367
|
+
},
|
|
1368
|
+
},
|
|
1369
|
+
required: ['requirement_id'],
|
|
1370
|
+
},
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
name: 'get_deployment_requirements',
|
|
1374
|
+
description: `Get pending deployment requirements for a project.`,
|
|
1375
|
+
inputSchema: {
|
|
1376
|
+
type: 'object',
|
|
1377
|
+
properties: {
|
|
1378
|
+
project_id: {
|
|
1379
|
+
type: 'string',
|
|
1380
|
+
description: 'Project UUID',
|
|
1381
|
+
},
|
|
1382
|
+
status: {
|
|
1383
|
+
type: 'string',
|
|
1384
|
+
description: 'Filter by status (default: pending)',
|
|
1385
|
+
enum: ['pending', 'completed', 'converted_to_task', 'all'],
|
|
1386
|
+
},
|
|
1387
|
+
stage: {
|
|
1388
|
+
type: 'string',
|
|
1389
|
+
description: 'Filter by stage (optional)',
|
|
1390
|
+
enum: ['preparation', 'deployment', 'verification', 'all'],
|
|
1391
|
+
},
|
|
1392
|
+
},
|
|
1393
|
+
required: ['project_id'],
|
|
1394
|
+
},
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
name: 'schedule_deployment',
|
|
1398
|
+
description: `Schedule a deployment for a specific time. Supports one-time and recurring schedules with auto-trigger or manual trigger modes.`,
|
|
1399
|
+
inputSchema: {
|
|
1400
|
+
type: 'object',
|
|
1401
|
+
properties: {
|
|
1402
|
+
project_id: {
|
|
1403
|
+
type: 'string',
|
|
1404
|
+
description: 'Project UUID',
|
|
1405
|
+
},
|
|
1406
|
+
scheduled_at: {
|
|
1407
|
+
type: 'string',
|
|
1408
|
+
description: 'ISO 8601 datetime for when the deployment should be triggered',
|
|
1409
|
+
},
|
|
1410
|
+
schedule_type: {
|
|
1411
|
+
type: 'string',
|
|
1412
|
+
description: 'Schedule type: once (one-time), daily, weekly, or monthly',
|
|
1413
|
+
enum: ['once', 'daily', 'weekly', 'monthly'],
|
|
1414
|
+
},
|
|
1415
|
+
auto_trigger: {
|
|
1416
|
+
type: 'boolean',
|
|
1417
|
+
description: 'Whether agents should automatically trigger this deployment when due (default: true)',
|
|
1418
|
+
},
|
|
1419
|
+
environment: {
|
|
1420
|
+
type: 'string',
|
|
1421
|
+
description: 'Target environment (default: production)',
|
|
1422
|
+
enum: ['development', 'staging', 'production'],
|
|
1423
|
+
},
|
|
1424
|
+
version_bump: {
|
|
1425
|
+
type: 'string',
|
|
1426
|
+
description: 'Version bump: patch, minor, or major (default: patch)',
|
|
1427
|
+
enum: ['patch', 'minor', 'major'],
|
|
1428
|
+
},
|
|
1429
|
+
notes: {
|
|
1430
|
+
type: 'string',
|
|
1431
|
+
description: 'Optional notes about this scheduled deployment',
|
|
1432
|
+
},
|
|
1433
|
+
git_ref: {
|
|
1434
|
+
type: 'string',
|
|
1435
|
+
description: 'Optional git branch or commit to deploy',
|
|
1436
|
+
},
|
|
1437
|
+
},
|
|
1438
|
+
required: ['project_id', 'scheduled_at'],
|
|
1439
|
+
},
|
|
1440
|
+
},
|
|
1441
|
+
{
|
|
1442
|
+
name: 'get_scheduled_deployments',
|
|
1443
|
+
description: `Get scheduled deployments for a project.`,
|
|
1444
|
+
inputSchema: {
|
|
1445
|
+
type: 'object',
|
|
1446
|
+
properties: {
|
|
1447
|
+
project_id: {
|
|
1448
|
+
type: 'string',
|
|
1449
|
+
description: 'Project UUID',
|
|
1450
|
+
},
|
|
1451
|
+
include_disabled: {
|
|
1452
|
+
type: 'boolean',
|
|
1453
|
+
description: 'Include disabled schedules (default: false)',
|
|
1454
|
+
},
|
|
1455
|
+
},
|
|
1456
|
+
required: ['project_id'],
|
|
1457
|
+
},
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
name: 'update_scheduled_deployment',
|
|
1461
|
+
description: `Update a scheduled deployment's configuration.`,
|
|
1462
|
+
inputSchema: {
|
|
1463
|
+
type: 'object',
|
|
1464
|
+
properties: {
|
|
1465
|
+
schedule_id: {
|
|
1466
|
+
type: 'string',
|
|
1467
|
+
description: 'Schedule UUID',
|
|
1468
|
+
},
|
|
1469
|
+
scheduled_at: {
|
|
1470
|
+
type: 'string',
|
|
1471
|
+
description: 'New scheduled time (ISO 8601)',
|
|
1472
|
+
},
|
|
1473
|
+
schedule_type: {
|
|
1474
|
+
type: 'string',
|
|
1475
|
+
description: 'New schedule type',
|
|
1476
|
+
enum: ['once', 'daily', 'weekly', 'monthly'],
|
|
1477
|
+
},
|
|
1478
|
+
auto_trigger: {
|
|
1479
|
+
type: 'boolean',
|
|
1480
|
+
description: 'Whether to auto-trigger',
|
|
1481
|
+
},
|
|
1482
|
+
enabled: {
|
|
1483
|
+
type: 'boolean',
|
|
1484
|
+
description: 'Enable or disable the schedule',
|
|
1485
|
+
},
|
|
1486
|
+
environment: {
|
|
1487
|
+
type: 'string',
|
|
1488
|
+
description: 'Target environment',
|
|
1489
|
+
enum: ['development', 'staging', 'production'],
|
|
1490
|
+
},
|
|
1491
|
+
version_bump: {
|
|
1492
|
+
type: 'string',
|
|
1493
|
+
description: 'Version bump type',
|
|
1494
|
+
enum: ['patch', 'minor', 'major'],
|
|
1495
|
+
},
|
|
1496
|
+
notes: {
|
|
1497
|
+
type: 'string',
|
|
1498
|
+
description: 'Notes about this deployment',
|
|
1499
|
+
},
|
|
1500
|
+
git_ref: {
|
|
1501
|
+
type: 'string',
|
|
1502
|
+
description: 'Git branch or commit to deploy',
|
|
1503
|
+
},
|
|
1504
|
+
},
|
|
1505
|
+
required: ['schedule_id'],
|
|
1506
|
+
},
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
name: 'delete_scheduled_deployment',
|
|
1510
|
+
description: `Delete a scheduled deployment.`,
|
|
1511
|
+
inputSchema: {
|
|
1512
|
+
type: 'object',
|
|
1513
|
+
properties: {
|
|
1514
|
+
schedule_id: {
|
|
1515
|
+
type: 'string',
|
|
1516
|
+
description: 'Schedule UUID',
|
|
1517
|
+
},
|
|
1518
|
+
},
|
|
1519
|
+
required: ['schedule_id'],
|
|
1520
|
+
},
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
name: 'trigger_scheduled_deployment',
|
|
1524
|
+
description: `Manually trigger a scheduled deployment. Creates a new deployment and updates the schedule.`,
|
|
1525
|
+
inputSchema: {
|
|
1526
|
+
type: 'object',
|
|
1527
|
+
properties: {
|
|
1528
|
+
schedule_id: {
|
|
1529
|
+
type: 'string',
|
|
1530
|
+
description: 'Schedule UUID',
|
|
1531
|
+
},
|
|
1532
|
+
},
|
|
1533
|
+
required: ['schedule_id'],
|
|
1534
|
+
},
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
name: 'check_due_deployments',
|
|
1538
|
+
description: `Check for scheduled deployments that are due. Returns schedules where: enabled AND auto_trigger AND scheduled_at <= NOW().`,
|
|
1539
|
+
inputSchema: {
|
|
1540
|
+
type: 'object',
|
|
1541
|
+
properties: {
|
|
1542
|
+
project_id: {
|
|
1543
|
+
type: 'string',
|
|
1544
|
+
description: 'Project UUID',
|
|
1545
|
+
},
|
|
1546
|
+
},
|
|
1547
|
+
required: ['project_id'],
|
|
1548
|
+
},
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
name: 'start_fallback_activity',
|
|
1552
|
+
description: `Start a background activity when no tasks available.`,
|
|
1553
|
+
inputSchema: {
|
|
1554
|
+
type: 'object',
|
|
1555
|
+
properties: {
|
|
1556
|
+
project_id: {
|
|
1557
|
+
type: 'string',
|
|
1558
|
+
description: 'Project UUID',
|
|
1559
|
+
},
|
|
1560
|
+
activity: {
|
|
1561
|
+
type: 'string',
|
|
1562
|
+
description: 'The fallback activity type (e.g., code_review, security_review)',
|
|
1563
|
+
enum: [
|
|
1564
|
+
'feature_ideation',
|
|
1565
|
+
'code_review',
|
|
1566
|
+
'performance_audit',
|
|
1567
|
+
'ux_review',
|
|
1568
|
+
'cost_analysis',
|
|
1569
|
+
'security_review',
|
|
1570
|
+
'test_coverage',
|
|
1571
|
+
'documentation_review',
|
|
1572
|
+
'dependency_audit',
|
|
1573
|
+
'validate_completed_tasks',
|
|
1574
|
+
],
|
|
1575
|
+
},
|
|
1576
|
+
},
|
|
1577
|
+
required: ['project_id', 'activity'],
|
|
1578
|
+
},
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
name: 'stop_fallback_activity',
|
|
1582
|
+
description: `Stop current fallback activity. Auto-clears when starting a regular task.`,
|
|
1583
|
+
inputSchema: {
|
|
1584
|
+
type: 'object',
|
|
1585
|
+
properties: {
|
|
1586
|
+
project_id: {
|
|
1587
|
+
type: 'string',
|
|
1588
|
+
description: 'Project UUID',
|
|
1589
|
+
},
|
|
1590
|
+
summary: {
|
|
1591
|
+
type: 'string',
|
|
1592
|
+
description: 'Optional summary of what was accomplished during this activity',
|
|
1593
|
+
},
|
|
1594
|
+
},
|
|
1595
|
+
required: ['project_id'],
|
|
1596
|
+
},
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
name: 'get_activity_history',
|
|
1600
|
+
description: `Get background activity completion history.`,
|
|
1601
|
+
inputSchema: {
|
|
1602
|
+
type: 'object',
|
|
1603
|
+
properties: {
|
|
1604
|
+
project_id: {
|
|
1605
|
+
type: 'string',
|
|
1606
|
+
description: 'Project UUID',
|
|
1607
|
+
},
|
|
1608
|
+
activity_type: {
|
|
1609
|
+
type: 'string',
|
|
1610
|
+
description: 'Optional: filter to a specific activity type',
|
|
1611
|
+
},
|
|
1612
|
+
limit: {
|
|
1613
|
+
type: 'number',
|
|
1614
|
+
description: 'Max number of history entries to return (default 50)',
|
|
1615
|
+
},
|
|
1616
|
+
},
|
|
1617
|
+
required: ['project_id'],
|
|
1618
|
+
},
|
|
1619
|
+
},
|
|
1620
|
+
{
|
|
1621
|
+
name: 'get_activity_schedules',
|
|
1622
|
+
description: `Get background activity schedules.`,
|
|
1623
|
+
inputSchema: {
|
|
1624
|
+
type: 'object',
|
|
1625
|
+
properties: {
|
|
1626
|
+
project_id: {
|
|
1627
|
+
type: 'string',
|
|
1628
|
+
description: 'Project UUID',
|
|
1629
|
+
},
|
|
1630
|
+
},
|
|
1631
|
+
required: ['project_id'],
|
|
1632
|
+
},
|
|
1633
|
+
},
|
|
1634
|
+
// =========================================================================
|
|
1635
|
+
// Agent Request Tools
|
|
1636
|
+
// =========================================================================
|
|
1637
|
+
{
|
|
1638
|
+
name: 'get_pending_requests',
|
|
1639
|
+
description: `Get unacknowledged user requests for this agent/project.`,
|
|
1640
|
+
inputSchema: {
|
|
1641
|
+
type: 'object',
|
|
1642
|
+
properties: {
|
|
1643
|
+
project_id: {
|
|
1644
|
+
type: 'string',
|
|
1645
|
+
description: 'Project UUID',
|
|
1646
|
+
},
|
|
1647
|
+
},
|
|
1648
|
+
required: ['project_id'],
|
|
1649
|
+
},
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
name: 'acknowledge_request',
|
|
1653
|
+
description: `Mark a user request as handled.`,
|
|
1654
|
+
inputSchema: {
|
|
1655
|
+
type: 'object',
|
|
1656
|
+
properties: {
|
|
1657
|
+
request_id: {
|
|
1658
|
+
type: 'string',
|
|
1659
|
+
description: 'Request UUID to acknowledge',
|
|
1660
|
+
},
|
|
1661
|
+
},
|
|
1662
|
+
required: ['request_id'],
|
|
1663
|
+
},
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
name: 'answer_question',
|
|
1667
|
+
description: `Answer a question from the user. Use this when the user has asked a question via the dashboard.
|
|
1668
|
+
The answer will be displayed to the user and the question marked as answered.`,
|
|
1669
|
+
inputSchema: {
|
|
1670
|
+
type: 'object',
|
|
1671
|
+
properties: {
|
|
1672
|
+
request_id: {
|
|
1673
|
+
type: 'string',
|
|
1674
|
+
description: 'Request UUID of the question to answer',
|
|
1675
|
+
},
|
|
1676
|
+
answer: {
|
|
1677
|
+
type: 'string',
|
|
1678
|
+
description: 'Your answer to the user\'s question',
|
|
1679
|
+
},
|
|
1680
|
+
},
|
|
1681
|
+
required: ['request_id', 'answer'],
|
|
1682
|
+
},
|
|
1683
|
+
},
|
|
1684
|
+
// ============================================================================
|
|
1685
|
+
// Milestone Tools
|
|
1686
|
+
// ============================================================================
|
|
1687
|
+
{
|
|
1688
|
+
name: 'add_milestone',
|
|
1689
|
+
description: `Add a milestone to a task.
|
|
1690
|
+
Milestones help break down large tasks into smaller trackable steps.
|
|
1691
|
+
Use this to show progress on complex tasks and help gauge completion.`,
|
|
1692
|
+
inputSchema: {
|
|
1693
|
+
type: 'object',
|
|
1694
|
+
properties: {
|
|
1695
|
+
task_id: {
|
|
1696
|
+
type: 'string',
|
|
1697
|
+
description: 'Task UUID to add milestone to',
|
|
1698
|
+
},
|
|
1699
|
+
title: {
|
|
1700
|
+
type: 'string',
|
|
1701
|
+
description: 'Milestone title (brief description of what needs to be done)',
|
|
1702
|
+
},
|
|
1703
|
+
description: {
|
|
1704
|
+
type: 'string',
|
|
1705
|
+
description: 'Optional detailed description',
|
|
1706
|
+
},
|
|
1707
|
+
order_index: {
|
|
1708
|
+
type: 'number',
|
|
1709
|
+
minimum: 0,
|
|
1710
|
+
description: 'Order of this milestone (0-based, defaults to end of list)',
|
|
1711
|
+
},
|
|
1712
|
+
},
|
|
1713
|
+
required: ['task_id', 'title'],
|
|
1714
|
+
},
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
name: 'update_milestone',
|
|
1718
|
+
description: `Update a milestone's title, description, status, or order.`,
|
|
1719
|
+
inputSchema: {
|
|
1720
|
+
type: 'object',
|
|
1721
|
+
properties: {
|
|
1722
|
+
milestone_id: {
|
|
1723
|
+
type: 'string',
|
|
1724
|
+
description: 'Milestone UUID',
|
|
1725
|
+
},
|
|
1726
|
+
title: {
|
|
1727
|
+
type: 'string',
|
|
1728
|
+
description: 'Updated title',
|
|
1729
|
+
},
|
|
1730
|
+
description: {
|
|
1731
|
+
type: 'string',
|
|
1732
|
+
description: 'Updated description',
|
|
1733
|
+
},
|
|
1734
|
+
status: {
|
|
1735
|
+
type: 'string',
|
|
1736
|
+
enum: ['pending', 'in_progress', 'completed'],
|
|
1737
|
+
description: 'Milestone status',
|
|
1738
|
+
},
|
|
1739
|
+
order_index: {
|
|
1740
|
+
type: 'number',
|
|
1741
|
+
minimum: 0,
|
|
1742
|
+
description: 'Updated order',
|
|
1743
|
+
},
|
|
1744
|
+
},
|
|
1745
|
+
required: ['milestone_id'],
|
|
1746
|
+
},
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
name: 'complete_milestone',
|
|
1750
|
+
description: `Mark a milestone as completed. This is a convenience wrapper for update_milestone with status=completed.`,
|
|
1751
|
+
inputSchema: {
|
|
1752
|
+
type: 'object',
|
|
1753
|
+
properties: {
|
|
1754
|
+
milestone_id: {
|
|
1755
|
+
type: 'string',
|
|
1756
|
+
description: 'Milestone UUID',
|
|
1757
|
+
},
|
|
1758
|
+
},
|
|
1759
|
+
required: ['milestone_id'],
|
|
1760
|
+
},
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
name: 'delete_milestone',
|
|
1764
|
+
description: `Delete a milestone from a task.`,
|
|
1765
|
+
inputSchema: {
|
|
1766
|
+
type: 'object',
|
|
1767
|
+
properties: {
|
|
1768
|
+
milestone_id: {
|
|
1769
|
+
type: 'string',
|
|
1770
|
+
description: 'Milestone UUID',
|
|
1771
|
+
},
|
|
1772
|
+
},
|
|
1773
|
+
required: ['milestone_id'],
|
|
1774
|
+
},
|
|
1775
|
+
},
|
|
1776
|
+
{
|
|
1777
|
+
name: 'get_milestones',
|
|
1778
|
+
description: `Get all milestones for a task, ordered by order_index.`,
|
|
1779
|
+
inputSchema: {
|
|
1780
|
+
type: 'object',
|
|
1781
|
+
properties: {
|
|
1782
|
+
task_id: {
|
|
1783
|
+
type: 'string',
|
|
1784
|
+
description: 'Task UUID',
|
|
1785
|
+
},
|
|
1786
|
+
},
|
|
1787
|
+
required: ['task_id'],
|
|
1788
|
+
},
|
|
1789
|
+
},
|
|
1790
|
+
// ============================================================================
|
|
1791
|
+
// Bodies of Work Tools
|
|
1792
|
+
// ============================================================================
|
|
1793
|
+
{
|
|
1794
|
+
name: 'create_body_of_work',
|
|
1795
|
+
description: `Create a new body of work to group tasks into phases (pre/core/post).
|
|
1796
|
+
Bodies of work allow organizing related tasks with optional auto-deployment on completion.`,
|
|
1797
|
+
inputSchema: {
|
|
1798
|
+
type: 'object',
|
|
1799
|
+
properties: {
|
|
1800
|
+
project_id: {
|
|
1801
|
+
type: 'string',
|
|
1802
|
+
description: 'Project UUID',
|
|
1803
|
+
},
|
|
1804
|
+
title: {
|
|
1805
|
+
type: 'string',
|
|
1806
|
+
description: 'Title for the body of work',
|
|
1807
|
+
},
|
|
1808
|
+
description: {
|
|
1809
|
+
type: 'string',
|
|
1810
|
+
description: 'Optional description',
|
|
1811
|
+
},
|
|
1812
|
+
auto_deploy_on_completion: {
|
|
1813
|
+
type: 'boolean',
|
|
1814
|
+
description: 'Automatically request deployment when all tasks complete (default: false)',
|
|
1815
|
+
},
|
|
1816
|
+
deploy_environment: {
|
|
1817
|
+
type: 'string',
|
|
1818
|
+
enum: ['development', 'staging', 'production'],
|
|
1819
|
+
description: 'Target environment for auto-deploy (default: production)',
|
|
1820
|
+
},
|
|
1821
|
+
deploy_version_bump: {
|
|
1822
|
+
type: 'string',
|
|
1823
|
+
enum: ['patch', 'minor', 'major'],
|
|
1824
|
+
description: 'Version bump for auto-deploy (default: minor)',
|
|
1825
|
+
},
|
|
1826
|
+
deploy_trigger: {
|
|
1827
|
+
type: 'string',
|
|
1828
|
+
enum: ['all_completed', 'all_completed_validated'],
|
|
1829
|
+
description: 'When to trigger auto-deploy: all_completed (immediate) or all_completed_validated (requires validation, default)',
|
|
1830
|
+
},
|
|
1831
|
+
},
|
|
1832
|
+
required: ['project_id', 'title'],
|
|
1833
|
+
},
|
|
1834
|
+
},
|
|
1835
|
+
{
|
|
1836
|
+
name: 'update_body_of_work',
|
|
1837
|
+
description: `Update a body of work's settings.`,
|
|
1838
|
+
inputSchema: {
|
|
1839
|
+
type: 'object',
|
|
1840
|
+
properties: {
|
|
1841
|
+
body_of_work_id: {
|
|
1842
|
+
type: 'string',
|
|
1843
|
+
description: 'Body of work UUID',
|
|
1844
|
+
},
|
|
1845
|
+
title: {
|
|
1846
|
+
type: 'string',
|
|
1847
|
+
description: 'Updated title',
|
|
1848
|
+
},
|
|
1849
|
+
description: {
|
|
1850
|
+
type: 'string',
|
|
1851
|
+
description: 'Updated description',
|
|
1852
|
+
},
|
|
1853
|
+
auto_deploy_on_completion: {
|
|
1854
|
+
type: 'boolean',
|
|
1855
|
+
description: 'Auto-deploy setting',
|
|
1856
|
+
},
|
|
1857
|
+
deploy_environment: {
|
|
1858
|
+
type: 'string',
|
|
1859
|
+
enum: ['development', 'staging', 'production'],
|
|
1860
|
+
description: 'Target environment',
|
|
1861
|
+
},
|
|
1862
|
+
deploy_version_bump: {
|
|
1863
|
+
type: 'string',
|
|
1864
|
+
enum: ['patch', 'minor', 'major'],
|
|
1865
|
+
description: 'Version bump type',
|
|
1866
|
+
},
|
|
1867
|
+
deploy_trigger: {
|
|
1868
|
+
type: 'string',
|
|
1869
|
+
enum: ['all_completed', 'all_completed_validated'],
|
|
1870
|
+
description: 'When to trigger auto-deploy',
|
|
1871
|
+
},
|
|
1872
|
+
},
|
|
1873
|
+
required: ['body_of_work_id'],
|
|
1874
|
+
},
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
name: 'get_body_of_work',
|
|
1878
|
+
description: `Get a body of work with all its tasks organized by phase.`,
|
|
1879
|
+
inputSchema: {
|
|
1880
|
+
type: 'object',
|
|
1881
|
+
properties: {
|
|
1882
|
+
body_of_work_id: {
|
|
1883
|
+
type: 'string',
|
|
1884
|
+
description: 'Body of work UUID',
|
|
1885
|
+
},
|
|
1886
|
+
},
|
|
1887
|
+
required: ['body_of_work_id'],
|
|
1888
|
+
},
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
name: 'get_bodies_of_work',
|
|
1892
|
+
description: `List bodies of work for a project with task counts per phase.`,
|
|
1893
|
+
inputSchema: {
|
|
1894
|
+
type: 'object',
|
|
1895
|
+
properties: {
|
|
1896
|
+
project_id: {
|
|
1897
|
+
type: 'string',
|
|
1898
|
+
description: 'Project UUID',
|
|
1899
|
+
},
|
|
1900
|
+
status: {
|
|
1901
|
+
type: 'string',
|
|
1902
|
+
enum: ['draft', 'active', 'completed', 'cancelled'],
|
|
1903
|
+
description: 'Filter by status (optional)',
|
|
1904
|
+
},
|
|
1905
|
+
},
|
|
1906
|
+
required: ['project_id'],
|
|
1907
|
+
},
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
name: 'delete_body_of_work',
|
|
1911
|
+
description: `Delete a body of work. Tasks are preserved but no longer grouped.`,
|
|
1912
|
+
inputSchema: {
|
|
1913
|
+
type: 'object',
|
|
1914
|
+
properties: {
|
|
1915
|
+
body_of_work_id: {
|
|
1916
|
+
type: 'string',
|
|
1917
|
+
description: 'Body of work UUID',
|
|
1918
|
+
},
|
|
1919
|
+
},
|
|
1920
|
+
required: ['body_of_work_id'],
|
|
1921
|
+
},
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
name: 'add_task_to_body_of_work',
|
|
1925
|
+
description: `Add a task to a body of work in a specific phase.
|
|
1926
|
+
Phases control execution order: pre tasks run first, then core, then post.`,
|
|
1927
|
+
inputSchema: {
|
|
1928
|
+
type: 'object',
|
|
1929
|
+
properties: {
|
|
1930
|
+
body_of_work_id: {
|
|
1931
|
+
type: 'string',
|
|
1932
|
+
description: 'Body of work UUID',
|
|
1933
|
+
},
|
|
1934
|
+
task_id: {
|
|
1935
|
+
type: 'string',
|
|
1936
|
+
description: 'Task UUID to add',
|
|
1937
|
+
},
|
|
1938
|
+
phase: {
|
|
1939
|
+
type: 'string',
|
|
1940
|
+
enum: ['pre', 'core', 'post'],
|
|
1941
|
+
description: 'Task phase (default: core)',
|
|
1942
|
+
},
|
|
1943
|
+
order_index: {
|
|
1944
|
+
type: 'number',
|
|
1945
|
+
description: 'Order within phase (auto-assigned if not specified)',
|
|
1946
|
+
},
|
|
1947
|
+
},
|
|
1948
|
+
required: ['body_of_work_id', 'task_id'],
|
|
1949
|
+
},
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
name: 'remove_task_from_body_of_work',
|
|
1953
|
+
description: `Remove a task from its body of work. The task is preserved.`,
|
|
1954
|
+
inputSchema: {
|
|
1955
|
+
type: 'object',
|
|
1956
|
+
properties: {
|
|
1957
|
+
task_id: {
|
|
1958
|
+
type: 'string',
|
|
1959
|
+
description: 'Task UUID to remove',
|
|
1960
|
+
},
|
|
1961
|
+
},
|
|
1962
|
+
required: ['task_id'],
|
|
1963
|
+
},
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
name: 'activate_body_of_work',
|
|
1967
|
+
description: `Activate a draft body of work to start execution.
|
|
1968
|
+
Requires at least one task. Once active, tasks can be worked on following phase order.`,
|
|
1969
|
+
inputSchema: {
|
|
1970
|
+
type: 'object',
|
|
1971
|
+
properties: {
|
|
1972
|
+
body_of_work_id: {
|
|
1973
|
+
type: 'string',
|
|
1974
|
+
description: 'Body of work UUID',
|
|
1975
|
+
},
|
|
1976
|
+
},
|
|
1977
|
+
required: ['body_of_work_id'],
|
|
1978
|
+
},
|
|
1979
|
+
},
|
|
1980
|
+
{
|
|
1981
|
+
name: 'add_task_dependency',
|
|
1982
|
+
description: `Add a dependency between tasks in a body of work.
|
|
1983
|
+
The dependent task cannot start until the dependency is completed. Prevents circular dependencies.`,
|
|
1984
|
+
inputSchema: {
|
|
1985
|
+
type: 'object',
|
|
1986
|
+
properties: {
|
|
1987
|
+
body_of_work_id: {
|
|
1988
|
+
type: 'string',
|
|
1989
|
+
description: 'Body of work UUID',
|
|
1990
|
+
},
|
|
1991
|
+
task_id: {
|
|
1992
|
+
type: 'string',
|
|
1993
|
+
description: 'Task that depends on another task',
|
|
1994
|
+
},
|
|
1995
|
+
depends_on_task_id: {
|
|
1996
|
+
type: 'string',
|
|
1997
|
+
description: 'Task that must complete first',
|
|
1998
|
+
},
|
|
1999
|
+
},
|
|
2000
|
+
required: ['body_of_work_id', 'task_id', 'depends_on_task_id'],
|
|
2001
|
+
},
|
|
2002
|
+
},
|
|
2003
|
+
{
|
|
2004
|
+
name: 'remove_task_dependency',
|
|
2005
|
+
description: `Remove a dependency between tasks.`,
|
|
2006
|
+
inputSchema: {
|
|
2007
|
+
type: 'object',
|
|
2008
|
+
properties: {
|
|
2009
|
+
task_id: {
|
|
2010
|
+
type: 'string',
|
|
2011
|
+
description: 'Task UUID',
|
|
2012
|
+
},
|
|
2013
|
+
depends_on_task_id: {
|
|
2014
|
+
type: 'string',
|
|
2015
|
+
description: 'Dependency task UUID',
|
|
2016
|
+
},
|
|
2017
|
+
},
|
|
2018
|
+
required: ['task_id', 'depends_on_task_id'],
|
|
2019
|
+
},
|
|
2020
|
+
},
|
|
2021
|
+
{
|
|
2022
|
+
name: 'get_task_dependencies',
|
|
2023
|
+
description: `Get task dependencies for a body of work or specific task.`,
|
|
2024
|
+
inputSchema: {
|
|
2025
|
+
type: 'object',
|
|
2026
|
+
properties: {
|
|
2027
|
+
body_of_work_id: {
|
|
2028
|
+
type: 'string',
|
|
2029
|
+
description: 'Body of work UUID (optional if task_id provided)',
|
|
2030
|
+
},
|
|
2031
|
+
task_id: {
|
|
2032
|
+
type: 'string',
|
|
2033
|
+
description: 'Specific task UUID (optional if body_of_work_id provided)',
|
|
2034
|
+
},
|
|
2035
|
+
},
|
|
2036
|
+
},
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
name: 'get_next_body_of_work_task',
|
|
2040
|
+
description: `Get the next available task from a body of work.
|
|
2041
|
+
Considers phase order (pre → core → post) and task dependencies.
|
|
2042
|
+
Only returns tasks where all dependencies are completed.`,
|
|
2043
|
+
inputSchema: {
|
|
2044
|
+
type: 'object',
|
|
2045
|
+
properties: {
|
|
2046
|
+
body_of_work_id: {
|
|
2047
|
+
type: 'string',
|
|
2048
|
+
description: 'Body of work UUID',
|
|
2049
|
+
},
|
|
2050
|
+
},
|
|
2051
|
+
required: ['body_of_work_id'],
|
|
2052
|
+
},
|
|
2053
|
+
},
|
|
2054
|
+
// ============================================================================
|
|
2055
|
+
// Organization Tools
|
|
2056
|
+
// ============================================================================
|
|
2057
|
+
{
|
|
2058
|
+
name: 'list_organizations',
|
|
2059
|
+
description: 'List organizations the current user belongs to.',
|
|
2060
|
+
inputSchema: {
|
|
2061
|
+
type: 'object',
|
|
2062
|
+
properties: {},
|
|
2063
|
+
},
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
name: 'create_organization',
|
|
2067
|
+
description: 'Create a new organization. You become the owner.',
|
|
2068
|
+
inputSchema: {
|
|
2069
|
+
type: 'object',
|
|
2070
|
+
properties: {
|
|
2071
|
+
name: {
|
|
2072
|
+
type: 'string',
|
|
2073
|
+
description: 'Organization display name',
|
|
2074
|
+
},
|
|
2075
|
+
description: {
|
|
2076
|
+
type: 'string',
|
|
2077
|
+
description: 'Brief description of the organization',
|
|
2078
|
+
},
|
|
2079
|
+
slug: {
|
|
2080
|
+
type: 'string',
|
|
2081
|
+
description: 'URL-friendly identifier (auto-generated from name if not provided)',
|
|
2082
|
+
},
|
|
2083
|
+
},
|
|
2084
|
+
required: ['name'],
|
|
2085
|
+
},
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
name: 'update_organization',
|
|
2089
|
+
description: 'Update organization details. Requires admin role.',
|
|
2090
|
+
inputSchema: {
|
|
2091
|
+
type: 'object',
|
|
2092
|
+
properties: {
|
|
2093
|
+
organization_id: {
|
|
2094
|
+
type: 'string',
|
|
2095
|
+
description: 'Organization UUID',
|
|
2096
|
+
},
|
|
2097
|
+
name: {
|
|
2098
|
+
type: 'string',
|
|
2099
|
+
description: 'New organization name',
|
|
2100
|
+
},
|
|
2101
|
+
description: {
|
|
2102
|
+
type: 'string',
|
|
2103
|
+
description: 'New description',
|
|
2104
|
+
},
|
|
2105
|
+
logo_url: {
|
|
2106
|
+
type: 'string',
|
|
2107
|
+
description: 'URL to organization logo',
|
|
2108
|
+
},
|
|
2109
|
+
},
|
|
2110
|
+
required: ['organization_id'],
|
|
2111
|
+
},
|
|
2112
|
+
},
|
|
2113
|
+
{
|
|
2114
|
+
name: 'delete_organization',
|
|
2115
|
+
description: 'Delete an organization. Requires owner role. Removes all shares.',
|
|
2116
|
+
inputSchema: {
|
|
2117
|
+
type: 'object',
|
|
2118
|
+
properties: {
|
|
2119
|
+
organization_id: {
|
|
2120
|
+
type: 'string',
|
|
2121
|
+
description: 'Organization UUID',
|
|
2122
|
+
},
|
|
2123
|
+
},
|
|
2124
|
+
required: ['organization_id'],
|
|
2125
|
+
},
|
|
2126
|
+
},
|
|
2127
|
+
{
|
|
2128
|
+
name: 'list_org_members',
|
|
2129
|
+
description: 'List members of an organization.',
|
|
2130
|
+
inputSchema: {
|
|
2131
|
+
type: 'object',
|
|
2132
|
+
properties: {
|
|
2133
|
+
organization_id: {
|
|
2134
|
+
type: 'string',
|
|
2135
|
+
description: 'Organization UUID',
|
|
2136
|
+
},
|
|
2137
|
+
},
|
|
2138
|
+
required: ['organization_id'],
|
|
2139
|
+
},
|
|
2140
|
+
},
|
|
2141
|
+
{
|
|
2142
|
+
name: 'invite_member',
|
|
2143
|
+
description: 'Invite a user to an organization by email. Requires admin role.',
|
|
2144
|
+
inputSchema: {
|
|
2145
|
+
type: 'object',
|
|
2146
|
+
properties: {
|
|
2147
|
+
organization_id: {
|
|
2148
|
+
type: 'string',
|
|
2149
|
+
description: 'Organization UUID',
|
|
2150
|
+
},
|
|
2151
|
+
email: {
|
|
2152
|
+
type: 'string',
|
|
2153
|
+
description: 'Email address to invite',
|
|
2154
|
+
},
|
|
2155
|
+
role: {
|
|
2156
|
+
type: 'string',
|
|
2157
|
+
enum: ['admin', 'member', 'viewer'],
|
|
2158
|
+
description: 'Role to assign (default: member)',
|
|
2159
|
+
},
|
|
2160
|
+
},
|
|
2161
|
+
required: ['organization_id', 'email'],
|
|
2162
|
+
},
|
|
2163
|
+
},
|
|
2164
|
+
{
|
|
2165
|
+
name: 'update_member_role',
|
|
2166
|
+
description: 'Change a member\'s role. Requires admin role. Cannot change owner.',
|
|
2167
|
+
inputSchema: {
|
|
2168
|
+
type: 'object',
|
|
2169
|
+
properties: {
|
|
2170
|
+
organization_id: {
|
|
2171
|
+
type: 'string',
|
|
2172
|
+
description: 'Organization UUID',
|
|
2173
|
+
},
|
|
2174
|
+
user_id: {
|
|
2175
|
+
type: 'string',
|
|
2176
|
+
description: 'User UUID to update',
|
|
2177
|
+
},
|
|
2178
|
+
role: {
|
|
2179
|
+
type: 'string',
|
|
2180
|
+
enum: ['admin', 'member', 'viewer'],
|
|
2181
|
+
description: 'New role to assign',
|
|
2182
|
+
},
|
|
2183
|
+
},
|
|
2184
|
+
required: ['organization_id', 'user_id', 'role'],
|
|
2185
|
+
},
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
name: 'remove_member',
|
|
2189
|
+
description: 'Remove a member from an organization. Requires admin role.',
|
|
2190
|
+
inputSchema: {
|
|
2191
|
+
type: 'object',
|
|
2192
|
+
properties: {
|
|
2193
|
+
organization_id: {
|
|
2194
|
+
type: 'string',
|
|
2195
|
+
description: 'Organization UUID',
|
|
2196
|
+
},
|
|
2197
|
+
user_id: {
|
|
2198
|
+
type: 'string',
|
|
2199
|
+
description: 'User UUID to remove',
|
|
2200
|
+
},
|
|
2201
|
+
},
|
|
2202
|
+
required: ['organization_id', 'user_id'],
|
|
2203
|
+
},
|
|
2204
|
+
},
|
|
2205
|
+
{
|
|
2206
|
+
name: 'leave_organization',
|
|
2207
|
+
description: 'Leave an organization. Owner cannot leave without transferring ownership.',
|
|
2208
|
+
inputSchema: {
|
|
2209
|
+
type: 'object',
|
|
2210
|
+
properties: {
|
|
2211
|
+
organization_id: {
|
|
2212
|
+
type: 'string',
|
|
2213
|
+
description: 'Organization UUID',
|
|
2214
|
+
},
|
|
2215
|
+
},
|
|
2216
|
+
required: ['organization_id'],
|
|
2217
|
+
},
|
|
2218
|
+
},
|
|
2219
|
+
{
|
|
2220
|
+
name: 'share_project_with_org',
|
|
2221
|
+
description: 'Share a project with an organization. You must own the project.',
|
|
2222
|
+
inputSchema: {
|
|
2223
|
+
type: 'object',
|
|
2224
|
+
properties: {
|
|
2225
|
+
project_id: {
|
|
2226
|
+
type: 'string',
|
|
2227
|
+
description: 'Project UUID',
|
|
2228
|
+
},
|
|
2229
|
+
organization_id: {
|
|
2230
|
+
type: 'string',
|
|
2231
|
+
description: 'Organization UUID to share with',
|
|
2232
|
+
},
|
|
2233
|
+
permission: {
|
|
2234
|
+
type: 'string',
|
|
2235
|
+
enum: ['read', 'write', 'admin'],
|
|
2236
|
+
description: 'Permission level (default: read)',
|
|
2237
|
+
},
|
|
2238
|
+
},
|
|
2239
|
+
required: ['project_id', 'organization_id'],
|
|
2240
|
+
},
|
|
2241
|
+
},
|
|
2242
|
+
{
|
|
2243
|
+
name: 'update_project_share',
|
|
2244
|
+
description: 'Update the permission level for a project share.',
|
|
2245
|
+
inputSchema: {
|
|
2246
|
+
type: 'object',
|
|
2247
|
+
properties: {
|
|
2248
|
+
project_id: {
|
|
2249
|
+
type: 'string',
|
|
2250
|
+
description: 'Project UUID',
|
|
2251
|
+
},
|
|
2252
|
+
organization_id: {
|
|
2253
|
+
type: 'string',
|
|
2254
|
+
description: 'Organization UUID',
|
|
2255
|
+
},
|
|
2256
|
+
permission: {
|
|
2257
|
+
type: 'string',
|
|
2258
|
+
enum: ['read', 'write', 'admin'],
|
|
2259
|
+
description: 'New permission level',
|
|
2260
|
+
},
|
|
2261
|
+
},
|
|
2262
|
+
required: ['project_id', 'organization_id', 'permission'],
|
|
2263
|
+
},
|
|
2264
|
+
},
|
|
2265
|
+
{
|
|
2266
|
+
name: 'unshare_project',
|
|
2267
|
+
description: 'Remove a project share from an organization.',
|
|
2268
|
+
inputSchema: {
|
|
2269
|
+
type: 'object',
|
|
2270
|
+
properties: {
|
|
2271
|
+
project_id: {
|
|
2272
|
+
type: 'string',
|
|
2273
|
+
description: 'Project UUID',
|
|
2274
|
+
},
|
|
2275
|
+
organization_id: {
|
|
2276
|
+
type: 'string',
|
|
2277
|
+
description: 'Organization UUID',
|
|
2278
|
+
},
|
|
2279
|
+
},
|
|
2280
|
+
required: ['project_id', 'organization_id'],
|
|
2281
|
+
},
|
|
2282
|
+
},
|
|
2283
|
+
{
|
|
2284
|
+
name: 'list_project_shares',
|
|
2285
|
+
description: 'List all organizations a project is shared with.',
|
|
2286
|
+
inputSchema: {
|
|
2287
|
+
type: 'object',
|
|
2288
|
+
properties: {
|
|
2289
|
+
project_id: {
|
|
2290
|
+
type: 'string',
|
|
2291
|
+
description: 'Project UUID',
|
|
2292
|
+
},
|
|
2293
|
+
},
|
|
2294
|
+
required: ['project_id'],
|
|
2295
|
+
},
|
|
2296
|
+
},
|
|
2297
|
+
// File checkout/checkin tools for multi-agent coordination
|
|
2298
|
+
{
|
|
2299
|
+
name: 'checkout_file',
|
|
2300
|
+
description: 'Check out a file for editing. Prevents other agents from editing the same file until checked in. ALWAYS checkout files before making changes to prevent conflicts.',
|
|
2301
|
+
inputSchema: {
|
|
2302
|
+
type: 'object',
|
|
2303
|
+
properties: {
|
|
2304
|
+
project_id: {
|
|
2305
|
+
type: 'string',
|
|
2306
|
+
description: 'Project UUID',
|
|
2307
|
+
},
|
|
2308
|
+
file_path: {
|
|
2309
|
+
type: 'string',
|
|
2310
|
+
description: 'Relative path to the file to checkout (e.g., "src/index.ts")',
|
|
2311
|
+
},
|
|
2312
|
+
reason: {
|
|
2313
|
+
type: 'string',
|
|
2314
|
+
description: 'Optional reason for checkout (e.g., "Fixing bug in login flow")',
|
|
2315
|
+
},
|
|
2316
|
+
},
|
|
2317
|
+
required: ['project_id', 'file_path'],
|
|
2318
|
+
},
|
|
2319
|
+
},
|
|
2320
|
+
{
|
|
2321
|
+
name: 'checkin_file',
|
|
2322
|
+
description: 'Check in a file after editing. Releases the file for other agents to edit. ALWAYS checkin files when done editing.',
|
|
2323
|
+
inputSchema: {
|
|
2324
|
+
type: 'object',
|
|
2325
|
+
properties: {
|
|
2326
|
+
checkout_id: {
|
|
2327
|
+
type: 'string',
|
|
2328
|
+
description: 'Checkout UUID (from checkout_file response)',
|
|
2329
|
+
},
|
|
2330
|
+
project_id: {
|
|
2331
|
+
type: 'string',
|
|
2332
|
+
description: 'Project UUID (alternative to checkout_id)',
|
|
2333
|
+
},
|
|
2334
|
+
file_path: {
|
|
2335
|
+
type: 'string',
|
|
2336
|
+
description: 'File path (use with project_id as alternative to checkout_id)',
|
|
2337
|
+
},
|
|
2338
|
+
summary: {
|
|
2339
|
+
type: 'string',
|
|
2340
|
+
description: 'Optional summary of changes made',
|
|
2341
|
+
},
|
|
2342
|
+
},
|
|
2343
|
+
},
|
|
2344
|
+
},
|
|
2345
|
+
{
|
|
2346
|
+
name: 'get_file_checkouts',
|
|
2347
|
+
description: 'Get list of file checkouts for a project. Shows which files are currently checked out and by whom.',
|
|
2348
|
+
inputSchema: {
|
|
2349
|
+
type: 'object',
|
|
2350
|
+
properties: {
|
|
2351
|
+
project_id: {
|
|
2352
|
+
type: 'string',
|
|
2353
|
+
description: 'Project UUID',
|
|
2354
|
+
},
|
|
2355
|
+
status: {
|
|
2356
|
+
type: 'string',
|
|
2357
|
+
enum: ['checked_out', 'checked_in', 'abandoned'],
|
|
2358
|
+
description: 'Filter by status (default: checked_out)',
|
|
2359
|
+
},
|
|
2360
|
+
include_completed: {
|
|
2361
|
+
type: 'boolean',
|
|
2362
|
+
description: 'Include checked_in and abandoned checkouts (default: false)',
|
|
2363
|
+
},
|
|
2364
|
+
limit: {
|
|
2365
|
+
type: 'number',
|
|
2366
|
+
description: 'Max checkouts to return (default: 50)',
|
|
2367
|
+
},
|
|
2368
|
+
},
|
|
2369
|
+
required: ['project_id'],
|
|
2370
|
+
},
|
|
2371
|
+
},
|
|
2372
|
+
{
|
|
2373
|
+
name: 'abandon_checkout',
|
|
2374
|
+
description: 'Force-release a checkout. Use when the original agent session died or is stuck.',
|
|
2375
|
+
inputSchema: {
|
|
2376
|
+
type: 'object',
|
|
2377
|
+
properties: {
|
|
2378
|
+
checkout_id: {
|
|
2379
|
+
type: 'string',
|
|
2380
|
+
description: 'Checkout UUID to abandon',
|
|
2381
|
+
},
|
|
2382
|
+
reason: {
|
|
2383
|
+
type: 'string',
|
|
2384
|
+
description: 'Reason for abandoning (e.g., "Agent session died")',
|
|
2385
|
+
},
|
|
2386
|
+
},
|
|
2387
|
+
required: ['checkout_id'],
|
|
2388
|
+
},
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
name: 'is_file_available',
|
|
2392
|
+
description: 'Check if a file is available for checkout. Returns who has it checked out if not available.',
|
|
2393
|
+
inputSchema: {
|
|
2394
|
+
type: 'object',
|
|
2395
|
+
properties: {
|
|
2396
|
+
project_id: {
|
|
2397
|
+
type: 'string',
|
|
2398
|
+
description: 'Project UUID',
|
|
2399
|
+
},
|
|
2400
|
+
file_path: {
|
|
2401
|
+
type: 'string',
|
|
2402
|
+
description: 'Path to the file to check',
|
|
2403
|
+
},
|
|
2404
|
+
},
|
|
2405
|
+
required: ['project_id', 'file_path'],
|
|
2406
|
+
},
|
|
2407
|
+
},
|
|
2408
|
+
// Role management tools
|
|
2409
|
+
{
|
|
2410
|
+
name: 'get_role_settings',
|
|
2411
|
+
description: 'Get role configuration for a project. Shows available roles and their settings.',
|
|
2412
|
+
inputSchema: {
|
|
2413
|
+
type: 'object',
|
|
2414
|
+
properties: {
|
|
2415
|
+
project_id: {
|
|
2416
|
+
type: 'string',
|
|
2417
|
+
description: 'Project UUID',
|
|
2418
|
+
},
|
|
2419
|
+
},
|
|
2420
|
+
required: ['project_id'],
|
|
2421
|
+
},
|
|
2422
|
+
},
|
|
2423
|
+
{
|
|
2424
|
+
name: 'update_role_settings',
|
|
2425
|
+
description: 'Update role settings for a project. Configure which roles are enabled and their behavior.',
|
|
2426
|
+
inputSchema: {
|
|
2427
|
+
type: 'object',
|
|
2428
|
+
properties: {
|
|
2429
|
+
project_id: {
|
|
2430
|
+
type: 'string',
|
|
2431
|
+
description: 'Project UUID',
|
|
2432
|
+
},
|
|
2433
|
+
role: {
|
|
2434
|
+
type: 'string',
|
|
2435
|
+
enum: ['developer', 'validator', 'deployer', 'reviewer', 'maintainer'],
|
|
2436
|
+
description: 'Role to configure',
|
|
2437
|
+
},
|
|
2438
|
+
enabled: {
|
|
2439
|
+
type: 'boolean',
|
|
2440
|
+
description: 'Enable or disable this role',
|
|
2441
|
+
},
|
|
2442
|
+
display_name: {
|
|
2443
|
+
type: 'string',
|
|
2444
|
+
description: 'Custom display name for this role',
|
|
2445
|
+
},
|
|
2446
|
+
description: {
|
|
2447
|
+
type: 'string',
|
|
2448
|
+
description: 'Description of what this role does',
|
|
2449
|
+
},
|
|
2450
|
+
priority_filter: {
|
|
2451
|
+
type: 'array',
|
|
2452
|
+
items: { type: 'number' },
|
|
2453
|
+
description: 'Only show tasks with these priorities (1-5)',
|
|
2454
|
+
},
|
|
2455
|
+
fallback_activities: {
|
|
2456
|
+
type: 'array',
|
|
2457
|
+
items: { type: 'string' },
|
|
2458
|
+
description: 'Preferred fallback activities for this role',
|
|
2459
|
+
},
|
|
2460
|
+
auto_assign_validation: {
|
|
2461
|
+
type: 'boolean',
|
|
2462
|
+
description: 'Auto-assign validation tasks to agents with this role',
|
|
2463
|
+
},
|
|
2464
|
+
auto_assign_deployment: {
|
|
2465
|
+
type: 'boolean',
|
|
2466
|
+
description: 'Auto-assign deployment tasks to agents with this role',
|
|
2467
|
+
},
|
|
2468
|
+
},
|
|
2469
|
+
required: ['project_id', 'role'],
|
|
2470
|
+
},
|
|
2471
|
+
},
|
|
2472
|
+
{
|
|
2473
|
+
name: 'set_session_role',
|
|
2474
|
+
description: 'Set the role for your current session. Changes task filtering and fallback activity suggestions.',
|
|
2475
|
+
inputSchema: {
|
|
2476
|
+
type: 'object',
|
|
2477
|
+
properties: {
|
|
2478
|
+
role: {
|
|
2479
|
+
type: 'string',
|
|
2480
|
+
enum: ['developer', 'validator', 'deployer', 'reviewer', 'maintainer'],
|
|
2481
|
+
description: 'Role to assign to this session',
|
|
2482
|
+
},
|
|
2483
|
+
role_config: {
|
|
2484
|
+
type: 'object',
|
|
2485
|
+
description: 'Custom configuration for specialist role (optional)',
|
|
2486
|
+
},
|
|
2487
|
+
},
|
|
2488
|
+
required: ['role'],
|
|
2489
|
+
},
|
|
2490
|
+
},
|
|
2491
|
+
{
|
|
2492
|
+
name: 'get_agents_by_role',
|
|
2493
|
+
description: 'Get active agents grouped by their assigned roles. See who is working on what.',
|
|
2494
|
+
inputSchema: {
|
|
2495
|
+
type: 'object',
|
|
2496
|
+
properties: {
|
|
2497
|
+
project_id: {
|
|
2498
|
+
type: 'string',
|
|
2499
|
+
description: 'Project UUID',
|
|
2500
|
+
},
|
|
2501
|
+
},
|
|
2502
|
+
required: ['project_id'],
|
|
2503
|
+
},
|
|
2504
|
+
},
|
|
2505
|
+
];
|
|
2506
|
+
|