@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,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File Checkout Tool Definitions
|
|
3
|
+
*
|
|
4
|
+
* Tools for multi-agent file coordination:
|
|
5
|
+
* - checkout_file
|
|
6
|
+
* - checkin_file
|
|
7
|
+
* - get_file_checkouts
|
|
8
|
+
* - abandon_checkout
|
|
9
|
+
* - is_file_available
|
|
10
|
+
* - get_file_checkouts_stats
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { Tool } from './types.js';
|
|
14
|
+
|
|
15
|
+
export const fileCheckoutTools: Tool[] = [
|
|
16
|
+
{
|
|
17
|
+
name: 'checkout_file',
|
|
18
|
+
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.',
|
|
19
|
+
inputSchema: {
|
|
20
|
+
type: 'object',
|
|
21
|
+
properties: {
|
|
22
|
+
project_id: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
description: 'Project UUID',
|
|
25
|
+
},
|
|
26
|
+
file_path: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'Relative path to the file to checkout (e.g., "src/index.ts")',
|
|
29
|
+
},
|
|
30
|
+
reason: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
description: 'Optional reason for checkout (e.g., "Fixing bug in login flow")',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
required: ['project_id', 'file_path'],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'checkin_file',
|
|
40
|
+
description: 'Check in a file after editing. Releases the file for other agents to edit. ALWAYS checkin files when done editing.',
|
|
41
|
+
inputSchema: {
|
|
42
|
+
type: 'object',
|
|
43
|
+
properties: {
|
|
44
|
+
checkout_id: {
|
|
45
|
+
type: 'string',
|
|
46
|
+
description: 'Checkout UUID (from checkout_file response)',
|
|
47
|
+
},
|
|
48
|
+
project_id: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
description: 'Project UUID (alternative to checkout_id)',
|
|
51
|
+
},
|
|
52
|
+
file_path: {
|
|
53
|
+
type: 'string',
|
|
54
|
+
description: 'File path (use with project_id as alternative to checkout_id)',
|
|
55
|
+
},
|
|
56
|
+
summary: {
|
|
57
|
+
type: 'string',
|
|
58
|
+
description: 'Optional summary of changes made',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'get_file_checkouts',
|
|
65
|
+
description: 'Get list of file checkouts for a project. Shows which files are currently checked out and by whom.',
|
|
66
|
+
inputSchema: {
|
|
67
|
+
type: 'object',
|
|
68
|
+
properties: {
|
|
69
|
+
project_id: {
|
|
70
|
+
type: 'string',
|
|
71
|
+
description: 'Project UUID',
|
|
72
|
+
},
|
|
73
|
+
status: {
|
|
74
|
+
type: 'string',
|
|
75
|
+
enum: ['checked_out', 'checked_in', 'abandoned'],
|
|
76
|
+
description: 'Filter by status (default: checked_out)',
|
|
77
|
+
},
|
|
78
|
+
include_completed: {
|
|
79
|
+
type: 'boolean',
|
|
80
|
+
description: 'Include checked_in and abandoned checkouts (default: false)',
|
|
81
|
+
},
|
|
82
|
+
limit: {
|
|
83
|
+
type: 'number',
|
|
84
|
+
description: 'Max checkouts to return (default: 50)',
|
|
85
|
+
},
|
|
86
|
+
offset: {
|
|
87
|
+
type: 'number',
|
|
88
|
+
description: 'Number of checkouts to skip for pagination (default 0)',
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
required: ['project_id'],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'abandon_checkout',
|
|
96
|
+
description: 'Force-release a checkout. Use when the original agent session died or is stuck.',
|
|
97
|
+
inputSchema: {
|
|
98
|
+
type: 'object',
|
|
99
|
+
properties: {
|
|
100
|
+
checkout_id: {
|
|
101
|
+
type: 'string',
|
|
102
|
+
description: 'Checkout UUID to abandon',
|
|
103
|
+
},
|
|
104
|
+
reason: {
|
|
105
|
+
type: 'string',
|
|
106
|
+
description: 'Reason for abandoning (e.g., "Agent session died")',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
required: ['checkout_id'],
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: 'is_file_available',
|
|
114
|
+
description: 'Check if a file is available for checkout. Returns who has it checked out if not available.',
|
|
115
|
+
inputSchema: {
|
|
116
|
+
type: 'object',
|
|
117
|
+
properties: {
|
|
118
|
+
project_id: {
|
|
119
|
+
type: 'string',
|
|
120
|
+
description: 'Project UUID',
|
|
121
|
+
},
|
|
122
|
+
file_path: {
|
|
123
|
+
type: 'string',
|
|
124
|
+
description: 'Path to the file to check',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
required: ['project_id', 'file_path'],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'get_file_checkouts_stats',
|
|
132
|
+
description:
|
|
133
|
+
'Get aggregate statistics about file checkouts for a project. Returns counts by status without the actual checkout data. This is much more token-efficient than get_file_checkouts for understanding the overall state.',
|
|
134
|
+
inputSchema: {
|
|
135
|
+
type: 'object',
|
|
136
|
+
properties: {
|
|
137
|
+
project_id: {
|
|
138
|
+
type: 'string',
|
|
139
|
+
description: 'Project UUID',
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
required: ['project_id'],
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
];
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Finding Tool Definitions
|
|
3
|
+
*
|
|
4
|
+
* Tools for managing audit/review findings:
|
|
5
|
+
* - add_finding
|
|
6
|
+
* - get_finding
|
|
7
|
+
* - get_findings
|
|
8
|
+
* - get_findings_stats
|
|
9
|
+
* - update_finding
|
|
10
|
+
* - delete_finding
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { Tool } from './types.js';
|
|
14
|
+
|
|
15
|
+
export const findingTools: Tool[] = [
|
|
16
|
+
{
|
|
17
|
+
name: 'add_finding',
|
|
18
|
+
description: 'Record a finding from an audit/review (performance, security, code quality, etc).',
|
|
19
|
+
inputSchema: {
|
|
20
|
+
type: 'object',
|
|
21
|
+
properties: {
|
|
22
|
+
project_id: { type: 'string', description: 'Project UUID' },
|
|
23
|
+
category: { type: 'string', enum: ['performance', 'security', 'code_quality', 'accessibility', 'documentation', 'architecture', 'testing', 'other'], description: 'Category of the finding (default: other)' },
|
|
24
|
+
title: { type: 'string', description: 'Brief title describing the finding' },
|
|
25
|
+
description: { type: 'string', description: 'Detailed description of the finding, including impact and suggested fix' },
|
|
26
|
+
severity: { type: 'string', enum: ['info', 'low', 'medium', 'high', 'critical'], description: 'Severity level (default: info)' },
|
|
27
|
+
file_path: { type: 'string', description: 'File path where the issue was found (optional)' },
|
|
28
|
+
line_number: { type: 'number', description: 'Line number in the file (optional)' },
|
|
29
|
+
related_task_id: { type: 'string', description: 'ID of related task if this finding came from a task (optional)' },
|
|
30
|
+
},
|
|
31
|
+
required: ['project_id', 'title'],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'get_finding',
|
|
36
|
+
description: `Get a single finding by ID. More token-efficient than get_findings when you need details for a specific finding.`,
|
|
37
|
+
inputSchema: {
|
|
38
|
+
type: 'object',
|
|
39
|
+
properties: {
|
|
40
|
+
finding_id: { type: 'string', description: 'Finding UUID' },
|
|
41
|
+
},
|
|
42
|
+
required: ['finding_id'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'get_findings',
|
|
47
|
+
description: `Get findings for a project, optionally filtered by category, severity, or status. Returns summary fields by default (id, title, category, severity, status). Set summary_only=false for full details. For just counts, use get_findings_stats instead.`,
|
|
48
|
+
inputSchema: {
|
|
49
|
+
type: 'object',
|
|
50
|
+
properties: {
|
|
51
|
+
project_id: { type: 'string', description: 'Project UUID' },
|
|
52
|
+
category: { type: 'string', enum: ['performance', 'security', 'code_quality', 'accessibility', 'documentation', 'architecture', 'testing', 'other'], description: 'Filter by category (optional)' },
|
|
53
|
+
severity: { type: 'string', enum: ['info', 'low', 'medium', 'high', 'critical'], description: 'Filter by severity (optional)' },
|
|
54
|
+
status: { type: 'string', enum: ['open', 'addressed', 'dismissed', 'wontfix'], description: 'Filter by status (default: open)' },
|
|
55
|
+
limit: { type: 'number', description: 'Max number of findings to return (default 10, max 200)' },
|
|
56
|
+
offset: { type: 'number', description: 'Number of findings to skip for pagination (default 0)' },
|
|
57
|
+
search_query: { type: 'string', description: 'Search findings by title' },
|
|
58
|
+
summary_only: { type: 'boolean', description: 'When true (default), returns only id, title, category, severity, status. Set to false for full details.' },
|
|
59
|
+
},
|
|
60
|
+
required: ['project_id'],
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'get_findings_stats',
|
|
65
|
+
description: `Get aggregate statistics about findings for a project. Returns total count and breakdowns by status, severity, and category. Much more token-efficient than get_findings when you just need to understand the overall state.`,
|
|
66
|
+
inputSchema: {
|
|
67
|
+
type: 'object',
|
|
68
|
+
properties: {
|
|
69
|
+
project_id: { type: 'string', description: 'Project UUID' },
|
|
70
|
+
},
|
|
71
|
+
required: ['project_id'],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'update_finding',
|
|
76
|
+
description: `Update a finding's status or details. Use to mark findings as addressed or dismissed.`,
|
|
77
|
+
inputSchema: {
|
|
78
|
+
type: 'object',
|
|
79
|
+
properties: {
|
|
80
|
+
finding_id: { type: 'string', description: 'Finding UUID' },
|
|
81
|
+
status: { type: 'string', enum: ['open', 'addressed', 'dismissed', 'wontfix'], description: 'New status' },
|
|
82
|
+
resolution_note: { type: 'string', description: 'Note explaining how the finding was addressed or why it was dismissed' },
|
|
83
|
+
title: { type: 'string', description: 'Updated title' },
|
|
84
|
+
description: { type: 'string', description: 'Updated description' },
|
|
85
|
+
severity: { type: 'string', enum: ['info', 'low', 'medium', 'high', 'critical'], description: 'Updated severity' },
|
|
86
|
+
},
|
|
87
|
+
required: ['finding_id'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'delete_finding',
|
|
92
|
+
description: `Delete a finding.`,
|
|
93
|
+
inputSchema: {
|
|
94
|
+
type: 'object',
|
|
95
|
+
properties: {
|
|
96
|
+
finding_id: { type: 'string', description: 'Finding UUID' },
|
|
97
|
+
},
|
|
98
|
+
required: ['finding_id'],
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
];
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Git Issue Tool Definitions
|
|
3
|
+
*
|
|
4
|
+
* Tools for managing git-related issues:
|
|
5
|
+
* - add_git_issue
|
|
6
|
+
* - resolve_git_issue
|
|
7
|
+
* - get_git_issues
|
|
8
|
+
* - delete_git_issue
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import type { Tool } from './types.js';
|
|
12
|
+
|
|
13
|
+
export const gitIssueTools: Tool[] = [
|
|
14
|
+
{
|
|
15
|
+
name: 'add_git_issue',
|
|
16
|
+
description: `Record a git-related issue (merge conflict, push failure, etc.). Auto-created by claim_validation when conflicts detected.`,
|
|
17
|
+
inputSchema: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
properties: {
|
|
20
|
+
project_id: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'Project UUID',
|
|
23
|
+
},
|
|
24
|
+
issue_type: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
enum: ['merge_conflict', 'push_failed', 'rebase_needed', 'branch_diverged', 'pr_not_mergeable'],
|
|
27
|
+
description: 'Type of git issue',
|
|
28
|
+
},
|
|
29
|
+
branch: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'Branch where the issue occurred',
|
|
32
|
+
},
|
|
33
|
+
target_branch: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'Target branch for merge/rebase (optional)',
|
|
36
|
+
},
|
|
37
|
+
pr_url: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
description: 'Pull request URL if applicable (optional)',
|
|
40
|
+
},
|
|
41
|
+
conflicting_files: {
|
|
42
|
+
type: 'array',
|
|
43
|
+
items: { type: 'string' },
|
|
44
|
+
description: 'List of files with conflicts (optional)',
|
|
45
|
+
},
|
|
46
|
+
error_message: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
description: 'Error message from git operation (optional)',
|
|
49
|
+
},
|
|
50
|
+
task_id: {
|
|
51
|
+
type: 'string',
|
|
52
|
+
description: 'Related task UUID (optional)',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
required: ['project_id', 'issue_type', 'branch'],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'resolve_git_issue',
|
|
60
|
+
description: `Mark a git issue as resolved.`,
|
|
61
|
+
inputSchema: {
|
|
62
|
+
type: 'object',
|
|
63
|
+
properties: {
|
|
64
|
+
git_issue_id: {
|
|
65
|
+
type: 'string',
|
|
66
|
+
description: 'Git issue UUID',
|
|
67
|
+
},
|
|
68
|
+
resolution_note: {
|
|
69
|
+
type: 'string',
|
|
70
|
+
description: 'How the issue was resolved (optional)',
|
|
71
|
+
},
|
|
72
|
+
auto_resolved: {
|
|
73
|
+
type: 'boolean',
|
|
74
|
+
description: 'Whether this was auto-resolved (e.g., PR became mergeable)',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
required: ['git_issue_id'],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'get_git_issues',
|
|
82
|
+
description: `Get git issues for a project, optionally filtered by status, type, or branch.`,
|
|
83
|
+
inputSchema: {
|
|
84
|
+
type: 'object',
|
|
85
|
+
properties: {
|
|
86
|
+
project_id: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
description: 'Project UUID',
|
|
89
|
+
},
|
|
90
|
+
status: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
enum: ['open', 'resolved'],
|
|
93
|
+
description: 'Filter by status (default: open)',
|
|
94
|
+
},
|
|
95
|
+
issue_type: {
|
|
96
|
+
type: 'string',
|
|
97
|
+
enum: ['merge_conflict', 'push_failed', 'rebase_needed', 'branch_diverged', 'pr_not_mergeable'],
|
|
98
|
+
description: 'Filter by issue type (optional)',
|
|
99
|
+
},
|
|
100
|
+
branch: {
|
|
101
|
+
type: 'string',
|
|
102
|
+
description: 'Filter by branch (optional)',
|
|
103
|
+
},
|
|
104
|
+
limit: {
|
|
105
|
+
type: 'number',
|
|
106
|
+
description: 'Max issues to return (default: 50)',
|
|
107
|
+
},
|
|
108
|
+
offset: {
|
|
109
|
+
type: 'number',
|
|
110
|
+
description: 'Number of issues to skip for pagination (default 0)',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
required: ['project_id'],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'delete_git_issue',
|
|
118
|
+
description: `Delete a git issue.`,
|
|
119
|
+
inputSchema: {
|
|
120
|
+
type: 'object',
|
|
121
|
+
properties: {
|
|
122
|
+
git_issue_id: {
|
|
123
|
+
type: 'string',
|
|
124
|
+
description: 'Git issue UUID',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
required: ['git_issue_id'],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
];
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Idea Tool Definitions
|
|
3
|
+
*
|
|
4
|
+
* Tools for managing improvement ideas:
|
|
5
|
+
* - add_idea
|
|
6
|
+
* - update_idea
|
|
7
|
+
* - get_idea
|
|
8
|
+
* - get_ideas
|
|
9
|
+
* - delete_idea
|
|
10
|
+
* - convert_idea_to_task
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { Tool } from './types.js';
|
|
14
|
+
|
|
15
|
+
export const ideaTools: Tool[] = [
|
|
16
|
+
{
|
|
17
|
+
name: 'add_idea',
|
|
18
|
+
description: `Record an idea for improvements or features. Starts as 'raw', can progress to 'shipped'.`,
|
|
19
|
+
inputSchema: {
|
|
20
|
+
type: 'object',
|
|
21
|
+
properties: {
|
|
22
|
+
project_id: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
description: 'Project UUID',
|
|
25
|
+
},
|
|
26
|
+
title: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'Idea title',
|
|
29
|
+
},
|
|
30
|
+
description: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
description: 'Detailed description',
|
|
33
|
+
},
|
|
34
|
+
status: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
enum: ['raw', 'exploring', 'planned', 'in_development', 'shipped'],
|
|
37
|
+
description: 'Development stage (default: raw)',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
required: ['project_id', 'title'],
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'update_idea',
|
|
45
|
+
description: `Update an idea's status or details.`,
|
|
46
|
+
inputSchema: {
|
|
47
|
+
type: 'object',
|
|
48
|
+
properties: {
|
|
49
|
+
idea_id: {
|
|
50
|
+
type: 'string',
|
|
51
|
+
description: 'Idea UUID',
|
|
52
|
+
},
|
|
53
|
+
title: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
description: 'Updated title',
|
|
56
|
+
},
|
|
57
|
+
description: {
|
|
58
|
+
type: 'string',
|
|
59
|
+
description: 'Updated description',
|
|
60
|
+
},
|
|
61
|
+
status: {
|
|
62
|
+
type: 'string',
|
|
63
|
+
enum: ['raw', 'exploring', 'planned', 'in_development', 'shipped'],
|
|
64
|
+
description: 'New development stage',
|
|
65
|
+
},
|
|
66
|
+
doc_url: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
description: 'URL to feature documentation/specification',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
required: ['idea_id'],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'get_idea',
|
|
76
|
+
description: `Get a single idea by ID. More token-efficient than get_ideas when you need details for a specific idea.`,
|
|
77
|
+
inputSchema: {
|
|
78
|
+
type: 'object',
|
|
79
|
+
properties: {
|
|
80
|
+
idea_id: {
|
|
81
|
+
type: 'string',
|
|
82
|
+
description: 'Idea UUID',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
required: ['idea_id'],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'get_ideas',
|
|
90
|
+
description: `Get recorded ideas for a project, optionally filtered by status.`,
|
|
91
|
+
inputSchema: {
|
|
92
|
+
type: 'object',
|
|
93
|
+
properties: {
|
|
94
|
+
project_id: {
|
|
95
|
+
type: 'string',
|
|
96
|
+
description: 'Project UUID',
|
|
97
|
+
},
|
|
98
|
+
status: {
|
|
99
|
+
type: 'string',
|
|
100
|
+
enum: ['raw', 'exploring', 'planned', 'in_development', 'shipped'],
|
|
101
|
+
description: 'Filter by status (optional)',
|
|
102
|
+
},
|
|
103
|
+
limit: {
|
|
104
|
+
type: 'number',
|
|
105
|
+
description: 'Max number of ideas to return (default 10, max 100)',
|
|
106
|
+
},
|
|
107
|
+
offset: {
|
|
108
|
+
type: 'number',
|
|
109
|
+
description: 'Number of ideas to skip for pagination (default 0)',
|
|
110
|
+
},
|
|
111
|
+
search_query: {
|
|
112
|
+
type: 'string',
|
|
113
|
+
description: 'Search ideas by title or description',
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
required: ['project_id'],
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'delete_idea',
|
|
121
|
+
description: `Delete an idea.`,
|
|
122
|
+
inputSchema: {
|
|
123
|
+
type: 'object',
|
|
124
|
+
properties: {
|
|
125
|
+
idea_id: {
|
|
126
|
+
type: 'string',
|
|
127
|
+
description: 'Idea UUID',
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
required: ['idea_id'],
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'convert_idea_to_task',
|
|
135
|
+
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.`,
|
|
136
|
+
inputSchema: {
|
|
137
|
+
type: 'object',
|
|
138
|
+
properties: {
|
|
139
|
+
idea_id: {
|
|
140
|
+
type: 'string',
|
|
141
|
+
description: 'Idea UUID to convert',
|
|
142
|
+
},
|
|
143
|
+
priority: {
|
|
144
|
+
type: 'number',
|
|
145
|
+
minimum: 1,
|
|
146
|
+
maximum: 5,
|
|
147
|
+
description: 'Task priority 1-5 (default: 3, 1 = highest)',
|
|
148
|
+
},
|
|
149
|
+
estimated_minutes: {
|
|
150
|
+
type: 'number',
|
|
151
|
+
minimum: 1,
|
|
152
|
+
description: 'Estimated time to complete in minutes',
|
|
153
|
+
},
|
|
154
|
+
update_status: {
|
|
155
|
+
type: 'boolean',
|
|
156
|
+
description: "Update idea status to 'in_development' (default: true)",
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
required: ['idea_id'],
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
];
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Tool Definitions
|
|
3
|
+
*
|
|
4
|
+
* This module exports all tool definitions organized by domain.
|
|
5
|
+
* Each domain file exports an array of Tool objects.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import type { Tool } from './types.js';
|
|
9
|
+
export type { Tool };
|
|
10
|
+
|
|
11
|
+
// Domain-specific tool imports
|
|
12
|
+
import { sessionTools } from './session.js';
|
|
13
|
+
import { costTools } from './cost.js';
|
|
14
|
+
import { discoveryTools } from './discovery.js';
|
|
15
|
+
import { worktreeTools } from './worktrees.js';
|
|
16
|
+
import { projectTools } from './project.js';
|
|
17
|
+
import { taskTools } from './tasks.js';
|
|
18
|
+
import { progressTools } from './progress.js';
|
|
19
|
+
import { blockerTools } from './blockers.js';
|
|
20
|
+
import { decisionTools } from './decisions.js';
|
|
21
|
+
import { ideaTools } from './ideas.js';
|
|
22
|
+
import { findingTools } from './findings.js';
|
|
23
|
+
import { validationTools } from './validation.js';
|
|
24
|
+
import { deploymentTools } from './deployment.js';
|
|
25
|
+
import { fallbackTools } from './fallback.js';
|
|
26
|
+
import { requestTools } from './requests.js';
|
|
27
|
+
import { milestoneTools } from './milestones.js';
|
|
28
|
+
import { bodiesOfWorkTools } from './bodies-of-work.js';
|
|
29
|
+
import { organizationTools } from './organizations.js';
|
|
30
|
+
import { fileCheckoutTools } from './file-checkouts.js';
|
|
31
|
+
import { roleTools } from './roles.js';
|
|
32
|
+
import { sprintTools } from './sprints.js';
|
|
33
|
+
import { gitIssueTools } from './git-issues.js';
|
|
34
|
+
import { connectorTools } from './connectors.js';
|
|
35
|
+
import { cloudAgentTools } from './cloud-agents.js';
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* All MCP tool definitions combined
|
|
39
|
+
*/
|
|
40
|
+
export const tools: Tool[] = [
|
|
41
|
+
...sessionTools,
|
|
42
|
+
...costTools,
|
|
43
|
+
...discoveryTools,
|
|
44
|
+
...worktreeTools,
|
|
45
|
+
...projectTools,
|
|
46
|
+
...taskTools,
|
|
47
|
+
...progressTools,
|
|
48
|
+
...blockerTools,
|
|
49
|
+
...decisionTools,
|
|
50
|
+
...ideaTools,
|
|
51
|
+
...findingTools,
|
|
52
|
+
...validationTools,
|
|
53
|
+
...deploymentTools,
|
|
54
|
+
...fallbackTools,
|
|
55
|
+
...requestTools,
|
|
56
|
+
...milestoneTools,
|
|
57
|
+
...bodiesOfWorkTools,
|
|
58
|
+
...organizationTools,
|
|
59
|
+
...fileCheckoutTools,
|
|
60
|
+
...roleTools,
|
|
61
|
+
...sprintTools,
|
|
62
|
+
...gitIssueTools,
|
|
63
|
+
...connectorTools,
|
|
64
|
+
...cloudAgentTools,
|
|
65
|
+
];
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Build the complete tool list from all domain modules
|
|
69
|
+
* (Backward compatible function - use `tools` export directly)
|
|
70
|
+
*/
|
|
71
|
+
export function buildToolList(): Tool[] {
|
|
72
|
+
return tools;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Get tool names by domain for categorization
|
|
77
|
+
*/
|
|
78
|
+
export const toolCategories = {
|
|
79
|
+
session: sessionTools.map((t) => t.name),
|
|
80
|
+
cost: costTools.map((t) => t.name),
|
|
81
|
+
discovery: discoveryTools.map((t) => t.name),
|
|
82
|
+
worktrees: worktreeTools.map((t) => t.name),
|
|
83
|
+
project: projectTools.map((t) => t.name),
|
|
84
|
+
tasks: taskTools.map((t) => t.name),
|
|
85
|
+
progress: progressTools.map((t) => t.name),
|
|
86
|
+
blockers: blockerTools.map((t) => t.name),
|
|
87
|
+
decisions: decisionTools.map((t) => t.name),
|
|
88
|
+
ideas: ideaTools.map((t) => t.name),
|
|
89
|
+
findings: findingTools.map((t) => t.name),
|
|
90
|
+
validation: validationTools.map((t) => t.name),
|
|
91
|
+
deployment: deploymentTools.map((t) => t.name),
|
|
92
|
+
fallback: fallbackTools.map((t) => t.name),
|
|
93
|
+
requests: requestTools.map((t) => t.name),
|
|
94
|
+
milestones: milestoneTools.map((t) => t.name),
|
|
95
|
+
bodiesOfWork: bodiesOfWorkTools.map((t) => t.name),
|
|
96
|
+
organizations: organizationTools.map((t) => t.name),
|
|
97
|
+
fileCheckouts: fileCheckoutTools.map((t) => t.name),
|
|
98
|
+
roles: roleTools.map((t) => t.name),
|
|
99
|
+
sprints: sprintTools.map((t) => t.name),
|
|
100
|
+
gitIssues: gitIssueTools.map((t) => t.name),
|
|
101
|
+
connectors: connectorTools.map((t) => t.name),
|
|
102
|
+
cloudAgents: cloudAgentTools.map((t) => t.name),
|
|
103
|
+
} as const;
|
|
104
|
+
|
|
105
|
+
// Re-export domain tools for selective imports
|
|
106
|
+
export {
|
|
107
|
+
sessionTools,
|
|
108
|
+
costTools,
|
|
109
|
+
discoveryTools,
|
|
110
|
+
worktreeTools,
|
|
111
|
+
projectTools,
|
|
112
|
+
taskTools,
|
|
113
|
+
progressTools,
|
|
114
|
+
blockerTools,
|
|
115
|
+
decisionTools,
|
|
116
|
+
ideaTools,
|
|
117
|
+
findingTools,
|
|
118
|
+
validationTools,
|
|
119
|
+
deploymentTools,
|
|
120
|
+
fallbackTools,
|
|
121
|
+
requestTools,
|
|
122
|
+
milestoneTools,
|
|
123
|
+
bodiesOfWorkTools,
|
|
124
|
+
organizationTools,
|
|
125
|
+
fileCheckoutTools,
|
|
126
|
+
roleTools,
|
|
127
|
+
sprintTools,
|
|
128
|
+
gitIssueTools,
|
|
129
|
+
connectorTools,
|
|
130
|
+
cloudAgentTools,
|
|
131
|
+
};
|