@fractary/core-mcp 0.1.1
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/LICENSE +21 -0
- package/README.md +272 -0
- package/dist/config.d.ts +40 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +112 -0
- package/dist/config.js.map +1 -0
- package/dist/handlers/docs.d.ts +58 -0
- package/dist/handlers/docs.d.ts.map +1 -0
- package/dist/handlers/docs.js +144 -0
- package/dist/handlers/docs.js.map +1 -0
- package/dist/handlers/file.d.ts +55 -0
- package/dist/handlers/file.d.ts.map +1 -0
- package/dist/handlers/file.js +153 -0
- package/dist/handlers/file.js.map +1 -0
- package/dist/handlers/helpers.d.ts +62 -0
- package/dist/handlers/helpers.d.ts.map +1 -0
- package/dist/handlers/helpers.js +100 -0
- package/dist/handlers/helpers.js.map +1 -0
- package/dist/handlers/index.d.ts +10 -0
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +184 -0
- package/dist/handlers/index.js.map +1 -0
- package/dist/handlers/logs.d.ts +48 -0
- package/dist/handlers/logs.d.ts.map +1 -0
- package/dist/handlers/logs.js +99 -0
- package/dist/handlers/logs.js.map +1 -0
- package/dist/handlers/repo.d.ts +158 -0
- package/dist/handlers/repo.d.ts.map +1 -0
- package/dist/handlers/repo.js +651 -0
- package/dist/handlers/repo.js.map +1 -0
- package/dist/handlers/security.d.ts +38 -0
- package/dist/handlers/security.d.ts.map +1 -0
- package/dist/handlers/security.js +79 -0
- package/dist/handlers/security.js.map +1 -0
- package/dist/handlers/spec.d.ts +39 -0
- package/dist/handlers/spec.d.ts.map +1 -0
- package/dist/handlers/spec.js +99 -0
- package/dist/handlers/spec.js.map +1 -0
- package/dist/handlers/work.d.ts +147 -0
- package/dist/handlers/work.d.ts.map +1 -0
- package/dist/handlers/work.js +373 -0
- package/dist/handlers/work.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/server.d.ts +3 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +42 -0
- package/dist/server.js.map +1 -0
- package/dist/tools/docs.d.ts +7 -0
- package/dist/tools/docs.d.ts.map +1 -0
- package/dist/tools/docs.js +160 -0
- package/dist/tools/docs.js.map +1 -0
- package/dist/tools/file.d.ts +7 -0
- package/dist/tools/file.d.ts.map +1 -0
- package/dist/tools/file.js +144 -0
- package/dist/tools/file.js.map +1 -0
- package/dist/tools/index.d.ts +9 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +18 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/logs.d.ts +7 -0
- package/dist/tools/logs.d.ts.map +1 -0
- package/dist/tools/logs.js +139 -0
- package/dist/tools/logs.js.map +1 -0
- package/dist/tools/repo.d.ts +7 -0
- package/dist/tools/repo.d.ts.map +1 -0
- package/dist/tools/repo.js +694 -0
- package/dist/tools/repo.js.map +1 -0
- package/dist/tools/spec.d.ts +7 -0
- package/dist/tools/spec.d.ts.map +1 -0
- package/dist/tools/spec.js +102 -0
- package/dist/tools/spec.js.map +1 -0
- package/dist/tools/work.d.ts +7 -0
- package/dist/tools/work.d.ts.map +1 -0
- package/dist/tools/work.js +384 -0
- package/dist/tools/work.js.map +1 -0
- package/dist/types.d.ts +28 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +6 -0
- package/dist/types.js.map +1 -0
- package/package.json +75 -0
|
@@ -0,0 +1,694 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP tool definitions for the Repo module
|
|
3
|
+
* 38 tools for repository management (Git, PRs, branches, tags, worktrees)
|
|
4
|
+
*/
|
|
5
|
+
export const repoTools = [
|
|
6
|
+
// Repository status
|
|
7
|
+
{
|
|
8
|
+
name: 'fractary_repo_status',
|
|
9
|
+
description: 'Get repository status',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'fractary_repo_branch_current',
|
|
17
|
+
description: 'Get current branch name',
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'fractary_repo_is_dirty',
|
|
25
|
+
description: 'Check if repository has uncommitted changes',
|
|
26
|
+
inputSchema: {
|
|
27
|
+
type: 'object',
|
|
28
|
+
properties: {},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'fractary_repo_diff',
|
|
33
|
+
description: 'Get diff of changes',
|
|
34
|
+
inputSchema: {
|
|
35
|
+
type: 'object',
|
|
36
|
+
properties: {
|
|
37
|
+
staged: {
|
|
38
|
+
type: 'boolean',
|
|
39
|
+
description: 'Show only staged changes',
|
|
40
|
+
},
|
|
41
|
+
base: {
|
|
42
|
+
type: 'string',
|
|
43
|
+
description: 'Base branch/commit for comparison',
|
|
44
|
+
},
|
|
45
|
+
head: {
|
|
46
|
+
type: 'string',
|
|
47
|
+
description: 'Head branch/commit for comparison',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
// Branch operations
|
|
53
|
+
{
|
|
54
|
+
name: 'fractary_repo_branch_create',
|
|
55
|
+
description: 'Create a new branch',
|
|
56
|
+
inputSchema: {
|
|
57
|
+
type: 'object',
|
|
58
|
+
required: ['name'],
|
|
59
|
+
properties: {
|
|
60
|
+
name: {
|
|
61
|
+
type: 'string',
|
|
62
|
+
description: 'Branch name',
|
|
63
|
+
},
|
|
64
|
+
base_branch: {
|
|
65
|
+
type: 'string',
|
|
66
|
+
description: 'Base branch to create from',
|
|
67
|
+
},
|
|
68
|
+
from_protected: {
|
|
69
|
+
type: 'boolean',
|
|
70
|
+
description: 'Allow creating from protected branch',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'fractary_repo_branch_delete',
|
|
77
|
+
description: 'Delete a branch',
|
|
78
|
+
inputSchema: {
|
|
79
|
+
type: 'object',
|
|
80
|
+
required: ['name'],
|
|
81
|
+
properties: {
|
|
82
|
+
name: {
|
|
83
|
+
type: 'string',
|
|
84
|
+
description: 'Branch name to delete',
|
|
85
|
+
},
|
|
86
|
+
force: {
|
|
87
|
+
type: 'boolean',
|
|
88
|
+
description: 'Force delete unmerged branch',
|
|
89
|
+
},
|
|
90
|
+
location: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
enum: ['local', 'remote', 'both'],
|
|
93
|
+
description: 'Where to delete the branch',
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'fractary_repo_branch_list',
|
|
100
|
+
description: 'List branches',
|
|
101
|
+
inputSchema: {
|
|
102
|
+
type: 'object',
|
|
103
|
+
properties: {
|
|
104
|
+
pattern: {
|
|
105
|
+
type: 'string',
|
|
106
|
+
description: 'Pattern to filter branches',
|
|
107
|
+
},
|
|
108
|
+
merged: {
|
|
109
|
+
type: 'boolean',
|
|
110
|
+
description: 'Only show merged branches',
|
|
111
|
+
},
|
|
112
|
+
limit: {
|
|
113
|
+
type: 'number',
|
|
114
|
+
description: 'Maximum number of branches',
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'fractary_repo_branch_get',
|
|
121
|
+
description: 'Get branch details',
|
|
122
|
+
inputSchema: {
|
|
123
|
+
type: 'object',
|
|
124
|
+
required: ['name'],
|
|
125
|
+
properties: {
|
|
126
|
+
name: {
|
|
127
|
+
type: 'string',
|
|
128
|
+
description: 'Branch name',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'fractary_repo_checkout',
|
|
135
|
+
description: 'Checkout a branch',
|
|
136
|
+
inputSchema: {
|
|
137
|
+
type: 'object',
|
|
138
|
+
required: ['branch'],
|
|
139
|
+
properties: {
|
|
140
|
+
branch: {
|
|
141
|
+
type: 'string',
|
|
142
|
+
description: 'Branch name to checkout',
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: 'fractary_repo_branch_name_generate',
|
|
149
|
+
description: 'Generate a semantic branch name',
|
|
150
|
+
inputSchema: {
|
|
151
|
+
type: 'object',
|
|
152
|
+
required: ['type', 'description'],
|
|
153
|
+
properties: {
|
|
154
|
+
type: {
|
|
155
|
+
type: 'string',
|
|
156
|
+
enum: ['feature', 'fix', 'chore', 'docs'],
|
|
157
|
+
description: 'Branch type',
|
|
158
|
+
},
|
|
159
|
+
description: {
|
|
160
|
+
type: 'string',
|
|
161
|
+
description: 'Brief description',
|
|
162
|
+
},
|
|
163
|
+
work_id: {
|
|
164
|
+
type: 'string',
|
|
165
|
+
description: 'Work item ID',
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
// Staging
|
|
171
|
+
{
|
|
172
|
+
name: 'fractary_repo_stage',
|
|
173
|
+
description: 'Stage files for commit',
|
|
174
|
+
inputSchema: {
|
|
175
|
+
type: 'object',
|
|
176
|
+
required: ['patterns'],
|
|
177
|
+
properties: {
|
|
178
|
+
patterns: {
|
|
179
|
+
type: 'array',
|
|
180
|
+
items: { type: 'string' },
|
|
181
|
+
description: 'File patterns to stage',
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: 'fractary_repo_stage_all',
|
|
188
|
+
description: 'Stage all changes',
|
|
189
|
+
inputSchema: {
|
|
190
|
+
type: 'object',
|
|
191
|
+
properties: {},
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: 'fractary_repo_unstage',
|
|
196
|
+
description: 'Unstage files',
|
|
197
|
+
inputSchema: {
|
|
198
|
+
type: 'object',
|
|
199
|
+
required: ['patterns'],
|
|
200
|
+
properties: {
|
|
201
|
+
patterns: {
|
|
202
|
+
type: 'array',
|
|
203
|
+
items: { type: 'string' },
|
|
204
|
+
description: 'File patterns to unstage',
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
// Commits
|
|
210
|
+
{
|
|
211
|
+
name: 'fractary_repo_commit',
|
|
212
|
+
description: 'Create a commit',
|
|
213
|
+
inputSchema: {
|
|
214
|
+
type: 'object',
|
|
215
|
+
required: ['message'],
|
|
216
|
+
properties: {
|
|
217
|
+
message: {
|
|
218
|
+
type: 'string',
|
|
219
|
+
description: 'Commit message',
|
|
220
|
+
},
|
|
221
|
+
type: {
|
|
222
|
+
type: 'string',
|
|
223
|
+
enum: ['feat', 'fix', 'docs', 'style', 'refactor', 'test', 'chore'],
|
|
224
|
+
description: 'Conventional commit type',
|
|
225
|
+
},
|
|
226
|
+
scope: {
|
|
227
|
+
type: 'string',
|
|
228
|
+
description: 'Commit scope',
|
|
229
|
+
},
|
|
230
|
+
body: {
|
|
231
|
+
type: 'string',
|
|
232
|
+
description: 'Commit body/description',
|
|
233
|
+
},
|
|
234
|
+
breaking: {
|
|
235
|
+
type: 'boolean',
|
|
236
|
+
description: 'Mark as breaking change',
|
|
237
|
+
},
|
|
238
|
+
work_id: {
|
|
239
|
+
type: 'string',
|
|
240
|
+
description: 'Work item ID to link',
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
name: 'fractary_repo_commit_get',
|
|
247
|
+
description: 'Get commit details',
|
|
248
|
+
inputSchema: {
|
|
249
|
+
type: 'object',
|
|
250
|
+
required: ['ref'],
|
|
251
|
+
properties: {
|
|
252
|
+
ref: {
|
|
253
|
+
type: 'string',
|
|
254
|
+
description: 'Commit ref (SHA, HEAD, etc.)',
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
name: 'fractary_repo_commit_list',
|
|
261
|
+
description: 'List commits',
|
|
262
|
+
inputSchema: {
|
|
263
|
+
type: 'object',
|
|
264
|
+
properties: {
|
|
265
|
+
limit: {
|
|
266
|
+
type: 'number',
|
|
267
|
+
description: 'Maximum number of commits',
|
|
268
|
+
},
|
|
269
|
+
branch: {
|
|
270
|
+
type: 'string',
|
|
271
|
+
description: 'Branch to list commits from',
|
|
272
|
+
},
|
|
273
|
+
since: {
|
|
274
|
+
type: 'string',
|
|
275
|
+
description: 'Only commits after this date',
|
|
276
|
+
},
|
|
277
|
+
until: {
|
|
278
|
+
type: 'string',
|
|
279
|
+
description: 'Only commits before this date',
|
|
280
|
+
},
|
|
281
|
+
author: {
|
|
282
|
+
type: 'string',
|
|
283
|
+
description: 'Filter by commit author',
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
// Push/Pull/Fetch
|
|
289
|
+
{
|
|
290
|
+
name: 'fractary_repo_push',
|
|
291
|
+
description: 'Push to remote',
|
|
292
|
+
inputSchema: {
|
|
293
|
+
type: 'object',
|
|
294
|
+
properties: {
|
|
295
|
+
branch: {
|
|
296
|
+
type: 'string',
|
|
297
|
+
description: 'Branch to push',
|
|
298
|
+
},
|
|
299
|
+
remote: {
|
|
300
|
+
type: 'string',
|
|
301
|
+
description: 'Remote name',
|
|
302
|
+
},
|
|
303
|
+
force: {
|
|
304
|
+
type: 'boolean',
|
|
305
|
+
description: 'Force push',
|
|
306
|
+
},
|
|
307
|
+
set_upstream: {
|
|
308
|
+
type: 'boolean',
|
|
309
|
+
description: 'Set upstream tracking',
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
name: 'fractary_repo_pull',
|
|
316
|
+
description: 'Pull from remote',
|
|
317
|
+
inputSchema: {
|
|
318
|
+
type: 'object',
|
|
319
|
+
properties: {
|
|
320
|
+
branch: {
|
|
321
|
+
type: 'string',
|
|
322
|
+
description: 'Branch to pull',
|
|
323
|
+
},
|
|
324
|
+
remote: {
|
|
325
|
+
type: 'string',
|
|
326
|
+
description: 'Remote name',
|
|
327
|
+
},
|
|
328
|
+
rebase: {
|
|
329
|
+
type: 'boolean',
|
|
330
|
+
description: 'Use rebase instead of merge',
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
name: 'fractary_repo_fetch',
|
|
337
|
+
description: 'Fetch from remote',
|
|
338
|
+
inputSchema: {
|
|
339
|
+
type: 'object',
|
|
340
|
+
properties: {
|
|
341
|
+
remote: {
|
|
342
|
+
type: 'string',
|
|
343
|
+
description: 'Remote name',
|
|
344
|
+
},
|
|
345
|
+
},
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
// Pull Requests
|
|
349
|
+
{
|
|
350
|
+
name: 'fractary_repo_pr_create',
|
|
351
|
+
description: 'Create a pull request',
|
|
352
|
+
inputSchema: {
|
|
353
|
+
type: 'object',
|
|
354
|
+
required: ['title'],
|
|
355
|
+
properties: {
|
|
356
|
+
title: {
|
|
357
|
+
type: 'string',
|
|
358
|
+
description: 'PR title',
|
|
359
|
+
},
|
|
360
|
+
body: {
|
|
361
|
+
type: 'string',
|
|
362
|
+
description: 'PR description',
|
|
363
|
+
},
|
|
364
|
+
base: {
|
|
365
|
+
type: 'string',
|
|
366
|
+
description: 'Base branch',
|
|
367
|
+
},
|
|
368
|
+
head: {
|
|
369
|
+
type: 'string',
|
|
370
|
+
description: 'Head branch',
|
|
371
|
+
},
|
|
372
|
+
draft: {
|
|
373
|
+
type: 'boolean',
|
|
374
|
+
description: 'Create as draft',
|
|
375
|
+
},
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
name: 'fractary_repo_pr_get',
|
|
381
|
+
description: 'Get PR details',
|
|
382
|
+
inputSchema: {
|
|
383
|
+
type: 'object',
|
|
384
|
+
required: ['number'],
|
|
385
|
+
properties: {
|
|
386
|
+
number: {
|
|
387
|
+
type: 'number',
|
|
388
|
+
description: 'PR number',
|
|
389
|
+
},
|
|
390
|
+
},
|
|
391
|
+
},
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
name: 'fractary_repo_pr_update',
|
|
395
|
+
description: 'Update a pull request',
|
|
396
|
+
inputSchema: {
|
|
397
|
+
type: 'object',
|
|
398
|
+
required: ['number'],
|
|
399
|
+
properties: {
|
|
400
|
+
number: {
|
|
401
|
+
type: 'number',
|
|
402
|
+
description: 'PR number',
|
|
403
|
+
},
|
|
404
|
+
title: {
|
|
405
|
+
type: 'string',
|
|
406
|
+
description: 'New title',
|
|
407
|
+
},
|
|
408
|
+
body: {
|
|
409
|
+
type: 'string',
|
|
410
|
+
description: 'New description',
|
|
411
|
+
},
|
|
412
|
+
state: {
|
|
413
|
+
type: 'string',
|
|
414
|
+
enum: ['open', 'closed'],
|
|
415
|
+
description: 'New state',
|
|
416
|
+
},
|
|
417
|
+
},
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
name: 'fractary_repo_pr_comment',
|
|
422
|
+
description: 'Comment on a pull request',
|
|
423
|
+
inputSchema: {
|
|
424
|
+
type: 'object',
|
|
425
|
+
required: ['number', 'body'],
|
|
426
|
+
properties: {
|
|
427
|
+
number: {
|
|
428
|
+
type: 'number',
|
|
429
|
+
description: 'PR number',
|
|
430
|
+
},
|
|
431
|
+
body: {
|
|
432
|
+
type: 'string',
|
|
433
|
+
description: 'Comment text',
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
name: 'fractary_repo_pr_review',
|
|
440
|
+
description: 'Review a pull request',
|
|
441
|
+
inputSchema: {
|
|
442
|
+
type: 'object',
|
|
443
|
+
required: ['number', 'action'],
|
|
444
|
+
properties: {
|
|
445
|
+
number: {
|
|
446
|
+
type: 'number',
|
|
447
|
+
description: 'PR number',
|
|
448
|
+
},
|
|
449
|
+
action: {
|
|
450
|
+
type: 'string',
|
|
451
|
+
enum: ['approve', 'request_changes', 'comment'],
|
|
452
|
+
description: 'Review action to perform',
|
|
453
|
+
},
|
|
454
|
+
comment: {
|
|
455
|
+
type: 'string',
|
|
456
|
+
description: 'Review comment',
|
|
457
|
+
},
|
|
458
|
+
},
|
|
459
|
+
},
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
name: 'fractary_repo_pr_request_review',
|
|
463
|
+
description: 'Request reviewers for a PR',
|
|
464
|
+
inputSchema: {
|
|
465
|
+
type: 'object',
|
|
466
|
+
required: ['number', 'reviewers'],
|
|
467
|
+
properties: {
|
|
468
|
+
number: {
|
|
469
|
+
type: 'number',
|
|
470
|
+
description: 'PR number',
|
|
471
|
+
},
|
|
472
|
+
reviewers: {
|
|
473
|
+
type: 'array',
|
|
474
|
+
items: { type: 'string' },
|
|
475
|
+
description: 'Usernames of reviewers',
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
},
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
name: 'fractary_repo_pr_approve',
|
|
482
|
+
description: 'Approve a pull request',
|
|
483
|
+
inputSchema: {
|
|
484
|
+
type: 'object',
|
|
485
|
+
required: ['number'],
|
|
486
|
+
properties: {
|
|
487
|
+
number: {
|
|
488
|
+
type: 'number',
|
|
489
|
+
description: 'PR number',
|
|
490
|
+
},
|
|
491
|
+
comment: {
|
|
492
|
+
type: 'string',
|
|
493
|
+
description: 'Approval comment',
|
|
494
|
+
},
|
|
495
|
+
},
|
|
496
|
+
},
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
name: 'fractary_repo_pr_merge',
|
|
500
|
+
description: 'Merge a pull request',
|
|
501
|
+
inputSchema: {
|
|
502
|
+
type: 'object',
|
|
503
|
+
required: ['number'],
|
|
504
|
+
properties: {
|
|
505
|
+
number: {
|
|
506
|
+
type: 'number',
|
|
507
|
+
description: 'PR number',
|
|
508
|
+
},
|
|
509
|
+
strategy: {
|
|
510
|
+
type: 'string',
|
|
511
|
+
enum: ['merge', 'squash', 'rebase'],
|
|
512
|
+
description: 'Merge strategy',
|
|
513
|
+
},
|
|
514
|
+
delete_branch: {
|
|
515
|
+
type: 'boolean',
|
|
516
|
+
description: 'Delete branch after merge',
|
|
517
|
+
},
|
|
518
|
+
},
|
|
519
|
+
},
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
name: 'fractary_repo_pr_list',
|
|
523
|
+
description: 'List pull requests',
|
|
524
|
+
inputSchema: {
|
|
525
|
+
type: 'object',
|
|
526
|
+
properties: {
|
|
527
|
+
state: {
|
|
528
|
+
type: 'string',
|
|
529
|
+
enum: ['open', 'closed', 'all'],
|
|
530
|
+
description: 'Filter by state',
|
|
531
|
+
},
|
|
532
|
+
author: {
|
|
533
|
+
type: 'string',
|
|
534
|
+
description: 'Filter by author',
|
|
535
|
+
},
|
|
536
|
+
limit: {
|
|
537
|
+
type: 'number',
|
|
538
|
+
description: 'Maximum number of PRs',
|
|
539
|
+
},
|
|
540
|
+
},
|
|
541
|
+
},
|
|
542
|
+
},
|
|
543
|
+
// Tags
|
|
544
|
+
{
|
|
545
|
+
name: 'fractary_repo_tag_create',
|
|
546
|
+
description: 'Create a Git tag',
|
|
547
|
+
inputSchema: {
|
|
548
|
+
type: 'object',
|
|
549
|
+
required: ['name'],
|
|
550
|
+
properties: {
|
|
551
|
+
name: {
|
|
552
|
+
type: 'string',
|
|
553
|
+
description: 'Tag name',
|
|
554
|
+
},
|
|
555
|
+
message: {
|
|
556
|
+
type: 'string',
|
|
557
|
+
description: 'Tag message (annotated tag)',
|
|
558
|
+
},
|
|
559
|
+
commit: {
|
|
560
|
+
type: 'string',
|
|
561
|
+
description: 'Commit to tag (default: HEAD)',
|
|
562
|
+
},
|
|
563
|
+
},
|
|
564
|
+
},
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
name: 'fractary_repo_tag_delete',
|
|
568
|
+
description: 'Delete a Git tag',
|
|
569
|
+
inputSchema: {
|
|
570
|
+
type: 'object',
|
|
571
|
+
required: ['name'],
|
|
572
|
+
properties: {
|
|
573
|
+
name: {
|
|
574
|
+
type: 'string',
|
|
575
|
+
description: 'Tag name',
|
|
576
|
+
},
|
|
577
|
+
},
|
|
578
|
+
},
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
name: 'fractary_repo_tag_push',
|
|
582
|
+
description: 'Push a tag to remote',
|
|
583
|
+
inputSchema: {
|
|
584
|
+
type: 'object',
|
|
585
|
+
required: ['name'],
|
|
586
|
+
properties: {
|
|
587
|
+
name: {
|
|
588
|
+
type: 'string',
|
|
589
|
+
description: 'Tag name',
|
|
590
|
+
},
|
|
591
|
+
remote: {
|
|
592
|
+
type: 'string',
|
|
593
|
+
description: 'Remote name',
|
|
594
|
+
},
|
|
595
|
+
},
|
|
596
|
+
},
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
name: 'fractary_repo_tag_list',
|
|
600
|
+
description: 'List Git tags',
|
|
601
|
+
inputSchema: {
|
|
602
|
+
type: 'object',
|
|
603
|
+
properties: {
|
|
604
|
+
pattern: {
|
|
605
|
+
type: 'string',
|
|
606
|
+
description: 'Pattern to filter tags',
|
|
607
|
+
},
|
|
608
|
+
latest: {
|
|
609
|
+
type: 'number',
|
|
610
|
+
description: 'Get only the latest N tags',
|
|
611
|
+
},
|
|
612
|
+
},
|
|
613
|
+
},
|
|
614
|
+
},
|
|
615
|
+
// Worktrees
|
|
616
|
+
{
|
|
617
|
+
name: 'fractary_repo_worktree_create',
|
|
618
|
+
description: 'Create a Git worktree',
|
|
619
|
+
inputSchema: {
|
|
620
|
+
type: 'object',
|
|
621
|
+
required: ['path', 'branch'],
|
|
622
|
+
properties: {
|
|
623
|
+
path: {
|
|
624
|
+
type: 'string',
|
|
625
|
+
description: 'Worktree path',
|
|
626
|
+
},
|
|
627
|
+
branch: {
|
|
628
|
+
type: 'string',
|
|
629
|
+
description: 'Branch name',
|
|
630
|
+
},
|
|
631
|
+
base_branch: {
|
|
632
|
+
type: 'string',
|
|
633
|
+
description: 'Base branch to create from',
|
|
634
|
+
},
|
|
635
|
+
},
|
|
636
|
+
},
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
name: 'fractary_repo_worktree_list',
|
|
640
|
+
description: 'List Git worktrees',
|
|
641
|
+
inputSchema: {
|
|
642
|
+
type: 'object',
|
|
643
|
+
properties: {},
|
|
644
|
+
},
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
name: 'fractary_repo_worktree_remove',
|
|
648
|
+
description: 'Remove a Git worktree',
|
|
649
|
+
inputSchema: {
|
|
650
|
+
type: 'object',
|
|
651
|
+
required: ['path'],
|
|
652
|
+
properties: {
|
|
653
|
+
path: {
|
|
654
|
+
type: 'string',
|
|
655
|
+
description: 'Worktree path',
|
|
656
|
+
},
|
|
657
|
+
force: {
|
|
658
|
+
type: 'boolean',
|
|
659
|
+
description: 'Force removal',
|
|
660
|
+
},
|
|
661
|
+
},
|
|
662
|
+
},
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
name: 'fractary_repo_worktree_prune',
|
|
666
|
+
description: 'Prune stale worktrees',
|
|
667
|
+
inputSchema: {
|
|
668
|
+
type: 'object',
|
|
669
|
+
properties: {},
|
|
670
|
+
},
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
name: 'fractary_repo_worktree_cleanup',
|
|
674
|
+
description: 'Cleanup worktrees',
|
|
675
|
+
inputSchema: {
|
|
676
|
+
type: 'object',
|
|
677
|
+
properties: {
|
|
678
|
+
merged: {
|
|
679
|
+
type: 'boolean',
|
|
680
|
+
description: 'Only clean merged worktrees',
|
|
681
|
+
},
|
|
682
|
+
force: {
|
|
683
|
+
type: 'boolean',
|
|
684
|
+
description: 'Force cleanup',
|
|
685
|
+
},
|
|
686
|
+
delete_branch: {
|
|
687
|
+
type: 'boolean',
|
|
688
|
+
description: 'Delete associated branches',
|
|
689
|
+
},
|
|
690
|
+
},
|
|
691
|
+
},
|
|
692
|
+
},
|
|
693
|
+
];
|
|
694
|
+
//# sourceMappingURL=repo.js.map
|