@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,112 @@
|
|
|
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
|
+
|
|
11
|
+
import type { Tool } from './types.js';
|
|
12
|
+
|
|
13
|
+
export const roleTools: Tool[] = [
|
|
14
|
+
{
|
|
15
|
+
name: 'get_role_settings',
|
|
16
|
+
description: 'Get role configuration for a project. Shows available roles and their settings.',
|
|
17
|
+
inputSchema: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
properties: {
|
|
20
|
+
project_id: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'Project UUID',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
required: ['project_id'],
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'update_role_settings',
|
|
30
|
+
description: 'Update role settings for a project. Configure which roles are enabled and their behavior.',
|
|
31
|
+
inputSchema: {
|
|
32
|
+
type: 'object',
|
|
33
|
+
properties: {
|
|
34
|
+
project_id: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
description: 'Project UUID',
|
|
37
|
+
},
|
|
38
|
+
role: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
description: 'Role to configure (e.g., "developer", "validator", "deployer"). Custom roles accepted.',
|
|
41
|
+
},
|
|
42
|
+
enabled: {
|
|
43
|
+
type: 'boolean',
|
|
44
|
+
description: 'Enable or disable this role',
|
|
45
|
+
},
|
|
46
|
+
display_name: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
description: 'Custom display name for this role',
|
|
49
|
+
},
|
|
50
|
+
description: {
|
|
51
|
+
type: 'string',
|
|
52
|
+
description: 'Description of what this role does',
|
|
53
|
+
},
|
|
54
|
+
priority_filter: {
|
|
55
|
+
type: 'array',
|
|
56
|
+
items: { type: 'number' },
|
|
57
|
+
description: 'Only show tasks with these priorities (1-5)',
|
|
58
|
+
},
|
|
59
|
+
fallback_activities: {
|
|
60
|
+
type: 'array',
|
|
61
|
+
items: { type: 'string' },
|
|
62
|
+
description: 'Preferred fallback activities for this role',
|
|
63
|
+
},
|
|
64
|
+
auto_assign_validation: {
|
|
65
|
+
type: 'boolean',
|
|
66
|
+
description: 'Auto-assign validation tasks to agents with this role',
|
|
67
|
+
},
|
|
68
|
+
auto_assign_deployment: {
|
|
69
|
+
type: 'boolean',
|
|
70
|
+
description: 'Auto-assign deployment tasks to agents with this role',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
required: ['project_id', 'role'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'set_session_role',
|
|
78
|
+
description: 'Set the role for your current session. Changes task filtering and fallback activity suggestions.',
|
|
79
|
+
inputSchema: {
|
|
80
|
+
type: 'object',
|
|
81
|
+
properties: {
|
|
82
|
+
role: {
|
|
83
|
+
type: 'string',
|
|
84
|
+
description: 'Role to assign to this session (e.g., "developer", "validator", "deployer"). Custom roles accepted.',
|
|
85
|
+
},
|
|
86
|
+
role_config: {
|
|
87
|
+
type: 'object',
|
|
88
|
+
description: 'Custom configuration for specialist role (optional)',
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
required: ['role'],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'get_agents_by_role',
|
|
96
|
+
description: 'Get active agents grouped by their assigned roles. See who is working on what.',
|
|
97
|
+
inputSchema: {
|
|
98
|
+
type: 'object',
|
|
99
|
+
properties: {
|
|
100
|
+
project_id: {
|
|
101
|
+
type: 'string',
|
|
102
|
+
description: 'Project UUID',
|
|
103
|
+
},
|
|
104
|
+
counts_only: {
|
|
105
|
+
type: 'boolean',
|
|
106
|
+
description: 'When true (default), returns only counts per role to save tokens. Set to false for full agent details.',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
required: ['project_id'],
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
];
|
|
@@ -0,0 +1,181 @@
|
|
|
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
|
+
|
|
15
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
16
|
+
|
|
17
|
+
export const sessionTools: Tool[] = [
|
|
18
|
+
{
|
|
19
|
+
name: 'start_work_session',
|
|
20
|
+
description: `CALL THIS FIRST when beginning work on a project.
|
|
21
|
+
Returns session info, persona, role, and next_task. Start the next_task IMMEDIATELY without asking the user.
|
|
22
|
+
|
|
23
|
+
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.
|
|
24
|
+
|
|
25
|
+
Use mode:'full' for complete context, mode:'lite' (default) for minimal tokens.`,
|
|
26
|
+
inputSchema: {
|
|
27
|
+
type: 'object',
|
|
28
|
+
properties: {
|
|
29
|
+
project_id: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'Project UUID',
|
|
32
|
+
},
|
|
33
|
+
git_url: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'Git repository URL. Used to find project if project_id not provided.',
|
|
36
|
+
},
|
|
37
|
+
mode: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
enum: ['lite', 'full'],
|
|
40
|
+
description: 'Response mode: lite (default, minimal tokens) or full (complete context)',
|
|
41
|
+
},
|
|
42
|
+
model: {
|
|
43
|
+
type: 'string',
|
|
44
|
+
description: 'Model being used for cost tracking. E.g., "opus", "sonnet", "haiku" for Claude, "gemini" for Gemini, "gpt-4o" for OpenAI.',
|
|
45
|
+
},
|
|
46
|
+
role: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
description: 'Agent role (e.g., "developer", "validator", "deployer", "reviewer", "maintainer"). Custom roles accepted.',
|
|
49
|
+
},
|
|
50
|
+
hostname: {
|
|
51
|
+
type: 'string',
|
|
52
|
+
description: 'Machine hostname for worktree tracking. Pass os.hostname() to filter stale worktrees to only those created on this machine.',
|
|
53
|
+
},
|
|
54
|
+
agent_type: {
|
|
55
|
+
type: 'string',
|
|
56
|
+
description: 'Agent type (e.g., "claude", "gemini", "cursor", "windsurf"). Custom agent types accepted.',
|
|
57
|
+
},
|
|
58
|
+
agent_name: {
|
|
59
|
+
type: 'string',
|
|
60
|
+
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.',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'confirm_agent_setup',
|
|
67
|
+
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).
|
|
68
|
+
|
|
69
|
+
This marks your agent type as fully onboarded to the project, so you won't receive setup instructions again.`,
|
|
70
|
+
inputSchema: {
|
|
71
|
+
type: 'object',
|
|
72
|
+
properties: {
|
|
73
|
+
project_id: {
|
|
74
|
+
type: 'string',
|
|
75
|
+
description: 'Project UUID',
|
|
76
|
+
},
|
|
77
|
+
agent_type: {
|
|
78
|
+
type: 'string',
|
|
79
|
+
description: 'Agent type that completed setup (e.g., "claude", "gemini", "cursor"). Custom agent types accepted.',
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
required: ['project_id', 'agent_type'],
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'get_help',
|
|
87
|
+
description: 'Get guidance on a specific topic. Use when unsure about workflows.',
|
|
88
|
+
inputSchema: {
|
|
89
|
+
type: 'object',
|
|
90
|
+
properties: {
|
|
91
|
+
topic: {
|
|
92
|
+
type: 'string',
|
|
93
|
+
enum: ['getting_started', 'tasks', 'validation', 'deployment', 'git', 'blockers', 'milestones', 'fallback', 'session', 'tokens', 'roles', 'knowledge', 'topics'],
|
|
94
|
+
description: 'Help topic. Use "topics" to list all available.',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
required: ['topic'],
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'get_token_usage',
|
|
102
|
+
description: 'Get token usage stats for this session. Monitor efficiency.',
|
|
103
|
+
inputSchema: {
|
|
104
|
+
type: 'object',
|
|
105
|
+
properties: {},
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: 'report_token_usage',
|
|
110
|
+
description: `Report actual Claude API token usage for accurate cost tracking.
|
|
111
|
+
|
|
112
|
+
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.
|
|
113
|
+
|
|
114
|
+
The Claude API response includes 'usage.input_tokens' and 'usage.output_tokens' - pass those values here for accurate cost attribution.`,
|
|
115
|
+
inputSchema: {
|
|
116
|
+
type: 'object',
|
|
117
|
+
properties: {
|
|
118
|
+
input_tokens: {
|
|
119
|
+
type: 'number',
|
|
120
|
+
description: 'Input tokens from Claude API response (usage.input_tokens)',
|
|
121
|
+
},
|
|
122
|
+
output_tokens: {
|
|
123
|
+
type: 'number',
|
|
124
|
+
description: 'Output tokens from Claude API response (usage.output_tokens)',
|
|
125
|
+
},
|
|
126
|
+
model: {
|
|
127
|
+
type: 'string',
|
|
128
|
+
description: 'Model used for this API call (optional, uses session model if not provided)',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
required: ['input_tokens', 'output_tokens'],
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'heartbeat',
|
|
136
|
+
description: `Send heartbeat to maintain 'active' status. Call every 30-60 seconds.`,
|
|
137
|
+
inputSchema: {
|
|
138
|
+
type: 'object',
|
|
139
|
+
properties: {
|
|
140
|
+
session_id: {
|
|
141
|
+
type: 'string',
|
|
142
|
+
description: 'Session ID from start_work_session (optional, uses current session if not provided)',
|
|
143
|
+
},
|
|
144
|
+
current_worktree_path: {
|
|
145
|
+
type: ['string', 'null'],
|
|
146
|
+
description: 'Report your current git worktree path (e.g., "../project-task-abc123"). Set to null to clear.',
|
|
147
|
+
},
|
|
148
|
+
hostname: {
|
|
149
|
+
type: 'string',
|
|
150
|
+
description: 'Machine hostname (os.hostname()). Updates session hostname for worktree tracking.',
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'end_work_session',
|
|
157
|
+
description: `End session and release claimed tasks. Returns session summary.`,
|
|
158
|
+
inputSchema: {
|
|
159
|
+
type: 'object',
|
|
160
|
+
properties: {
|
|
161
|
+
session_id: {
|
|
162
|
+
type: 'string',
|
|
163
|
+
description: 'Session ID to end (optional, uses current session if not provided)',
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: 'signal_idle',
|
|
170
|
+
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.`,
|
|
171
|
+
inputSchema: {
|
|
172
|
+
type: 'object',
|
|
173
|
+
properties: {
|
|
174
|
+
session_id: {
|
|
175
|
+
type: 'string',
|
|
176
|
+
description: 'Session ID (optional, uses current session if not provided)',
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
];
|
|
@@ -0,0 +1,298 @@
|
|
|
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
|
+
|
|
18
|
+
import type { Tool } from './types.js';
|
|
19
|
+
|
|
20
|
+
export const sprintTools: Tool[] = [
|
|
21
|
+
{
|
|
22
|
+
name: 'create_sprint',
|
|
23
|
+
description: `Create a new sprint. Sprints are time-bounded bodies of work with velocity tracking.
|
|
24
|
+
Sprints start in 'planning' status where tasks can be added with story points.`,
|
|
25
|
+
inputSchema: {
|
|
26
|
+
type: 'object',
|
|
27
|
+
properties: {
|
|
28
|
+
project_id: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
description: 'Project UUID',
|
|
31
|
+
},
|
|
32
|
+
title: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
description: 'Sprint title (e.g., "Sprint 5" or "Q1 Release")',
|
|
35
|
+
},
|
|
36
|
+
goal: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
description: 'Sprint goal statement',
|
|
39
|
+
},
|
|
40
|
+
start_date: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
description: 'Start date (YYYY-MM-DD)',
|
|
43
|
+
},
|
|
44
|
+
end_date: {
|
|
45
|
+
type: 'string',
|
|
46
|
+
description: 'End date (YYYY-MM-DD)',
|
|
47
|
+
},
|
|
48
|
+
auto_deploy_on_completion: {
|
|
49
|
+
type: 'boolean',
|
|
50
|
+
description: 'Automatically request deployment when sprint completes (default: false)',
|
|
51
|
+
},
|
|
52
|
+
deploy_environment: {
|
|
53
|
+
type: 'string',
|
|
54
|
+
enum: ['development', 'staging', 'production'],
|
|
55
|
+
description: 'Target environment for auto-deploy (default: production)',
|
|
56
|
+
},
|
|
57
|
+
deploy_version_bump: {
|
|
58
|
+
type: 'string',
|
|
59
|
+
enum: ['patch', 'minor', 'major'],
|
|
60
|
+
description: 'Version bump for auto-deploy (default: minor)',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
required: ['project_id', 'title', 'start_date', 'end_date'],
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'update_sprint',
|
|
68
|
+
description: `Update a sprint's details. Can update title, goal, dates, and deployment settings.`,
|
|
69
|
+
inputSchema: {
|
|
70
|
+
type: 'object',
|
|
71
|
+
properties: {
|
|
72
|
+
sprint_id: {
|
|
73
|
+
type: 'string',
|
|
74
|
+
description: 'Sprint UUID',
|
|
75
|
+
},
|
|
76
|
+
title: {
|
|
77
|
+
type: 'string',
|
|
78
|
+
description: 'New sprint title',
|
|
79
|
+
},
|
|
80
|
+
goal: {
|
|
81
|
+
type: 'string',
|
|
82
|
+
description: 'New sprint goal',
|
|
83
|
+
},
|
|
84
|
+
start_date: {
|
|
85
|
+
type: 'string',
|
|
86
|
+
description: 'New start date (YYYY-MM-DD)',
|
|
87
|
+
},
|
|
88
|
+
end_date: {
|
|
89
|
+
type: 'string',
|
|
90
|
+
description: 'New end date (YYYY-MM-DD)',
|
|
91
|
+
},
|
|
92
|
+
auto_deploy_on_completion: {
|
|
93
|
+
type: 'boolean',
|
|
94
|
+
description: 'Auto-deploy setting',
|
|
95
|
+
},
|
|
96
|
+
deploy_environment: {
|
|
97
|
+
type: 'string',
|
|
98
|
+
enum: ['development', 'staging', 'production'],
|
|
99
|
+
description: 'Target environment',
|
|
100
|
+
},
|
|
101
|
+
deploy_version_bump: {
|
|
102
|
+
type: 'string',
|
|
103
|
+
enum: ['patch', 'minor', 'major'],
|
|
104
|
+
description: 'Version bump type',
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
required: ['sprint_id'],
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'get_sprint',
|
|
112
|
+
description: `Get a sprint with all its tasks organized by phase (pre/core/post).
|
|
113
|
+
Includes progress percentage, velocity points, and committed points.
|
|
114
|
+
Use summary_only: true to get task counts and next task instead of full task arrays (saves tokens).`,
|
|
115
|
+
inputSchema: {
|
|
116
|
+
type: 'object',
|
|
117
|
+
properties: {
|
|
118
|
+
sprint_id: {
|
|
119
|
+
type: 'string',
|
|
120
|
+
description: 'Sprint UUID',
|
|
121
|
+
},
|
|
122
|
+
summary_only: {
|
|
123
|
+
type: 'boolean',
|
|
124
|
+
description: 'Return task counts and next task instead of full task arrays (default: false)',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
required: ['sprint_id'],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'get_sprints',
|
|
132
|
+
description: `List sprints for a project with velocity metrics.
|
|
133
|
+
Returns sprints sorted by sprint_number descending (most recent first).`,
|
|
134
|
+
inputSchema: {
|
|
135
|
+
type: 'object',
|
|
136
|
+
properties: {
|
|
137
|
+
project_id: {
|
|
138
|
+
type: 'string',
|
|
139
|
+
description: 'Project UUID',
|
|
140
|
+
},
|
|
141
|
+
status: {
|
|
142
|
+
type: 'string',
|
|
143
|
+
enum: ['planning', 'active', 'in_review', 'retrospective', 'completed', 'cancelled'],
|
|
144
|
+
description: 'Filter by sprint status (optional)',
|
|
145
|
+
},
|
|
146
|
+
limit: {
|
|
147
|
+
type: 'number',
|
|
148
|
+
description: 'Max sprints to return (default: 20, max: 100)',
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
required: ['project_id'],
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'delete_sprint',
|
|
156
|
+
description: `Delete a sprint. Tasks are preserved but no longer grouped.`,
|
|
157
|
+
inputSchema: {
|
|
158
|
+
type: 'object',
|
|
159
|
+
properties: {
|
|
160
|
+
sprint_id: {
|
|
161
|
+
type: 'string',
|
|
162
|
+
description: 'Sprint UUID',
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
required: ['sprint_id'],
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: 'start_sprint',
|
|
170
|
+
description: `Start a sprint. Transitions from 'planning' to 'active' status.
|
|
171
|
+
Locks the committed_points at the current total story points.`,
|
|
172
|
+
inputSchema: {
|
|
173
|
+
type: 'object',
|
|
174
|
+
properties: {
|
|
175
|
+
sprint_id: {
|
|
176
|
+
type: 'string',
|
|
177
|
+
description: 'Sprint UUID',
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
required: ['sprint_id'],
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: 'complete_sprint',
|
|
185
|
+
description: `Complete a sprint. Handles retrospective phase and auto-deployment if configured.
|
|
186
|
+
Status flow: active → in_review → retrospective → completed`,
|
|
187
|
+
inputSchema: {
|
|
188
|
+
type: 'object',
|
|
189
|
+
properties: {
|
|
190
|
+
sprint_id: {
|
|
191
|
+
type: 'string',
|
|
192
|
+
description: 'Sprint UUID',
|
|
193
|
+
},
|
|
194
|
+
retrospective_notes: {
|
|
195
|
+
type: 'string',
|
|
196
|
+
description: 'Sprint retrospective notes',
|
|
197
|
+
},
|
|
198
|
+
skip_retrospective: {
|
|
199
|
+
type: 'boolean',
|
|
200
|
+
description: 'Skip retrospective phase and go directly to completed (default: false)',
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
required: ['sprint_id'],
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: 'add_task_to_sprint',
|
|
208
|
+
description: `Add a task to a sprint with optional story points.
|
|
209
|
+
Tasks can be added during 'planning' status. Story points contribute to committed_points.`,
|
|
210
|
+
inputSchema: {
|
|
211
|
+
type: 'object',
|
|
212
|
+
properties: {
|
|
213
|
+
sprint_id: {
|
|
214
|
+
type: 'string',
|
|
215
|
+
description: 'Sprint UUID',
|
|
216
|
+
},
|
|
217
|
+
task_id: {
|
|
218
|
+
type: 'string',
|
|
219
|
+
description: 'Task UUID to add',
|
|
220
|
+
},
|
|
221
|
+
story_points: {
|
|
222
|
+
type: 'number',
|
|
223
|
+
description: 'Story point estimate (optional, must be non-negative integer)',
|
|
224
|
+
},
|
|
225
|
+
phase: {
|
|
226
|
+
type: 'string',
|
|
227
|
+
enum: ['pre', 'core', 'post'],
|
|
228
|
+
description: 'Task phase (default: core)',
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
required: ['sprint_id', 'task_id'],
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
name: 'remove_task_from_sprint',
|
|
236
|
+
description: `Remove a task from a sprint. Task is preserved but returns to backlog.`,
|
|
237
|
+
inputSchema: {
|
|
238
|
+
type: 'object',
|
|
239
|
+
properties: {
|
|
240
|
+
sprint_id: {
|
|
241
|
+
type: 'string',
|
|
242
|
+
description: 'Sprint UUID',
|
|
243
|
+
},
|
|
244
|
+
task_id: {
|
|
245
|
+
type: 'string',
|
|
246
|
+
description: 'Task UUID to remove',
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
required: ['sprint_id', 'task_id'],
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: 'get_sprint_backlog',
|
|
254
|
+
description: `Get tasks from backlog/pending that can be added to a sprint with pagination.
|
|
255
|
+
Returns tasks not already assigned to any body of work or sprint.`,
|
|
256
|
+
inputSchema: {
|
|
257
|
+
type: 'object',
|
|
258
|
+
properties: {
|
|
259
|
+
project_id: {
|
|
260
|
+
type: 'string',
|
|
261
|
+
description: 'Project UUID',
|
|
262
|
+
},
|
|
263
|
+
sprint_id: {
|
|
264
|
+
type: 'string',
|
|
265
|
+
description: 'Sprint UUID to exclude already-added tasks (optional)',
|
|
266
|
+
},
|
|
267
|
+
limit: {
|
|
268
|
+
type: 'number',
|
|
269
|
+
description: 'Max tasks to return (default: 20, max: 50)',
|
|
270
|
+
},
|
|
271
|
+
offset: {
|
|
272
|
+
type: 'number',
|
|
273
|
+
description: 'Number of tasks to skip (default: 0)',
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
required: ['project_id'],
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
name: 'get_sprint_velocity',
|
|
281
|
+
description: `Get velocity metrics for completed sprints.
|
|
282
|
+
Returns committed vs completed points and average velocity.`,
|
|
283
|
+
inputSchema: {
|
|
284
|
+
type: 'object',
|
|
285
|
+
properties: {
|
|
286
|
+
project_id: {
|
|
287
|
+
type: 'string',
|
|
288
|
+
description: 'Project UUID',
|
|
289
|
+
},
|
|
290
|
+
limit: {
|
|
291
|
+
type: 'number',
|
|
292
|
+
description: 'Number of sprints to analyze (default: 10, max: 50)',
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
required: ['project_id'],
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
];
|