@andrebuzeli/git-mcp 10.0.0 → 10.0.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/dist/index.js +28 -3
- package/dist/server.js +11 -1
- package/dist/tools/gitAnalytics.d.ts +28 -0
- package/dist/tools/gitAnalytics.js +28 -0
- package/dist/tools/gitArchive.d.ts +37 -0
- package/dist/tools/gitArchive.js +37 -0
- package/dist/tools/gitBackup.d.ts +32 -0
- package/dist/tools/gitBackup.js +32 -0
- package/dist/tools/gitBranches.d.ts +48 -0
- package/dist/tools/gitBranches.js +48 -0
- package/dist/tools/gitConfig.d.ts +36 -0
- package/dist/tools/gitConfig.js +36 -0
- package/dist/tools/gitFiles.d.ts +51 -0
- package/dist/tools/gitFiles.js +49 -0
- package/dist/tools/gitFix.tool.d.ts +23 -0
- package/dist/tools/gitFix.tool.js +23 -0
- package/dist/tools/gitHistory.d.ts +47 -0
- package/dist/tools/gitHistory.js +45 -0
- package/dist/tools/gitIgnore.d.ts +35 -0
- package/dist/tools/gitIgnore.js +33 -0
- package/dist/tools/gitIssues.d.ts +78 -0
- package/dist/tools/gitIssues.js +74 -0
- package/dist/tools/gitMonitor.d.ts +24 -0
- package/dist/tools/gitMonitor.js +24 -0
- package/dist/tools/gitUpdate.d.ts +46 -0
- package/dist/tools/gitUpdate.js +44 -0
- package/dist/tools/gitUpload.d.ts +31 -0
- package/dist/tools/gitUpload.js +31 -0
- package/dist/tools/gitWorkflow.d.ts +103 -0
- package/dist/tools/gitWorkflow.js +101 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,5 +2,108 @@ import { Tool, MCPContext } from '../types.js';
|
|
|
2
2
|
export declare class GitWorkflowTool implements Tool {
|
|
3
3
|
name: string;
|
|
4
4
|
description: string;
|
|
5
|
+
inputSchema: {
|
|
6
|
+
type: "object";
|
|
7
|
+
properties: {
|
|
8
|
+
projectPath: {
|
|
9
|
+
type: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
action: {
|
|
13
|
+
type: string;
|
|
14
|
+
enum: string[];
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
message: {
|
|
18
|
+
type: string;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
files: {
|
|
22
|
+
type: string;
|
|
23
|
+
items: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
remote: {
|
|
29
|
+
type: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
branch: {
|
|
33
|
+
type: string;
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
backupPath: {
|
|
37
|
+
type: string;
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
name: {
|
|
41
|
+
type: string;
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
owner: {
|
|
45
|
+
type: string;
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
repo: {
|
|
49
|
+
type: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
description: {
|
|
53
|
+
type: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
private: {
|
|
57
|
+
type: string;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
has_issues: {
|
|
61
|
+
type: string;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
has_projects: {
|
|
65
|
+
type: string;
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
has_wiki: {
|
|
69
|
+
type: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
organization: {
|
|
73
|
+
type: string;
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
76
|
+
query: {
|
|
77
|
+
type: string;
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
sort: {
|
|
81
|
+
type: string;
|
|
82
|
+
description: string;
|
|
83
|
+
};
|
|
84
|
+
order: {
|
|
85
|
+
type: string;
|
|
86
|
+
description: string;
|
|
87
|
+
};
|
|
88
|
+
limit: {
|
|
89
|
+
type: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
force: {
|
|
93
|
+
type: string;
|
|
94
|
+
description: string;
|
|
95
|
+
};
|
|
96
|
+
setUpstream: {
|
|
97
|
+
type: string;
|
|
98
|
+
description: string;
|
|
99
|
+
};
|
|
100
|
+
bare: {
|
|
101
|
+
type: string;
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
required: string[];
|
|
106
|
+
additionalProperties: boolean;
|
|
107
|
+
};
|
|
5
108
|
handle(params: Record<string, any>, ctx: MCPContext): Promise<any>;
|
|
6
109
|
}
|
|
@@ -6,6 +6,107 @@ export class GitWorkflowTool {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
this.name = 'git-workflow';
|
|
8
8
|
this.description = 'Core Git operations including init, status, commit, sync, backup, and remote operations - automatic dual-provider for remote ops';
|
|
9
|
+
this.inputSchema = {
|
|
10
|
+
type: "object",
|
|
11
|
+
properties: {
|
|
12
|
+
projectPath: {
|
|
13
|
+
type: "string",
|
|
14
|
+
description: "Absolute path to the project/repository (REQUIRED)"
|
|
15
|
+
},
|
|
16
|
+
action: {
|
|
17
|
+
type: "string",
|
|
18
|
+
enum: ["init", "status", "commit", "sync", "backup", "create", "list", "get", "update", "delete", "fork", "search", "push"],
|
|
19
|
+
description: "Action to perform: init (initialize repo), status (get repo status), commit (commit changes), sync (fetch/pull/push), backup (create backup), create (create repo on providers), list (list user repos), get (get repo details), update (update repo settings), delete (delete repo), fork (fork repo), search (search repos), push (push to remote)"
|
|
20
|
+
},
|
|
21
|
+
message: {
|
|
22
|
+
type: "string",
|
|
23
|
+
description: "Commit message (required for commit action)"
|
|
24
|
+
},
|
|
25
|
+
files: {
|
|
26
|
+
type: "array",
|
|
27
|
+
items: { type: "string" },
|
|
28
|
+
description: "Files to add (optional for commit, default: ['.'])"
|
|
29
|
+
},
|
|
30
|
+
remote: {
|
|
31
|
+
type: "string",
|
|
32
|
+
description: "Remote name (optional for sync/push, default: 'origin')"
|
|
33
|
+
},
|
|
34
|
+
branch: {
|
|
35
|
+
type: "string",
|
|
36
|
+
description: "Branch name (optional for sync/push)"
|
|
37
|
+
},
|
|
38
|
+
backupPath: {
|
|
39
|
+
type: "string",
|
|
40
|
+
description: "Path for backup file (optional for backup)"
|
|
41
|
+
},
|
|
42
|
+
name: {
|
|
43
|
+
type: "string",
|
|
44
|
+
description: "Repository name (required for create)"
|
|
45
|
+
},
|
|
46
|
+
owner: {
|
|
47
|
+
type: "string",
|
|
48
|
+
description: "Repository owner (optional for create/get/update/delete/fork, uses env vars if not provided)"
|
|
49
|
+
},
|
|
50
|
+
repo: {
|
|
51
|
+
type: "string",
|
|
52
|
+
description: "Repository name (required for get/update/delete/fork)"
|
|
53
|
+
},
|
|
54
|
+
description: {
|
|
55
|
+
type: "string",
|
|
56
|
+
description: "Repository description (optional for create/update)"
|
|
57
|
+
},
|
|
58
|
+
private: {
|
|
59
|
+
type: "boolean",
|
|
60
|
+
description: "Make repository private (optional for create/update, default: true)"
|
|
61
|
+
},
|
|
62
|
+
has_issues: {
|
|
63
|
+
type: "boolean",
|
|
64
|
+
description: "Enable issues (optional for update)"
|
|
65
|
+
},
|
|
66
|
+
has_projects: {
|
|
67
|
+
type: "boolean",
|
|
68
|
+
description: "Enable projects (optional for update)"
|
|
69
|
+
},
|
|
70
|
+
has_wiki: {
|
|
71
|
+
type: "boolean",
|
|
72
|
+
description: "Enable wiki (optional for update)"
|
|
73
|
+
},
|
|
74
|
+
organization: {
|
|
75
|
+
type: "string",
|
|
76
|
+
description: "Organization for fork (optional for fork)"
|
|
77
|
+
},
|
|
78
|
+
query: {
|
|
79
|
+
type: "string",
|
|
80
|
+
description: "Search query (required for search)"
|
|
81
|
+
},
|
|
82
|
+
sort: {
|
|
83
|
+
type: "string",
|
|
84
|
+
description: "Sort field (optional for search)"
|
|
85
|
+
},
|
|
86
|
+
order: {
|
|
87
|
+
type: "string",
|
|
88
|
+
description: "Sort order (optional for search)"
|
|
89
|
+
},
|
|
90
|
+
limit: {
|
|
91
|
+
type: "number",
|
|
92
|
+
description: "Result limit (optional for search, default: 30)"
|
|
93
|
+
},
|
|
94
|
+
force: {
|
|
95
|
+
type: "boolean",
|
|
96
|
+
description: "Force push (optional for push, default: false)"
|
|
97
|
+
},
|
|
98
|
+
setUpstream: {
|
|
99
|
+
type: "boolean",
|
|
100
|
+
description: "Set upstream (optional for push, default: false)"
|
|
101
|
+
},
|
|
102
|
+
bare: {
|
|
103
|
+
type: "boolean",
|
|
104
|
+
description: "Initialize as bare repo (optional for init, default: false)"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
required: ["projectPath", "action"],
|
|
108
|
+
additionalProperties: true
|
|
109
|
+
};
|
|
9
110
|
}
|
|
10
111
|
async handle(params, ctx) {
|
|
11
112
|
// Normalize parameters to handle different IDE/agent formats
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@andrebuzeli/git-mcp",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Professional MCP server for Git operations - STDIO UNIVERSAL: works in ANY IDE (Cursor, VSCode, Claude Desktop, Trae AI, Kiro.dev). Fully autonomous DUAL execution (GitHub + Gitea APIs) with automatic username detection. Smart parameter normalization handles both 'action' and 'command' formats. All tools execute on BOTH providers simultaneously. No manual parameters needed.",
|
|
6
6
|
"main": "dist/index.js",
|