@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.
- package/dist/api-client/blockers.d.ts +46 -0
- package/dist/api-client/blockers.js +43 -0
- package/dist/api-client/cost.d.ts +112 -0
- package/dist/api-client/cost.js +76 -0
- package/dist/api-client/decisions.d.ts +55 -0
- package/dist/api-client/decisions.js +32 -0
- package/dist/api-client/discovery.d.ts +62 -0
- package/dist/api-client/discovery.js +21 -0
- package/dist/api-client/ideas.d.ts +75 -0
- package/dist/api-client/ideas.js +36 -0
- package/dist/api-client/index.d.ts +749 -0
- package/dist/api-client/index.js +291 -0
- package/dist/api-client/project.d.ts +132 -0
- package/dist/api-client/project.js +45 -0
- package/dist/api-client/session.d.ts +163 -0
- package/dist/api-client/session.js +52 -0
- package/dist/api-client/tasks.d.ts +328 -0
- package/dist/api-client/tasks.js +132 -0
- package/dist/api-client/types.d.ts +25 -0
- package/dist/api-client/types.js +4 -0
- package/dist/api-client/worktrees.d.ts +33 -0
- package/dist/api-client/worktrees.js +26 -0
- package/dist/api-client.d.ts +9 -0
- package/dist/api-client.js +104 -25
- package/dist/cli-init.d.ts +17 -0
- package/dist/cli-init.js +445 -0
- package/dist/cli.js +0 -0
- package/dist/handlers/cloud-agents.d.ts +21 -0
- package/dist/handlers/cloud-agents.js +91 -0
- package/dist/handlers/discovery.js +7 -0
- package/dist/handlers/index.d.ts +1 -0
- package/dist/handlers/index.js +3 -0
- package/dist/handlers/session.js +3 -1
- package/dist/handlers/tasks.js +10 -12
- package/dist/handlers/types.d.ts +2 -1
- package/dist/handlers/validation.js +5 -1
- package/dist/index.js +8 -3
- package/dist/token-tracking.js +2 -2
- package/dist/tools/blockers.d.ts +13 -0
- package/dist/tools/blockers.js +119 -0
- package/dist/tools/bodies-of-work.d.ts +19 -0
- package/dist/tools/bodies-of-work.js +280 -0
- package/dist/tools/cloud-agents.d.ts +9 -0
- package/dist/tools/cloud-agents.js +67 -0
- package/dist/tools/connectors.d.ts +14 -0
- package/dist/tools/connectors.js +188 -0
- package/dist/tools/cost.d.ts +11 -0
- package/dist/tools/cost.js +108 -0
- package/dist/tools/decisions.d.ts +12 -0
- package/dist/tools/decisions.js +108 -0
- package/dist/tools/deployment.d.ts +24 -0
- package/dist/tools/deployment.js +439 -0
- package/dist/tools/discovery.d.ts +10 -0
- package/dist/tools/discovery.js +73 -0
- package/dist/tools/fallback.d.ts +11 -0
- package/dist/tools/fallback.js +108 -0
- package/dist/tools/file-checkouts.d.ts +13 -0
- package/dist/tools/file-checkouts.js +141 -0
- package/dist/tools/findings.d.ts +13 -0
- package/dist/tools/findings.js +98 -0
- package/dist/tools/git-issues.d.ts +11 -0
- package/dist/tools/git-issues.js +127 -0
- package/dist/tools/ideas.d.ts +13 -0
- package/dist/tools/ideas.js +159 -0
- package/dist/tools/index.d.ts +71 -0
- package/dist/tools/index.js +98 -0
- package/dist/tools/milestones.d.ts +12 -0
- package/dist/tools/milestones.js +115 -0
- package/dist/tools/organizations.d.ts +17 -0
- package/dist/tools/organizations.js +221 -0
- package/dist/tools/progress.d.ts +9 -0
- package/dist/tools/progress.js +70 -0
- package/dist/tools/project.d.ts +13 -0
- package/dist/tools/project.js +199 -0
- package/dist/tools/requests.d.ts +10 -0
- package/dist/tools/requests.js +65 -0
- package/dist/tools/roles.d.ts +11 -0
- package/dist/tools/roles.js +109 -0
- package/dist/tools/session.d.ts +15 -0
- package/dist/tools/session.js +178 -0
- package/dist/tools/sprints.d.ts +18 -0
- package/dist/tools/sprints.js +295 -0
- package/dist/tools/tasks.d.ts +27 -0
- package/dist/tools/tasks.js +539 -0
- package/dist/tools/types.d.ts +7 -0
- package/dist/tools/types.js +6 -0
- package/dist/tools/validation.d.ts +10 -0
- package/dist/tools/validation.js +72 -0
- package/dist/tools/worktrees.d.ts +9 -0
- package/dist/tools/worktrees.js +63 -0
- package/dist/utils.d.ts +66 -0
- package/dist/utils.js +102 -0
- package/docs/TOOLS.md +55 -2
- package/package.json +5 -3
- package/scripts/generate-docs.ts +1 -1
- package/src/api-client/blockers.ts +86 -0
- package/src/api-client/cost.ts +185 -0
- package/src/api-client/decisions.ts +87 -0
- package/src/api-client/discovery.ts +81 -0
- package/src/api-client/ideas.ts +112 -0
- package/src/api-client/index.ts +378 -0
- package/src/api-client/project.ts +179 -0
- package/src/api-client/session.ts +220 -0
- package/src/api-client/tasks.ts +450 -0
- package/src/api-client/types.ts +32 -0
- package/src/api-client/worktrees.ts +53 -0
- package/src/api-client.test.ts +136 -9
- package/src/api-client.ts +125 -27
- package/src/cli-init.ts +504 -0
- package/src/handlers/__test-utils__.ts +2 -0
- package/src/handlers/cloud-agents.ts +138 -0
- package/src/handlers/discovery.ts +7 -0
- package/src/handlers/index.ts +3 -0
- package/src/handlers/session.ts +3 -1
- package/src/handlers/tasks.ts +10 -12
- package/src/handlers/tool-categories.test.ts +1 -1
- package/src/handlers/types.ts +2 -1
- package/src/handlers/validation.ts +6 -1
- package/src/index.test.ts +2 -2
- package/src/index.ts +8 -2
- package/src/token-tracking.ts +3 -2
- package/src/tools/blockers.ts +122 -0
- package/src/tools/bodies-of-work.ts +283 -0
- package/src/tools/cloud-agents.ts +70 -0
- package/src/tools/connectors.ts +191 -0
- package/src/tools/cost.ts +111 -0
- package/src/tools/decisions.ts +111 -0
- package/src/tools/deployment.ts +442 -0
- package/src/tools/discovery.ts +76 -0
- package/src/tools/fallback.ts +111 -0
- package/src/tools/file-checkouts.ts +145 -0
- package/src/tools/findings.ts +101 -0
- package/src/tools/git-issues.ts +130 -0
- package/src/tools/ideas.ts +162 -0
- package/src/tools/index.ts +131 -0
- package/src/tools/milestones.ts +118 -0
- package/src/tools/organizations.ts +224 -0
- package/src/tools/progress.ts +73 -0
- package/src/tools/project.ts +202 -0
- package/src/tools/requests.ts +68 -0
- package/src/tools/roles.ts +112 -0
- package/src/tools/session.ts +181 -0
- package/src/tools/sprints.ts +298 -0
- package/src/tools/tasks.ts +542 -0
- package/src/tools/tools.test.ts +222 -0
- package/src/tools/types.ts +9 -0
- package/src/tools/validation.ts +75 -0
- package/src/tools/worktrees.ts +66 -0
- package/src/tools.test.ts +1 -1
- package/src/utils.test.ts +229 -0
- package/src/utils.ts +117 -0
- package/dist/tools.d.ts +0 -2
- package/dist/tools.js +0 -3602
- package/src/tools.ts +0 -3607
|
@@ -0,0 +1,199 @@
|
|
|
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
|
+
export const projectTools = [
|
|
13
|
+
{
|
|
14
|
+
name: 'get_project_context',
|
|
15
|
+
description: 'Get full project context: goals, instructions, tasks, blockers, decisions.',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
project_id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'Project UUID. If not provided, will list all projects.',
|
|
22
|
+
},
|
|
23
|
+
git_url: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
description: 'Git repository URL. Used to find project if project_id not provided.',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'get_git_workflow',
|
|
32
|
+
description: 'Get git workflow config and branching instructions for the project.',
|
|
33
|
+
inputSchema: {
|
|
34
|
+
type: 'object',
|
|
35
|
+
properties: {
|
|
36
|
+
project_id: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
description: 'Project UUID',
|
|
39
|
+
},
|
|
40
|
+
task_id: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
description: 'Optional task ID to include branch naming suggestion',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
required: ['project_id'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'create_project',
|
|
50
|
+
description: 'Create a new project to track in Vibescope.',
|
|
51
|
+
inputSchema: {
|
|
52
|
+
type: 'object',
|
|
53
|
+
properties: {
|
|
54
|
+
name: {
|
|
55
|
+
type: 'string',
|
|
56
|
+
description: 'Project display name',
|
|
57
|
+
},
|
|
58
|
+
description: {
|
|
59
|
+
type: 'string',
|
|
60
|
+
description: 'Brief project description',
|
|
61
|
+
},
|
|
62
|
+
goal: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
description: 'What does "done" look like for this project?',
|
|
65
|
+
},
|
|
66
|
+
git_url: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
description: 'Git repository URL (if available)',
|
|
69
|
+
},
|
|
70
|
+
tech_stack: {
|
|
71
|
+
type: 'array',
|
|
72
|
+
items: { type: 'string' },
|
|
73
|
+
description: 'Technologies used (e.g., ["TypeScript", "React", "PostgreSQL"])',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
required: ['name'],
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'update_project',
|
|
81
|
+
description: 'Update project details (name, description, goal, settings).',
|
|
82
|
+
inputSchema: {
|
|
83
|
+
type: 'object',
|
|
84
|
+
properties: {
|
|
85
|
+
project_id: {
|
|
86
|
+
type: 'string',
|
|
87
|
+
description: 'Project UUID',
|
|
88
|
+
},
|
|
89
|
+
name: { type: 'string', description: 'Project name' },
|
|
90
|
+
description: { type: 'string', description: 'Project description' },
|
|
91
|
+
goal: { type: 'string', description: 'Project goal or objective' },
|
|
92
|
+
git_url: { type: 'string', description: 'Git repository URL' },
|
|
93
|
+
tech_stack: {
|
|
94
|
+
type: 'array',
|
|
95
|
+
items: { type: 'string' },
|
|
96
|
+
description: 'List of technologies used in the project',
|
|
97
|
+
},
|
|
98
|
+
status: {
|
|
99
|
+
type: 'string',
|
|
100
|
+
enum: ['active', 'paused', 'completed', 'archived'],
|
|
101
|
+
description: 'Project status',
|
|
102
|
+
},
|
|
103
|
+
git_workflow: {
|
|
104
|
+
type: 'string',
|
|
105
|
+
enum: ['none', 'trunk-based', 'github-flow', 'git-flow'],
|
|
106
|
+
description: 'Git workflow: none (no branching), trunk-based (commit to main), github-flow (feature branches + PR), git-flow (develop/release branches)',
|
|
107
|
+
},
|
|
108
|
+
git_main_branch: {
|
|
109
|
+
type: 'string',
|
|
110
|
+
description: 'Main branch name (default: main)',
|
|
111
|
+
},
|
|
112
|
+
git_develop_branch: {
|
|
113
|
+
type: 'string',
|
|
114
|
+
description: 'Development branch name (used with git-flow)',
|
|
115
|
+
},
|
|
116
|
+
git_auto_branch: {
|
|
117
|
+
type: 'boolean',
|
|
118
|
+
description: 'Automatically create feature branches for new tasks',
|
|
119
|
+
},
|
|
120
|
+
git_auto_tag: {
|
|
121
|
+
type: 'boolean',
|
|
122
|
+
description: 'Automatically tag deployments on main branch',
|
|
123
|
+
},
|
|
124
|
+
deployment_instructions: {
|
|
125
|
+
type: 'string',
|
|
126
|
+
description: 'Instructions for how to deploy (e.g., "Push to main for Vercel auto-deploy", "Run fly deploy")',
|
|
127
|
+
},
|
|
128
|
+
git_delete_branch_on_merge: {
|
|
129
|
+
type: 'boolean',
|
|
130
|
+
description: 'Delete feature branch after PR merge (default: true)',
|
|
131
|
+
},
|
|
132
|
+
require_pr_for_validation: {
|
|
133
|
+
type: 'boolean',
|
|
134
|
+
description: 'Require PR exists before task validation can be approved (default: true for github-flow/git-flow)',
|
|
135
|
+
},
|
|
136
|
+
auto_merge_on_approval: {
|
|
137
|
+
type: 'boolean',
|
|
138
|
+
description: 'Automatically merge PR when validator approves (default: true)',
|
|
139
|
+
},
|
|
140
|
+
validation_required: {
|
|
141
|
+
type: 'boolean',
|
|
142
|
+
description: 'Completed tasks require validation before being considered done (default: true)',
|
|
143
|
+
},
|
|
144
|
+
default_task_priority: {
|
|
145
|
+
type: 'integer',
|
|
146
|
+
minimum: 1,
|
|
147
|
+
maximum: 5,
|
|
148
|
+
description: 'Default priority for new tasks when not specified (1=highest, 5=lowest, default: 3)',
|
|
149
|
+
},
|
|
150
|
+
require_time_estimates: {
|
|
151
|
+
type: 'boolean',
|
|
152
|
+
description: 'Require estimated_minutes when creating tasks (default: false)',
|
|
153
|
+
},
|
|
154
|
+
fallback_activities_enabled: {
|
|
155
|
+
type: 'boolean',
|
|
156
|
+
description: 'Allow agents to perform background activities when no tasks available (default: true)',
|
|
157
|
+
},
|
|
158
|
+
preferred_fallback_activities: {
|
|
159
|
+
type: 'array',
|
|
160
|
+
items: { type: 'string' },
|
|
161
|
+
description: 'Array of preferred fallback activities (e.g., ["code_review", "security_review"]). Null means all allowed.',
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
required: ['project_id'],
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: 'update_project_readme',
|
|
169
|
+
description: 'Sync README content to the dashboard.',
|
|
170
|
+
inputSchema: {
|
|
171
|
+
type: 'object',
|
|
172
|
+
properties: {
|
|
173
|
+
project_id: {
|
|
174
|
+
type: 'string',
|
|
175
|
+
description: 'Project UUID',
|
|
176
|
+
},
|
|
177
|
+
readme_content: {
|
|
178
|
+
type: 'string',
|
|
179
|
+
description: 'README content in markdown format',
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
required: ['project_id', 'readme_content'],
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: 'get_project_summary',
|
|
187
|
+
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.',
|
|
188
|
+
inputSchema: {
|
|
189
|
+
type: 'object',
|
|
190
|
+
properties: {
|
|
191
|
+
project_id: {
|
|
192
|
+
type: 'string',
|
|
193
|
+
description: 'Project UUID',
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
required: ['project_id'],
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
];
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request Tool Definitions
|
|
3
|
+
*
|
|
4
|
+
* Tools for handling user requests:
|
|
5
|
+
* - get_pending_requests
|
|
6
|
+
* - acknowledge_request
|
|
7
|
+
* - answer_question
|
|
8
|
+
*/
|
|
9
|
+
export const requestTools = [
|
|
10
|
+
{
|
|
11
|
+
name: 'get_pending_requests',
|
|
12
|
+
description: `Get unacknowledged user requests for this agent/project.`,
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
project_id: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'Project UUID',
|
|
19
|
+
},
|
|
20
|
+
limit: {
|
|
21
|
+
type: 'number',
|
|
22
|
+
description: 'Max number of requests to return (default 50, max 200)',
|
|
23
|
+
},
|
|
24
|
+
offset: {
|
|
25
|
+
type: 'number',
|
|
26
|
+
description: 'Number of requests to skip for pagination (default 0)',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
required: ['project_id'],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'acknowledge_request',
|
|
34
|
+
description: `Mark a user request as handled.`,
|
|
35
|
+
inputSchema: {
|
|
36
|
+
type: 'object',
|
|
37
|
+
properties: {
|
|
38
|
+
request_id: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
description: 'Request UUID to acknowledge',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
required: ['request_id'],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'answer_question',
|
|
48
|
+
description: `Answer a question from the user. Use this when the user has asked a question via the dashboard.
|
|
49
|
+
The answer will be displayed to the user and the question marked as answered.`,
|
|
50
|
+
inputSchema: {
|
|
51
|
+
type: 'object',
|
|
52
|
+
properties: {
|
|
53
|
+
request_id: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
description: 'Request UUID of the question to answer',
|
|
56
|
+
},
|
|
57
|
+
answer: {
|
|
58
|
+
type: 'string',
|
|
59
|
+
description: 'Your answer to the user\'s question',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
required: ['request_id', 'answer'],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Role Tool Definitions
|
|
3
|
+
*
|
|
4
|
+
* Tools for managing agent roles:
|
|
5
|
+
* - get_role_settings
|
|
6
|
+
* - update_role_settings
|
|
7
|
+
* - set_session_role
|
|
8
|
+
* - get_agents_by_role
|
|
9
|
+
*/
|
|
10
|
+
import type { Tool } from './types.js';
|
|
11
|
+
export declare const roleTools: Tool[];
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Role Tool Definitions
|
|
3
|
+
*
|
|
4
|
+
* Tools for managing agent roles:
|
|
5
|
+
* - get_role_settings
|
|
6
|
+
* - update_role_settings
|
|
7
|
+
* - set_session_role
|
|
8
|
+
* - get_agents_by_role
|
|
9
|
+
*/
|
|
10
|
+
export const roleTools = [
|
|
11
|
+
{
|
|
12
|
+
name: 'get_role_settings',
|
|
13
|
+
description: 'Get role configuration for a project. Shows available roles and their settings.',
|
|
14
|
+
inputSchema: {
|
|
15
|
+
type: 'object',
|
|
16
|
+
properties: {
|
|
17
|
+
project_id: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
description: 'Project UUID',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
required: ['project_id'],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'update_role_settings',
|
|
27
|
+
description: 'Update role settings for a project. Configure which roles are enabled and their behavior.',
|
|
28
|
+
inputSchema: {
|
|
29
|
+
type: 'object',
|
|
30
|
+
properties: {
|
|
31
|
+
project_id: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
description: 'Project UUID',
|
|
34
|
+
},
|
|
35
|
+
role: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
description: 'Role to configure (e.g., "developer", "validator", "deployer"). Custom roles accepted.',
|
|
38
|
+
},
|
|
39
|
+
enabled: {
|
|
40
|
+
type: 'boolean',
|
|
41
|
+
description: 'Enable or disable this role',
|
|
42
|
+
},
|
|
43
|
+
display_name: {
|
|
44
|
+
type: 'string',
|
|
45
|
+
description: 'Custom display name for this role',
|
|
46
|
+
},
|
|
47
|
+
description: {
|
|
48
|
+
type: 'string',
|
|
49
|
+
description: 'Description of what this role does',
|
|
50
|
+
},
|
|
51
|
+
priority_filter: {
|
|
52
|
+
type: 'array',
|
|
53
|
+
items: { type: 'number' },
|
|
54
|
+
description: 'Only show tasks with these priorities (1-5)',
|
|
55
|
+
},
|
|
56
|
+
fallback_activities: {
|
|
57
|
+
type: 'array',
|
|
58
|
+
items: { type: 'string' },
|
|
59
|
+
description: 'Preferred fallback activities for this role',
|
|
60
|
+
},
|
|
61
|
+
auto_assign_validation: {
|
|
62
|
+
type: 'boolean',
|
|
63
|
+
description: 'Auto-assign validation tasks to agents with this role',
|
|
64
|
+
},
|
|
65
|
+
auto_assign_deployment: {
|
|
66
|
+
type: 'boolean',
|
|
67
|
+
description: 'Auto-assign deployment tasks to agents with this role',
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
required: ['project_id', 'role'],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'set_session_role',
|
|
75
|
+
description: 'Set the role for your current session. Changes task filtering and fallback activity suggestions.',
|
|
76
|
+
inputSchema: {
|
|
77
|
+
type: 'object',
|
|
78
|
+
properties: {
|
|
79
|
+
role: {
|
|
80
|
+
type: 'string',
|
|
81
|
+
description: 'Role to assign to this session (e.g., "developer", "validator", "deployer"). Custom roles accepted.',
|
|
82
|
+
},
|
|
83
|
+
role_config: {
|
|
84
|
+
type: 'object',
|
|
85
|
+
description: 'Custom configuration for specialist role (optional)',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
required: ['role'],
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'get_agents_by_role',
|
|
93
|
+
description: 'Get active agents grouped by their assigned roles. See who is working on what.',
|
|
94
|
+
inputSchema: {
|
|
95
|
+
type: 'object',
|
|
96
|
+
properties: {
|
|
97
|
+
project_id: {
|
|
98
|
+
type: 'string',
|
|
99
|
+
description: 'Project UUID',
|
|
100
|
+
},
|
|
101
|
+
counts_only: {
|
|
102
|
+
type: 'boolean',
|
|
103
|
+
description: 'When true (default), returns only counts per role to save tokens. Set to false for full agent details.',
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
required: ['project_id'],
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session Tool Definitions
|
|
3
|
+
*
|
|
4
|
+
* Tools for managing agent work sessions:
|
|
5
|
+
* - start_work_session
|
|
6
|
+
* - confirm_agent_setup
|
|
7
|
+
* - get_help
|
|
8
|
+
* - get_token_usage
|
|
9
|
+
* - report_token_usage
|
|
10
|
+
* - heartbeat
|
|
11
|
+
* - end_work_session
|
|
12
|
+
* - signal_idle
|
|
13
|
+
*/
|
|
14
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
15
|
+
export declare const sessionTools: Tool[];
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session Tool Definitions
|
|
3
|
+
*
|
|
4
|
+
* Tools for managing agent work sessions:
|
|
5
|
+
* - start_work_session
|
|
6
|
+
* - confirm_agent_setup
|
|
7
|
+
* - get_help
|
|
8
|
+
* - get_token_usage
|
|
9
|
+
* - report_token_usage
|
|
10
|
+
* - heartbeat
|
|
11
|
+
* - end_work_session
|
|
12
|
+
* - signal_idle
|
|
13
|
+
*/
|
|
14
|
+
export const sessionTools = [
|
|
15
|
+
{
|
|
16
|
+
name: 'start_work_session',
|
|
17
|
+
description: `CALL THIS FIRST when beginning work on a project.
|
|
18
|
+
Returns session info, persona, role, and next_task. Start the next_task IMMEDIATELY without asking the user.
|
|
19
|
+
|
|
20
|
+
IMPORTANT: If the user gives you direct work that isn't tracked as a task (e.g., "add feature X", "fix bug Y"), you MUST call add_task() first to create a task before starting work. This ensures all work is tracked and visible on the dashboard.
|
|
21
|
+
|
|
22
|
+
Use mode:'full' for complete context, mode:'lite' (default) for minimal tokens.`,
|
|
23
|
+
inputSchema: {
|
|
24
|
+
type: 'object',
|
|
25
|
+
properties: {
|
|
26
|
+
project_id: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'Project UUID',
|
|
29
|
+
},
|
|
30
|
+
git_url: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
description: 'Git repository URL. Used to find project if project_id not provided.',
|
|
33
|
+
},
|
|
34
|
+
mode: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
enum: ['lite', 'full'],
|
|
37
|
+
description: 'Response mode: lite (default, minimal tokens) or full (complete context)',
|
|
38
|
+
},
|
|
39
|
+
model: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
description: 'Model being used for cost tracking. E.g., "opus", "sonnet", "haiku" for Claude, "gemini" for Gemini, "gpt-4o" for OpenAI.',
|
|
42
|
+
},
|
|
43
|
+
role: {
|
|
44
|
+
type: 'string',
|
|
45
|
+
description: 'Agent role (e.g., "developer", "validator", "deployer", "reviewer", "maintainer"). Custom roles accepted.',
|
|
46
|
+
},
|
|
47
|
+
hostname: {
|
|
48
|
+
type: 'string',
|
|
49
|
+
description: 'Machine hostname for worktree tracking. Pass os.hostname() to filter stale worktrees to only those created on this machine.',
|
|
50
|
+
},
|
|
51
|
+
agent_type: {
|
|
52
|
+
type: 'string',
|
|
53
|
+
description: 'Agent type (e.g., "claude", "gemini", "cursor", "windsurf"). Custom agent types accepted.',
|
|
54
|
+
},
|
|
55
|
+
agent_name: {
|
|
56
|
+
type: 'string',
|
|
57
|
+
description: 'Explicit agent name (for cloud/remote agents). If provided, uses this name instead of selecting from persona pool. Cloud agents should pass their spawner-assigned name.',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'confirm_agent_setup',
|
|
64
|
+
description: `Confirm that agent setup is complete for this project. Call this after creating your agent's configuration file (e.g., .claude/CLAUDE.md, .gemini/GEMINI.md).
|
|
65
|
+
|
|
66
|
+
This marks your agent type as fully onboarded to the project, so you won't receive setup instructions again.`,
|
|
67
|
+
inputSchema: {
|
|
68
|
+
type: 'object',
|
|
69
|
+
properties: {
|
|
70
|
+
project_id: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
description: 'Project UUID',
|
|
73
|
+
},
|
|
74
|
+
agent_type: {
|
|
75
|
+
type: 'string',
|
|
76
|
+
description: 'Agent type that completed setup (e.g., "claude", "gemini", "cursor"). Custom agent types accepted.',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
required: ['project_id', 'agent_type'],
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'get_help',
|
|
84
|
+
description: 'Get guidance on a specific topic. Use when unsure about workflows.',
|
|
85
|
+
inputSchema: {
|
|
86
|
+
type: 'object',
|
|
87
|
+
properties: {
|
|
88
|
+
topic: {
|
|
89
|
+
type: 'string',
|
|
90
|
+
enum: ['getting_started', 'tasks', 'validation', 'deployment', 'git', 'blockers', 'milestones', 'fallback', 'session', 'tokens', 'roles', 'knowledge', 'topics'],
|
|
91
|
+
description: 'Help topic. Use "topics" to list all available.',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
required: ['topic'],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'get_token_usage',
|
|
99
|
+
description: 'Get token usage stats for this session. Monitor efficiency.',
|
|
100
|
+
inputSchema: {
|
|
101
|
+
type: 'object',
|
|
102
|
+
properties: {},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'report_token_usage',
|
|
107
|
+
description: `Report actual Claude API token usage for accurate cost tracking.
|
|
108
|
+
|
|
109
|
+
IMPORTANT: MCP can only estimate tokens from tool I/O (~1-5% of actual usage). Call this tool after each API response to report actual usage from the Claude API response headers.
|
|
110
|
+
|
|
111
|
+
The Claude API response includes 'usage.input_tokens' and 'usage.output_tokens' - pass those values here for accurate cost attribution.`,
|
|
112
|
+
inputSchema: {
|
|
113
|
+
type: 'object',
|
|
114
|
+
properties: {
|
|
115
|
+
input_tokens: {
|
|
116
|
+
type: 'number',
|
|
117
|
+
description: 'Input tokens from Claude API response (usage.input_tokens)',
|
|
118
|
+
},
|
|
119
|
+
output_tokens: {
|
|
120
|
+
type: 'number',
|
|
121
|
+
description: 'Output tokens from Claude API response (usage.output_tokens)',
|
|
122
|
+
},
|
|
123
|
+
model: {
|
|
124
|
+
type: 'string',
|
|
125
|
+
description: 'Model used for this API call (optional, uses session model if not provided)',
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
required: ['input_tokens', 'output_tokens'],
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'heartbeat',
|
|
133
|
+
description: `Send heartbeat to maintain 'active' status. Call every 30-60 seconds.`,
|
|
134
|
+
inputSchema: {
|
|
135
|
+
type: 'object',
|
|
136
|
+
properties: {
|
|
137
|
+
session_id: {
|
|
138
|
+
type: 'string',
|
|
139
|
+
description: 'Session ID from start_work_session (optional, uses current session if not provided)',
|
|
140
|
+
},
|
|
141
|
+
current_worktree_path: {
|
|
142
|
+
type: ['string', 'null'],
|
|
143
|
+
description: 'Report your current git worktree path (e.g., "../project-task-abc123"). Set to null to clear.',
|
|
144
|
+
},
|
|
145
|
+
hostname: {
|
|
146
|
+
type: 'string',
|
|
147
|
+
description: 'Machine hostname (os.hostname()). Updates session hostname for worktree tracking.',
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: 'end_work_session',
|
|
154
|
+
description: `End session and release claimed tasks. Returns session summary.`,
|
|
155
|
+
inputSchema: {
|
|
156
|
+
type: 'object',
|
|
157
|
+
properties: {
|
|
158
|
+
session_id: {
|
|
159
|
+
type: 'string',
|
|
160
|
+
description: 'Session ID to end (optional, uses current session if not provided)',
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: 'signal_idle',
|
|
167
|
+
description: `Signal that agent is idle (no more tasks). Call this when complete_task returns no next_task or when there's no work available. This provides real-time visibility on the dashboard instead of waiting for heartbeat timeout.`,
|
|
168
|
+
inputSchema: {
|
|
169
|
+
type: 'object',
|
|
170
|
+
properties: {
|
|
171
|
+
session_id: {
|
|
172
|
+
type: 'string',
|
|
173
|
+
description: 'Session ID (optional, uses current session if not provided)',
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sprint Tool Definitions
|
|
3
|
+
*
|
|
4
|
+
* Tools for managing sprints with velocity tracking:
|
|
5
|
+
* - create_sprint
|
|
6
|
+
* - update_sprint
|
|
7
|
+
* - get_sprint
|
|
8
|
+
* - get_sprints
|
|
9
|
+
* - delete_sprint
|
|
10
|
+
* - start_sprint
|
|
11
|
+
* - complete_sprint
|
|
12
|
+
* - add_task_to_sprint
|
|
13
|
+
* - remove_task_from_sprint
|
|
14
|
+
* - get_sprint_backlog
|
|
15
|
+
* - get_sprint_velocity
|
|
16
|
+
*/
|
|
17
|
+
import type { Tool } from './types.js';
|
|
18
|
+
export declare const sprintTools: Tool[];
|