@vibescope/mcp-server 0.3.0 → 0.3.3

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.
Files changed (154) hide show
  1. package/dist/api-client/blockers.d.ts +46 -0
  2. package/dist/api-client/blockers.js +43 -0
  3. package/dist/api-client/cost.d.ts +112 -0
  4. package/dist/api-client/cost.js +76 -0
  5. package/dist/api-client/decisions.d.ts +55 -0
  6. package/dist/api-client/decisions.js +32 -0
  7. package/dist/api-client/discovery.d.ts +62 -0
  8. package/dist/api-client/discovery.js +21 -0
  9. package/dist/api-client/ideas.d.ts +75 -0
  10. package/dist/api-client/ideas.js +36 -0
  11. package/dist/api-client/index.d.ts +749 -0
  12. package/dist/api-client/index.js +291 -0
  13. package/dist/api-client/project.d.ts +132 -0
  14. package/dist/api-client/project.js +45 -0
  15. package/dist/api-client/session.d.ts +163 -0
  16. package/dist/api-client/session.js +52 -0
  17. package/dist/api-client/tasks.d.ts +328 -0
  18. package/dist/api-client/tasks.js +132 -0
  19. package/dist/api-client/types.d.ts +25 -0
  20. package/dist/api-client/types.js +4 -0
  21. package/dist/api-client/worktrees.d.ts +33 -0
  22. package/dist/api-client/worktrees.js +26 -0
  23. package/dist/api-client.d.ts +9 -0
  24. package/dist/api-client.js +104 -25
  25. package/dist/cli-init.d.ts +17 -0
  26. package/dist/cli-init.js +445 -0
  27. package/dist/cli.js +0 -0
  28. package/dist/handlers/cloud-agents.d.ts +21 -0
  29. package/dist/handlers/cloud-agents.js +91 -0
  30. package/dist/handlers/discovery.js +7 -0
  31. package/dist/handlers/index.d.ts +1 -0
  32. package/dist/handlers/index.js +3 -0
  33. package/dist/handlers/session.js +3 -1
  34. package/dist/handlers/tasks.js +10 -12
  35. package/dist/handlers/types.d.ts +2 -1
  36. package/dist/handlers/validation.js +5 -1
  37. package/dist/index.js +8 -3
  38. package/dist/token-tracking.js +2 -2
  39. package/dist/tools/blockers.d.ts +13 -0
  40. package/dist/tools/blockers.js +119 -0
  41. package/dist/tools/bodies-of-work.d.ts +19 -0
  42. package/dist/tools/bodies-of-work.js +280 -0
  43. package/dist/tools/cloud-agents.d.ts +9 -0
  44. package/dist/tools/cloud-agents.js +67 -0
  45. package/dist/tools/connectors.d.ts +14 -0
  46. package/dist/tools/connectors.js +188 -0
  47. package/dist/tools/cost.d.ts +11 -0
  48. package/dist/tools/cost.js +108 -0
  49. package/dist/tools/decisions.d.ts +12 -0
  50. package/dist/tools/decisions.js +108 -0
  51. package/dist/tools/deployment.d.ts +24 -0
  52. package/dist/tools/deployment.js +439 -0
  53. package/dist/tools/discovery.d.ts +10 -0
  54. package/dist/tools/discovery.js +73 -0
  55. package/dist/tools/fallback.d.ts +11 -0
  56. package/dist/tools/fallback.js +108 -0
  57. package/dist/tools/file-checkouts.d.ts +13 -0
  58. package/dist/tools/file-checkouts.js +141 -0
  59. package/dist/tools/findings.d.ts +13 -0
  60. package/dist/tools/findings.js +98 -0
  61. package/dist/tools/git-issues.d.ts +11 -0
  62. package/dist/tools/git-issues.js +127 -0
  63. package/dist/tools/ideas.d.ts +13 -0
  64. package/dist/tools/ideas.js +159 -0
  65. package/dist/tools/index.d.ts +71 -0
  66. package/dist/tools/index.js +98 -0
  67. package/dist/tools/milestones.d.ts +12 -0
  68. package/dist/tools/milestones.js +115 -0
  69. package/dist/tools/organizations.d.ts +17 -0
  70. package/dist/tools/organizations.js +221 -0
  71. package/dist/tools/progress.d.ts +9 -0
  72. package/dist/tools/progress.js +70 -0
  73. package/dist/tools/project.d.ts +13 -0
  74. package/dist/tools/project.js +199 -0
  75. package/dist/tools/requests.d.ts +10 -0
  76. package/dist/tools/requests.js +65 -0
  77. package/dist/tools/roles.d.ts +11 -0
  78. package/dist/tools/roles.js +109 -0
  79. package/dist/tools/session.d.ts +15 -0
  80. package/dist/tools/session.js +178 -0
  81. package/dist/tools/sprints.d.ts +18 -0
  82. package/dist/tools/sprints.js +295 -0
  83. package/dist/tools/tasks.d.ts +27 -0
  84. package/dist/tools/tasks.js +539 -0
  85. package/dist/tools/types.d.ts +7 -0
  86. package/dist/tools/types.js +6 -0
  87. package/dist/tools/validation.d.ts +10 -0
  88. package/dist/tools/validation.js +72 -0
  89. package/dist/tools/worktrees.d.ts +9 -0
  90. package/dist/tools/worktrees.js +63 -0
  91. package/dist/utils.d.ts +66 -0
  92. package/dist/utils.js +102 -0
  93. package/docs/TOOLS.md +55 -2
  94. package/package.json +5 -3
  95. package/scripts/generate-docs.ts +1 -1
  96. package/src/api-client/blockers.ts +86 -0
  97. package/src/api-client/cost.ts +185 -0
  98. package/src/api-client/decisions.ts +87 -0
  99. package/src/api-client/discovery.ts +81 -0
  100. package/src/api-client/ideas.ts +112 -0
  101. package/src/api-client/index.ts +378 -0
  102. package/src/api-client/project.ts +179 -0
  103. package/src/api-client/session.ts +220 -0
  104. package/src/api-client/tasks.ts +450 -0
  105. package/src/api-client/types.ts +32 -0
  106. package/src/api-client/worktrees.ts +53 -0
  107. package/src/api-client.test.ts +136 -9
  108. package/src/api-client.ts +125 -27
  109. package/src/cli-init.ts +504 -0
  110. package/src/handlers/__test-utils__.ts +2 -0
  111. package/src/handlers/cloud-agents.ts +138 -0
  112. package/src/handlers/discovery.ts +7 -0
  113. package/src/handlers/index.ts +3 -0
  114. package/src/handlers/session.ts +3 -1
  115. package/src/handlers/tasks.ts +10 -12
  116. package/src/handlers/tool-categories.test.ts +1 -1
  117. package/src/handlers/types.ts +2 -1
  118. package/src/handlers/validation.ts +6 -1
  119. package/src/index.test.ts +2 -2
  120. package/src/index.ts +8 -2
  121. package/src/token-tracking.ts +3 -2
  122. package/src/tools/blockers.ts +122 -0
  123. package/src/tools/bodies-of-work.ts +283 -0
  124. package/src/tools/cloud-agents.ts +70 -0
  125. package/src/tools/connectors.ts +191 -0
  126. package/src/tools/cost.ts +111 -0
  127. package/src/tools/decisions.ts +111 -0
  128. package/src/tools/deployment.ts +442 -0
  129. package/src/tools/discovery.ts +76 -0
  130. package/src/tools/fallback.ts +111 -0
  131. package/src/tools/file-checkouts.ts +145 -0
  132. package/src/tools/findings.ts +101 -0
  133. package/src/tools/git-issues.ts +130 -0
  134. package/src/tools/ideas.ts +162 -0
  135. package/src/tools/index.ts +131 -0
  136. package/src/tools/milestones.ts +118 -0
  137. package/src/tools/organizations.ts +224 -0
  138. package/src/tools/progress.ts +73 -0
  139. package/src/tools/project.ts +202 -0
  140. package/src/tools/requests.ts +68 -0
  141. package/src/tools/roles.ts +112 -0
  142. package/src/tools/session.ts +181 -0
  143. package/src/tools/sprints.ts +298 -0
  144. package/src/tools/tasks.ts +542 -0
  145. package/src/tools/tools.test.ts +222 -0
  146. package/src/tools/types.ts +9 -0
  147. package/src/tools/validation.ts +75 -0
  148. package/src/tools/worktrees.ts +66 -0
  149. package/src/tools.test.ts +1 -1
  150. package/src/utils.test.ts +229 -0
  151. package/src/utils.ts +117 -0
  152. package/dist/tools.d.ts +0 -2
  153. package/dist/tools.js +0 -3602
  154. package/src/tools.ts +0 -3607
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Milestone Tool Definitions
3
+ *
4
+ * Tools for managing task milestones:
5
+ * - add_milestone
6
+ * - update_milestone
7
+ * - complete_milestone
8
+ * - delete_milestone
9
+ * - get_milestones
10
+ */
11
+
12
+ import type { Tool } from './types.js';
13
+
14
+ export const milestoneTools: Tool[] = [
15
+ {
16
+ name: 'add_milestone',
17
+ description: `Add a milestone to a task.
18
+ Milestones help break down large tasks into smaller trackable steps.
19
+ Use this to show progress on complex tasks and help gauge completion.`,
20
+ inputSchema: {
21
+ type: 'object',
22
+ properties: {
23
+ task_id: {
24
+ type: 'string',
25
+ description: 'Task UUID to add milestone to',
26
+ },
27
+ title: {
28
+ type: 'string',
29
+ description: 'Milestone title (brief description of what needs to be done)',
30
+ },
31
+ description: {
32
+ type: 'string',
33
+ description: 'Optional detailed description',
34
+ },
35
+ order_index: {
36
+ type: 'number',
37
+ minimum: 0,
38
+ description: 'Order of this milestone (0-based, defaults to end of list)',
39
+ },
40
+ },
41
+ required: ['task_id', 'title'],
42
+ },
43
+ },
44
+ {
45
+ name: 'update_milestone',
46
+ description: `Update a milestone's title, description, status, or order.`,
47
+ inputSchema: {
48
+ type: 'object',
49
+ properties: {
50
+ milestone_id: {
51
+ type: 'string',
52
+ description: 'Milestone UUID',
53
+ },
54
+ title: {
55
+ type: 'string',
56
+ description: 'Updated title',
57
+ },
58
+ description: {
59
+ type: 'string',
60
+ description: 'Updated description',
61
+ },
62
+ status: {
63
+ type: 'string',
64
+ enum: ['pending', 'in_progress', 'completed'],
65
+ description: 'Milestone status',
66
+ },
67
+ order_index: {
68
+ type: 'number',
69
+ minimum: 0,
70
+ description: 'Updated order',
71
+ },
72
+ },
73
+ required: ['milestone_id'],
74
+ },
75
+ },
76
+ {
77
+ name: 'complete_milestone',
78
+ description: `Mark a milestone as completed. This is a convenience wrapper for update_milestone with status=completed.`,
79
+ inputSchema: {
80
+ type: 'object',
81
+ properties: {
82
+ milestone_id: {
83
+ type: 'string',
84
+ description: 'Milestone UUID',
85
+ },
86
+ },
87
+ required: ['milestone_id'],
88
+ },
89
+ },
90
+ {
91
+ name: 'delete_milestone',
92
+ description: `Delete a milestone from a task.`,
93
+ inputSchema: {
94
+ type: 'object',
95
+ properties: {
96
+ milestone_id: {
97
+ type: 'string',
98
+ description: 'Milestone UUID',
99
+ },
100
+ },
101
+ required: ['milestone_id'],
102
+ },
103
+ },
104
+ {
105
+ name: 'get_milestones',
106
+ description: `Get all milestones for a task, ordered by order_index.`,
107
+ inputSchema: {
108
+ type: 'object',
109
+ properties: {
110
+ task_id: {
111
+ type: 'string',
112
+ description: 'Task UUID',
113
+ },
114
+ },
115
+ required: ['task_id'],
116
+ },
117
+ },
118
+ ];
@@ -0,0 +1,224 @@
1
+ /**
2
+ * Organization Tool Definitions
3
+ *
4
+ * Tools for managing organizations and sharing:
5
+ * - create_organization
6
+ * - update_organization
7
+ * - delete_organization
8
+ * - invite_member
9
+ * - update_member_role
10
+ * - remove_member
11
+ * - leave_organization
12
+ * - share_project_with_org
13
+ * - update_project_share
14
+ * - unshare_project
15
+ */
16
+
17
+ import type { Tool } from './types.js';
18
+
19
+ export const organizationTools: Tool[] = [
20
+ {
21
+ name: 'create_organization',
22
+ description: 'Create a new organization. You become the owner.',
23
+ inputSchema: {
24
+ type: 'object',
25
+ properties: {
26
+ name: {
27
+ type: 'string',
28
+ description: 'Organization display name',
29
+ },
30
+ description: {
31
+ type: 'string',
32
+ description: 'Brief description of the organization',
33
+ },
34
+ slug: {
35
+ type: 'string',
36
+ description: 'URL-friendly identifier (auto-generated from name if not provided)',
37
+ },
38
+ },
39
+ required: ['name'],
40
+ },
41
+ },
42
+ {
43
+ name: 'update_organization',
44
+ description: 'Update organization details. Requires admin role.',
45
+ inputSchema: {
46
+ type: 'object',
47
+ properties: {
48
+ organization_id: {
49
+ type: 'string',
50
+ description: 'Organization UUID',
51
+ },
52
+ name: {
53
+ type: 'string',
54
+ description: 'New organization name',
55
+ },
56
+ description: {
57
+ type: 'string',
58
+ description: 'New description',
59
+ },
60
+ logo_url: {
61
+ type: 'string',
62
+ description: 'URL to organization logo',
63
+ },
64
+ },
65
+ required: ['organization_id'],
66
+ },
67
+ },
68
+ {
69
+ name: 'delete_organization',
70
+ description: 'Delete an organization. Requires owner role. Removes all shares.',
71
+ inputSchema: {
72
+ type: 'object',
73
+ properties: {
74
+ organization_id: {
75
+ type: 'string',
76
+ description: 'Organization UUID',
77
+ },
78
+ },
79
+ required: ['organization_id'],
80
+ },
81
+ },
82
+ {
83
+ name: 'invite_member',
84
+ description: 'Invite a user to an organization by email. Requires admin role.',
85
+ inputSchema: {
86
+ type: 'object',
87
+ properties: {
88
+ organization_id: {
89
+ type: 'string',
90
+ description: 'Organization UUID',
91
+ },
92
+ email: {
93
+ type: 'string',
94
+ description: 'Email address to invite',
95
+ },
96
+ role: {
97
+ type: 'string',
98
+ enum: ['admin', 'member', 'viewer'],
99
+ description: 'Role to assign (default: member)',
100
+ },
101
+ },
102
+ required: ['organization_id', 'email'],
103
+ },
104
+ },
105
+ {
106
+ name: 'update_member_role',
107
+ description: 'Change a member\'s role. Requires admin role. Cannot change owner.',
108
+ inputSchema: {
109
+ type: 'object',
110
+ properties: {
111
+ organization_id: {
112
+ type: 'string',
113
+ description: 'Organization UUID',
114
+ },
115
+ user_id: {
116
+ type: 'string',
117
+ description: 'User UUID to update',
118
+ },
119
+ role: {
120
+ type: 'string',
121
+ enum: ['admin', 'member', 'viewer'],
122
+ description: 'New role to assign',
123
+ },
124
+ },
125
+ required: ['organization_id', 'user_id', 'role'],
126
+ },
127
+ },
128
+ {
129
+ name: 'remove_member',
130
+ description: 'Remove a member from an organization. Requires admin role.',
131
+ inputSchema: {
132
+ type: 'object',
133
+ properties: {
134
+ organization_id: {
135
+ type: 'string',
136
+ description: 'Organization UUID',
137
+ },
138
+ user_id: {
139
+ type: 'string',
140
+ description: 'User UUID to remove',
141
+ },
142
+ },
143
+ required: ['organization_id', 'user_id'],
144
+ },
145
+ },
146
+ {
147
+ name: 'leave_organization',
148
+ description: 'Leave an organization. Owner cannot leave without transferring ownership.',
149
+ inputSchema: {
150
+ type: 'object',
151
+ properties: {
152
+ organization_id: {
153
+ type: 'string',
154
+ description: 'Organization UUID',
155
+ },
156
+ },
157
+ required: ['organization_id'],
158
+ },
159
+ },
160
+ {
161
+ name: 'share_project_with_org',
162
+ description: 'Share a project with an organization. You must own the project.',
163
+ inputSchema: {
164
+ type: 'object',
165
+ properties: {
166
+ project_id: {
167
+ type: 'string',
168
+ description: 'Project UUID',
169
+ },
170
+ organization_id: {
171
+ type: 'string',
172
+ description: 'Organization UUID to share with',
173
+ },
174
+ permission: {
175
+ type: 'string',
176
+ enum: ['read', 'write', 'admin'],
177
+ description: 'Permission level (default: read)',
178
+ },
179
+ },
180
+ required: ['project_id', 'organization_id'],
181
+ },
182
+ },
183
+ {
184
+ name: 'update_project_share',
185
+ description: 'Update the permission level for a project share.',
186
+ inputSchema: {
187
+ type: 'object',
188
+ properties: {
189
+ project_id: {
190
+ type: 'string',
191
+ description: 'Project UUID',
192
+ },
193
+ organization_id: {
194
+ type: 'string',
195
+ description: 'Organization UUID',
196
+ },
197
+ permission: {
198
+ type: 'string',
199
+ enum: ['read', 'write', 'admin'],
200
+ description: 'New permission level',
201
+ },
202
+ },
203
+ required: ['project_id', 'organization_id', 'permission'],
204
+ },
205
+ },
206
+ {
207
+ name: 'unshare_project',
208
+ description: 'Remove a project share from an organization.',
209
+ inputSchema: {
210
+ type: 'object',
211
+ properties: {
212
+ project_id: {
213
+ type: 'string',
214
+ description: 'Project UUID',
215
+ },
216
+ organization_id: {
217
+ type: 'string',
218
+ description: 'Organization UUID',
219
+ },
220
+ },
221
+ required: ['project_id', 'organization_id'],
222
+ },
223
+ },
224
+ ];
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Progress Tool Definitions
3
+ *
4
+ * Tools for logging and viewing progress:
5
+ * - log_progress
6
+ * - get_activity_feed
7
+ */
8
+
9
+ import type { Tool } from './types.js';
10
+
11
+ export const progressTools: Tool[] = [
12
+ {
13
+ name: 'log_progress',
14
+ description: `Log progress update. Record significant milestones or observations.`,
15
+ inputSchema: {
16
+ type: 'object',
17
+ properties: {
18
+ project_id: {
19
+ type: 'string',
20
+ description: 'Project UUID',
21
+ },
22
+ task_id: {
23
+ type: 'string',
24
+ description: 'Task UUID (optional, links progress to specific task)',
25
+ },
26
+ summary: {
27
+ type: 'string',
28
+ description: 'Brief summary of progress',
29
+ },
30
+ details: {
31
+ type: 'string',
32
+ description: 'Detailed notes (optional)',
33
+ },
34
+ },
35
+ required: ['project_id', 'summary'],
36
+ },
37
+ },
38
+ {
39
+ name: 'get_activity_feed',
40
+ description: `Get combined activity feed (tasks, progress, blockers, decisions) in chronological order.`,
41
+ inputSchema: {
42
+ type: 'object',
43
+ properties: {
44
+ project_id: {
45
+ type: 'string',
46
+ description: 'Project UUID',
47
+ },
48
+ types: {
49
+ type: 'array',
50
+ items: {
51
+ type: 'string',
52
+ enum: ['task', 'progress', 'blocker', 'decision'],
53
+ },
54
+ description: 'Filter by activity types (default: all)',
55
+ },
56
+ created_by: {
57
+ type: 'string',
58
+ enum: ['agent', 'user'],
59
+ description: 'Filter by creator (default: all)',
60
+ },
61
+ since: {
62
+ type: 'string',
63
+ description: 'ISO date string - only return activity after this time',
64
+ },
65
+ limit: {
66
+ type: 'number',
67
+ description: 'Max number of items to return (default 10, max 200)',
68
+ },
69
+ },
70
+ required: ['project_id'],
71
+ },
72
+ },
73
+ ];
@@ -0,0 +1,202 @@
1
+ /**
2
+ * Project Tool Definitions
3
+ *
4
+ * Tools for project management:
5
+ * - get_project_context
6
+ * - get_git_workflow
7
+ * - create_project
8
+ * - update_project
9
+ * - update_project_readme
10
+ * - get_project_summary
11
+ */
12
+
13
+ import type { Tool } from './types.js';
14
+
15
+ export const projectTools: Tool[] = [
16
+ {
17
+ name: 'get_project_context',
18
+ description: 'Get full project context: goals, instructions, tasks, blockers, decisions.',
19
+ inputSchema: {
20
+ type: 'object',
21
+ properties: {
22
+ project_id: {
23
+ type: 'string',
24
+ description: 'Project UUID. If not provided, will list all projects.',
25
+ },
26
+ git_url: {
27
+ type: 'string',
28
+ description: 'Git repository URL. Used to find project if project_id not provided.',
29
+ },
30
+ },
31
+ },
32
+ },
33
+ {
34
+ name: 'get_git_workflow',
35
+ description: 'Get git workflow config and branching instructions for the project.',
36
+ inputSchema: {
37
+ type: 'object',
38
+ properties: {
39
+ project_id: {
40
+ type: 'string',
41
+ description: 'Project UUID',
42
+ },
43
+ task_id: {
44
+ type: 'string',
45
+ description: 'Optional task ID to include branch naming suggestion',
46
+ },
47
+ },
48
+ required: ['project_id'],
49
+ },
50
+ },
51
+ {
52
+ name: 'create_project',
53
+ description: 'Create a new project to track in Vibescope.',
54
+ inputSchema: {
55
+ type: 'object',
56
+ properties: {
57
+ name: {
58
+ type: 'string',
59
+ description: 'Project display name',
60
+ },
61
+ description: {
62
+ type: 'string',
63
+ description: 'Brief project description',
64
+ },
65
+ goal: {
66
+ type: 'string',
67
+ description: 'What does "done" look like for this project?',
68
+ },
69
+ git_url: {
70
+ type: 'string',
71
+ description: 'Git repository URL (if available)',
72
+ },
73
+ tech_stack: {
74
+ type: 'array',
75
+ items: { type: 'string' },
76
+ description: 'Technologies used (e.g., ["TypeScript", "React", "PostgreSQL"])',
77
+ },
78
+ },
79
+ required: ['name'],
80
+ },
81
+ },
82
+ {
83
+ name: 'update_project',
84
+ description: 'Update project details (name, description, goal, settings).',
85
+ inputSchema: {
86
+ type: 'object',
87
+ properties: {
88
+ project_id: {
89
+ type: 'string',
90
+ description: 'Project UUID',
91
+ },
92
+ name: { type: 'string', description: 'Project name' },
93
+ description: { type: 'string', description: 'Project description' },
94
+ goal: { type: 'string', description: 'Project goal or objective' },
95
+ git_url: { type: 'string', description: 'Git repository URL' },
96
+ tech_stack: {
97
+ type: 'array',
98
+ items: { type: 'string' },
99
+ description: 'List of technologies used in the project',
100
+ },
101
+ status: {
102
+ type: 'string',
103
+ enum: ['active', 'paused', 'completed', 'archived'],
104
+ description: 'Project status',
105
+ },
106
+ git_workflow: {
107
+ type: 'string',
108
+ enum: ['none', 'trunk-based', 'github-flow', 'git-flow'],
109
+ description: 'Git workflow: none (no branching), trunk-based (commit to main), github-flow (feature branches + PR), git-flow (develop/release branches)',
110
+ },
111
+ git_main_branch: {
112
+ type: 'string',
113
+ description: 'Main branch name (default: main)',
114
+ },
115
+ git_develop_branch: {
116
+ type: 'string',
117
+ description: 'Development branch name (used with git-flow)',
118
+ },
119
+ git_auto_branch: {
120
+ type: 'boolean',
121
+ description: 'Automatically create feature branches for new tasks',
122
+ },
123
+ git_auto_tag: {
124
+ type: 'boolean',
125
+ description: 'Automatically tag deployments on main branch',
126
+ },
127
+ deployment_instructions: {
128
+ type: 'string',
129
+ description: 'Instructions for how to deploy (e.g., "Push to main for Vercel auto-deploy", "Run fly deploy")',
130
+ },
131
+ git_delete_branch_on_merge: {
132
+ type: 'boolean',
133
+ description: 'Delete feature branch after PR merge (default: true)',
134
+ },
135
+ require_pr_for_validation: {
136
+ type: 'boolean',
137
+ description: 'Require PR exists before task validation can be approved (default: true for github-flow/git-flow)',
138
+ },
139
+ auto_merge_on_approval: {
140
+ type: 'boolean',
141
+ description: 'Automatically merge PR when validator approves (default: true)',
142
+ },
143
+ validation_required: {
144
+ type: 'boolean',
145
+ description: 'Completed tasks require validation before being considered done (default: true)',
146
+ },
147
+ default_task_priority: {
148
+ type: 'integer',
149
+ minimum: 1,
150
+ maximum: 5,
151
+ description: 'Default priority for new tasks when not specified (1=highest, 5=lowest, default: 3)',
152
+ },
153
+ require_time_estimates: {
154
+ type: 'boolean',
155
+ description: 'Require estimated_minutes when creating tasks (default: false)',
156
+ },
157
+ fallback_activities_enabled: {
158
+ type: 'boolean',
159
+ description: 'Allow agents to perform background activities when no tasks available (default: true)',
160
+ },
161
+ preferred_fallback_activities: {
162
+ type: 'array',
163
+ items: { type: 'string' },
164
+ description: 'Array of preferred fallback activities (e.g., ["code_review", "security_review"]). Null means all allowed.',
165
+ },
166
+ },
167
+ required: ['project_id'],
168
+ },
169
+ },
170
+ {
171
+ name: 'update_project_readme',
172
+ description: 'Sync README content to the dashboard.',
173
+ inputSchema: {
174
+ type: 'object',
175
+ properties: {
176
+ project_id: {
177
+ type: 'string',
178
+ description: 'Project UUID',
179
+ },
180
+ readme_content: {
181
+ type: 'string',
182
+ description: 'README content in markdown format',
183
+ },
184
+ },
185
+ required: ['project_id', 'readme_content'],
186
+ },
187
+ },
188
+ {
189
+ name: 'get_project_summary',
190
+ description: 'Get a unified project overview with aggregated stats. Token-efficient way to get task counts, blockers, findings, active agents, and more in a single call.',
191
+ inputSchema: {
192
+ type: 'object',
193
+ properties: {
194
+ project_id: {
195
+ type: 'string',
196
+ description: 'Project UUID',
197
+ },
198
+ },
199
+ required: ['project_id'],
200
+ },
201
+ },
202
+ ];
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Request Tool Definitions
3
+ *
4
+ * Tools for handling user requests:
5
+ * - get_pending_requests
6
+ * - acknowledge_request
7
+ * - answer_question
8
+ */
9
+
10
+ import type { Tool } from './types.js';
11
+
12
+ export const requestTools: Tool[] = [
13
+ {
14
+ name: 'get_pending_requests',
15
+ description: `Get unacknowledged user requests for this agent/project.`,
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {
19
+ project_id: {
20
+ type: 'string',
21
+ description: 'Project UUID',
22
+ },
23
+ limit: {
24
+ type: 'number',
25
+ description: 'Max number of requests to return (default 50, max 200)',
26
+ },
27
+ offset: {
28
+ type: 'number',
29
+ description: 'Number of requests to skip for pagination (default 0)',
30
+ },
31
+ },
32
+ required: ['project_id'],
33
+ },
34
+ },
35
+ {
36
+ name: 'acknowledge_request',
37
+ description: `Mark a user request as handled.`,
38
+ inputSchema: {
39
+ type: 'object',
40
+ properties: {
41
+ request_id: {
42
+ type: 'string',
43
+ description: 'Request UUID to acknowledge',
44
+ },
45
+ },
46
+ required: ['request_id'],
47
+ },
48
+ },
49
+ {
50
+ name: 'answer_question',
51
+ description: `Answer a question from the user. Use this when the user has asked a question via the dashboard.
52
+ The answer will be displayed to the user and the question marked as answered.`,
53
+ inputSchema: {
54
+ type: 'object',
55
+ properties: {
56
+ request_id: {
57
+ type: 'string',
58
+ description: 'Request UUID of the question to answer',
59
+ },
60
+ answer: {
61
+ type: 'string',
62
+ description: 'Your answer to the user\'s question',
63
+ },
64
+ },
65
+ required: ['request_id', 'answer'],
66
+ },
67
+ },
68
+ ];