@andrebuzeli/git-mcp 8.0.2 → 8.0.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/.tsbuildinfo +1 -0
- package/dist/index.js +23 -2
- package/dist/index.js.map +1 -1
- package/dist/prompts/gitPrompts.d.ts +115 -0
- package/dist/prompts/gitPrompts.d.ts.map +1 -0
- package/dist/prompts/gitPrompts.js +299 -0
- package/dist/prompts/gitPrompts.js.map +1 -0
- package/dist/tools/gitChangelog.d.ts +1 -0
- package/dist/tools/gitChangelog.d.ts.map +1 -0
- package/dist/tools/gitChangelog.js +2 -0
- package/dist/tools/gitChangelog.js.map +1 -0
- package/dist/tools/gitHistory.d.ts +4 -43
- package/dist/tools/gitHistory.d.ts.map +1 -1
- package/dist/tools/gitHistory.js +104 -243
- package/dist/tools/gitHistory.js.map +1 -1
- package/dist/tools/gitLog.d.ts +1 -0
- package/dist/tools/gitLog.d.ts.map +1 -0
- package/dist/tools/gitLog.js +2 -0
- package/dist/tools/gitLog.js.map +1 -0
- package/dist/tools/gitPackages.d.ts +5 -155
- package/dist/tools/gitPackages.d.ts.map +1 -1
- package/dist/tools/gitPackages.js +250 -156
- package/dist/tools/gitPackages.js.map +1 -1
- package/dist/tools/gitRelease.js +1 -1
- package/dist/tools/gitRelease.js.map +1 -1
- package/dist/tools/gitTags.js +1 -1
- package/dist/tools/gitTags.js.map +1 -1
- package/dist/tools/gitUpdate.d.ts +0 -26
- package/dist/tools/gitUpdate.d.ts.map +1 -1
- package/dist/tools/gitUpdate.js +43 -306
- package/dist/tools/gitUpdate.js.map +1 -1
- package/dist/tools/gitUpload.d.ts +0 -1
- package/dist/tools/gitUpload.d.ts.map +1 -1
- package/dist/tools/gitUpload.js +2 -29
- package/dist/tools/gitUpload.js.map +1 -1
- package/package.json +1 -1
- package/UNIVERSAL-IDE-SETUP.md +0 -328
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { getRepoInfo } from '../utils/repoHelpers.js';
|
|
2
|
+
/**
|
|
3
|
+
* /gitupdate - Complete update workflow with remote traceability
|
|
4
|
+
*/
|
|
5
|
+
export class GitUpdatePrompt {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.name = "gitupdate";
|
|
8
|
+
this.title = "Git Update - Complete Workflow";
|
|
9
|
+
this.description = "Execute complete Git update (add, commit, push) with full remote traceability via issues";
|
|
10
|
+
this.arguments = [
|
|
11
|
+
{
|
|
12
|
+
name: "projectPath",
|
|
13
|
+
description: "Absolute path to the repository (REQUIRED)",
|
|
14
|
+
required: true
|
|
15
|
+
}
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
async generate(args, ctx) {
|
|
19
|
+
const projectPath = args.projectPath;
|
|
20
|
+
if (!projectPath) {
|
|
21
|
+
throw new Error('projectPath is required');
|
|
22
|
+
}
|
|
23
|
+
// Get current status to generate context
|
|
24
|
+
const status = await ctx.gitAdapter.status(projectPath);
|
|
25
|
+
const repoInfo = getRepoInfo(projectPath);
|
|
26
|
+
const filesChanged = [
|
|
27
|
+
...status.modified,
|
|
28
|
+
...status.created,
|
|
29
|
+
...status.deleted,
|
|
30
|
+
...status.renamed.map((r) => `${r.from} → ${r.to}`)
|
|
31
|
+
];
|
|
32
|
+
const changesSummary = filesChanged.length > 0
|
|
33
|
+
? `\n\nFiles to be committed:\n${filesChanged.map(f => `- ${f}`).join('\n')}`
|
|
34
|
+
: '\n\nNo changes detected.';
|
|
35
|
+
return {
|
|
36
|
+
description: "Git update workflow with remote traceability",
|
|
37
|
+
messages: [
|
|
38
|
+
{
|
|
39
|
+
role: "user",
|
|
40
|
+
content: {
|
|
41
|
+
type: "text",
|
|
42
|
+
text: `Execute git-update tool for repository: ${repoInfo.repoName}
|
|
43
|
+
Project path: ${projectPath}
|
|
44
|
+
Current branch: ${status.current || 'unknown'}
|
|
45
|
+
${changesSummary}
|
|
46
|
+
|
|
47
|
+
Use the git-update tool with these exact parameters:
|
|
48
|
+
{
|
|
49
|
+
"projectPath": "${projectPath}",
|
|
50
|
+
"message": "Generate appropriate conventional commit message based on the changes above",
|
|
51
|
+
"files": ["."]
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
The tool will automatically:
|
|
55
|
+
1. Stage all changes
|
|
56
|
+
2. Create commit with the message
|
|
57
|
+
3. Push to GitHub and Gitea with force
|
|
58
|
+
4. Create traceability issues on both providers with change details
|
|
59
|
+
5. Return complete tracking report
|
|
60
|
+
|
|
61
|
+
Execute the tool now without asking for confirmation.`
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* /gitfix - Fix repository configuration
|
|
70
|
+
*/
|
|
71
|
+
export class GitFixPrompt {
|
|
72
|
+
constructor() {
|
|
73
|
+
this.name = "gitfix";
|
|
74
|
+
this.title = "Git Fix - Repository Configuration";
|
|
75
|
+
this.description = "Automatically fix and configure Git repository for dual-provider system";
|
|
76
|
+
this.arguments = [
|
|
77
|
+
{
|
|
78
|
+
name: "projectPath",
|
|
79
|
+
description: "Absolute path to the repository (REQUIRED)",
|
|
80
|
+
required: true
|
|
81
|
+
}
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
async generate(args, ctx) {
|
|
85
|
+
const projectPath = args.projectPath;
|
|
86
|
+
if (!projectPath) {
|
|
87
|
+
throw new Error('projectPath is required');
|
|
88
|
+
}
|
|
89
|
+
const remotes = await ctx.gitAdapter.listRemotes(projectPath);
|
|
90
|
+
const repoInfo = getRepoInfo(projectPath);
|
|
91
|
+
const remotesInfo = remotes.length > 0
|
|
92
|
+
? `\n\nCurrent remotes:\n${remotes.map(r => `- ${r.name}: ${r.url}`).join('\n')}`
|
|
93
|
+
: '\n\nNo remotes configured.';
|
|
94
|
+
return {
|
|
95
|
+
description: "Fix Git repository configuration",
|
|
96
|
+
messages: [
|
|
97
|
+
{
|
|
98
|
+
role: "user",
|
|
99
|
+
content: {
|
|
100
|
+
type: "text",
|
|
101
|
+
text: `Execute git-fix tool for repository: ${repoInfo.repoName}
|
|
102
|
+
Project path: ${projectPath}
|
|
103
|
+
${remotesInfo}
|
|
104
|
+
|
|
105
|
+
Use the git-fix tool with these exact parameters:
|
|
106
|
+
{
|
|
107
|
+
"projectPath": "${projectPath}",
|
|
108
|
+
"autoDetect": true
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
The tool will automatically:
|
|
112
|
+
1. Detect existing GitHub/Gitea remotes from URLs
|
|
113
|
+
2. Remove broken/duplicate remotes (origin, github, gitea)
|
|
114
|
+
3. Configure clean dual-provider setup:
|
|
115
|
+
- github → GitHub repository
|
|
116
|
+
- gitea → Gitea repository
|
|
117
|
+
- origin → Dual-push (pushes to both simultaneously)
|
|
118
|
+
4. Create .gitignore if missing
|
|
119
|
+
5. Return before/after remote configuration
|
|
120
|
+
|
|
121
|
+
Execute the tool now without asking for confirmation.`
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* /gitlog - Generate changelog in repository
|
|
130
|
+
*/
|
|
131
|
+
export class GitLogPrompt {
|
|
132
|
+
constructor() {
|
|
133
|
+
this.name = "gitlog";
|
|
134
|
+
this.title = "Git Log - Generate Changelog";
|
|
135
|
+
this.description = "Generate Keep a Changelog format changelog and commit it to the repository";
|
|
136
|
+
this.arguments = [
|
|
137
|
+
{
|
|
138
|
+
name: "projectPath",
|
|
139
|
+
description: "Absolute path to the repository (REQUIRED)",
|
|
140
|
+
required: true
|
|
141
|
+
}
|
|
142
|
+
];
|
|
143
|
+
}
|
|
144
|
+
async generate(args, ctx) {
|
|
145
|
+
const projectPath = args.projectPath;
|
|
146
|
+
if (!projectPath) {
|
|
147
|
+
throw new Error('projectPath is required');
|
|
148
|
+
}
|
|
149
|
+
const repoInfo = getRepoInfo(projectPath);
|
|
150
|
+
// Get recent commits for context
|
|
151
|
+
const log = await ctx.gitAdapter.log(projectPath, { maxCount: 20 });
|
|
152
|
+
const logSummary = log.slice(0, 5).map((commit) => `- ${commit.oid.substring(0, 7)} ${commit.commit.message.split('\n')[0]}`).join('\n');
|
|
153
|
+
return {
|
|
154
|
+
description: "Generate changelog in repository",
|
|
155
|
+
messages: [
|
|
156
|
+
{
|
|
157
|
+
role: "user",
|
|
158
|
+
content: {
|
|
159
|
+
type: "text",
|
|
160
|
+
text: `Generate changelog for repository: ${repoInfo.repoName}
|
|
161
|
+
Project path: ${projectPath}
|
|
162
|
+
|
|
163
|
+
Recent commits:
|
|
164
|
+
${logSummary}
|
|
165
|
+
|
|
166
|
+
Use the git-history tool with these exact parameters:
|
|
167
|
+
{
|
|
168
|
+
"projectPath": "${projectPath}",
|
|
169
|
+
"action": "generate_changelog",
|
|
170
|
+
"outputFile": "CHANGELOG.md",
|
|
171
|
+
"since": "last-tag",
|
|
172
|
+
"format": "keepachangelog"
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
The tool will automatically:
|
|
176
|
+
1. Analyze all commits since last tag/release
|
|
177
|
+
2. Group changes by type (Added, Fixed, Changed, Removed, etc.)
|
|
178
|
+
3. Generate Keep a Changelog formatted CHANGELOG.md
|
|
179
|
+
4. Save in repository root
|
|
180
|
+
5. Commit with message: "docs: Update CHANGELOG.md"
|
|
181
|
+
6. Push to GitHub and Gitea
|
|
182
|
+
|
|
183
|
+
Execute the tool now without asking for confirmation.`
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* /gitrelease - Create release with changelog
|
|
192
|
+
*/
|
|
193
|
+
export class GitReleasePrompt {
|
|
194
|
+
constructor() {
|
|
195
|
+
this.name = "gitrelease";
|
|
196
|
+
this.title = "Git Release - Create Release";
|
|
197
|
+
this.description = "Create new release with automatic or manual version and changelog (always uses force)";
|
|
198
|
+
this.arguments = [
|
|
199
|
+
{
|
|
200
|
+
name: "projectPath",
|
|
201
|
+
description: "Absolute path to the repository (REQUIRED)",
|
|
202
|
+
required: true
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: "version",
|
|
206
|
+
description: "Optional version (e.g., '1.5.0'). If not provided, auto-detects from commits.",
|
|
207
|
+
required: false
|
|
208
|
+
}
|
|
209
|
+
];
|
|
210
|
+
}
|
|
211
|
+
async generate(args, ctx) {
|
|
212
|
+
const projectPath = args.projectPath;
|
|
213
|
+
if (!projectPath) {
|
|
214
|
+
throw new Error('projectPath is required');
|
|
215
|
+
}
|
|
216
|
+
const userVersion = args.version; // Manual version from user chat
|
|
217
|
+
const repoInfo = getRepoInfo(projectPath);
|
|
218
|
+
// Get current tags to provide context
|
|
219
|
+
const tags = await ctx.gitAdapter.listTags(projectPath);
|
|
220
|
+
const latestTag = tags.length > 0 ? tags[0] : 'No tags yet';
|
|
221
|
+
const versionStrategy = userVersion
|
|
222
|
+
? `Use the specified version: v${userVersion}`
|
|
223
|
+
: `Analyze commits since last tag for automatic semver bump:
|
|
224
|
+
- breaking changes (BREAKING CHANGE:) → major bump
|
|
225
|
+
- feat: → minor bump
|
|
226
|
+
- fix: → patch bump`;
|
|
227
|
+
return {
|
|
228
|
+
description: "Create new release with changelog",
|
|
229
|
+
messages: [
|
|
230
|
+
{
|
|
231
|
+
role: "user",
|
|
232
|
+
content: {
|
|
233
|
+
type: "text",
|
|
234
|
+
text: `Create release for repository: ${repoInfo.repoName}
|
|
235
|
+
Project path: ${projectPath}
|
|
236
|
+
Latest tag: ${latestTag}
|
|
237
|
+
${userVersion ? `Requested version: v${userVersion}` : 'Version: Auto-detect from commits'}
|
|
238
|
+
|
|
239
|
+
Execute the following workflow automatically:
|
|
240
|
+
|
|
241
|
+
STEP 1: Generate changelog
|
|
242
|
+
Use git-history tool:
|
|
243
|
+
{
|
|
244
|
+
"projectPath": "${projectPath}",
|
|
245
|
+
"action": "generate_changelog",
|
|
246
|
+
"since": "last-tag",
|
|
247
|
+
"format": "keepachangelog"
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
STEP 2: Determine version
|
|
251
|
+
${versionStrategy}
|
|
252
|
+
|
|
253
|
+
STEP 3: Create tag with FORCE
|
|
254
|
+
Use git-tags tool:
|
|
255
|
+
{
|
|
256
|
+
"projectPath": "${projectPath}",
|
|
257
|
+
"action": "create",
|
|
258
|
+
"tagName": "v{next-version}",
|
|
259
|
+
"message": "Release v{next-version}",
|
|
260
|
+
"force": true
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
STEP 4: Push tag with FORCE
|
|
264
|
+
Use git-tags tool:
|
|
265
|
+
{
|
|
266
|
+
"projectPath": "${projectPath}",
|
|
267
|
+
"action": "push",
|
|
268
|
+
"tagName": "v{next-version}",
|
|
269
|
+
"force": true
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
STEP 5: Create releases on GitHub and Gitea
|
|
273
|
+
Use git-release tool:
|
|
274
|
+
{
|
|
275
|
+
"projectPath": "${projectPath}",
|
|
276
|
+
"action": "create",
|
|
277
|
+
"tagName": "v{next-version}",
|
|
278
|
+
"name": "Release v{next-version}",
|
|
279
|
+
"body": "{changelog-content-from-step1}",
|
|
280
|
+
"force": true
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
This will create releases on both GitHub and Gitea simultaneously with force flag.
|
|
284
|
+
|
|
285
|
+
Execute the entire workflow now without asking for confirmation.`
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
// Export all prompts
|
|
293
|
+
export const GIT_PROMPTS = [
|
|
294
|
+
new GitUpdatePrompt(),
|
|
295
|
+
new GitFixPrompt(),
|
|
296
|
+
new GitLogPrompt(),
|
|
297
|
+
new GitReleasePrompt(),
|
|
298
|
+
];
|
|
299
|
+
//# sourceMappingURL=gitPrompts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+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AAe,GAAG,WAAW;YACjC,CAAC,CAAC,+BAA+B,WAAW,EAAE;YAC9C,CAAC,CAAC;;;uBAGe,CAAC;QAEpB,OAAO;YACL,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,MAAe;oBACrB,OAAO,EAAE;wBACP,IAAI,EAAE,MAAe;wBACrB,IAAI,EAAE,kCAAkC,QAAQ,CAAC,QAAQ;gBACrD,WAAW;cACb,SAAS;EACrB,WAAW,CAAC,CAAC,CAAC,uBAAuB,WAAW,EAAE,CAAC,CAAC,CAAC,mCAAmC;;;;;;;oBAOtE,WAAW;;;;;;;EAO7B,eAAe;;;;;oBAKG,WAAW;;;;;;;;;;oBAUX,WAAW;;;;;;;;;oBASX,WAAW;;;;;;;;;;iEAUkC;qBACtD;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF;AAED,qBAAqB;AACrB,MAAM,CAAC,MAAM,WAAW,GAAa;IACnC,IAAI,eAAe,EAAE;IACrB,IAAI,YAAY,EAAE;IAClB,IAAI,YAAY,EAAE;IAClB,IAAI,gBAAgB,EAAE;CACvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=gitChangelog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gitChangelog.d.ts","sourceRoot":"","sources":["../../src/tools/gitChangelog.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gitChangelog.js","sourceRoot":"","sources":["../../src/tools/gitChangelog.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { Tool, MCPContext } from '../types.js';
|
|
2
|
-
/**
|
|
3
|
-
* Git History Tool - Mantém histórico detalhado de TODAS alterações
|
|
4
|
-
* Modo DUAL automático - cria issues de histórico em GitHub e Gitea
|
|
5
|
-
* Rastreabilidade completa de cada mudança local
|
|
6
|
-
*/
|
|
7
2
|
export declare class GitHistoryTool implements Tool {
|
|
8
3
|
name: string;
|
|
9
4
|
description: string;
|
|
@@ -12,44 +7,6 @@ export declare class GitHistoryTool implements Tool {
|
|
|
12
7
|
properties: {
|
|
13
8
|
projectPath: {
|
|
14
9
|
type: string;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
action: {
|
|
18
|
-
type: string;
|
|
19
|
-
description: string;
|
|
20
|
-
enum: string[];
|
|
21
|
-
};
|
|
22
|
-
changeType: {
|
|
23
|
-
type: string;
|
|
24
|
-
description: string;
|
|
25
|
-
};
|
|
26
|
-
description: {
|
|
27
|
-
type: string;
|
|
28
|
-
description: string;
|
|
29
|
-
};
|
|
30
|
-
metadata: {
|
|
31
|
-
type: string;
|
|
32
|
-
description: string;
|
|
33
|
-
};
|
|
34
|
-
since: {
|
|
35
|
-
type: string;
|
|
36
|
-
description: string;
|
|
37
|
-
};
|
|
38
|
-
until: {
|
|
39
|
-
type: string;
|
|
40
|
-
description: string;
|
|
41
|
-
};
|
|
42
|
-
limit: {
|
|
43
|
-
type: string;
|
|
44
|
-
description: string;
|
|
45
|
-
};
|
|
46
|
-
query: {
|
|
47
|
-
type: string;
|
|
48
|
-
description: string;
|
|
49
|
-
};
|
|
50
|
-
historyId: {
|
|
51
|
-
type: string;
|
|
52
|
-
description: string;
|
|
53
10
|
};
|
|
54
11
|
};
|
|
55
12
|
required: string[];
|
|
@@ -62,5 +19,9 @@ export declare class GitHistoryTool implements Tool {
|
|
|
62
19
|
private generateReport;
|
|
63
20
|
private saveLocalHistory;
|
|
64
21
|
private formatHistoryBody;
|
|
22
|
+
private generateChangelog;
|
|
23
|
+
private groupCommitsByType;
|
|
24
|
+
private formatKeepAChangelog;
|
|
25
|
+
private formatConventionalChangelog;
|
|
65
26
|
}
|
|
66
27
|
//# sourceMappingURL=gitHistory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gitHistory.d.ts","sourceRoot":"","sources":["../../src/tools/gitHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAO/C
|
|
1
|
+
{"version":3,"file":"gitHistory.d.ts","sourceRoot":"","sources":["../../src/tools/gitHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAO/C,qBAAa,cAAe,YAAW,IAAI;IACzC,IAAI,SAAiB;IACrB,WAAW,SAA0H;IAErI,WAAW;;;;;;;;;MAKT;IAEI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,UAAU;YAmB3C,WAAW;YA6CX,gBAAgB;YAWhB,WAAW;YAsBX,cAAc;YASd,gBAAgB;IAS1B,OAAO,CAAC,iBAAiB;YAIX,iBAAiB;IAoB/B,OAAO,CAAC,kBAAkB;IAE1B,OAAO,CAAC,oBAAoB;IAE5B,OAAO,CAAC,2BAA2B;CACpC"}
|