@andrebuzeli/git-mcp 2.47.3 → 3.0.0
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/README.md +100 -71
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +55 -71
- package/dist/server.js.map +1 -1
- package/dist/tools/git-commits.d.ts +2 -2
- package/dist/tools/git-config.d.ts +2 -2
- package/dist/tools/git-files.d.ts +2 -2
- package/dist/tools/git-issues.d.ts +6 -6
- package/dist/tools/git-packages.d.ts +2 -2
- package/dist/tools/git-projects.d.ts +142 -57
- package/dist/tools/git-projects.d.ts.map +1 -1
- package/dist/tools/git-projects.js +281 -283
- package/dist/tools/git-projects.js.map +1 -1
- package/dist/tools/git-pulls.d.ts +8 -8
- package/dist/tools/git-releases.d.ts +2 -2
- package/dist/tools/git-remote.d.ts +2 -2
- package/dist/tools/git-repositories.d.ts +4 -4
- package/dist/tools/git-sync.d.ts +4 -4
- package/dist/tools/git-tags.d.ts +2 -2
- package/dist/tools/git-undo.d.ts +268 -0
- package/dist/tools/git-undo.d.ts.map +1 -0
- package/dist/tools/git-undo.js +516 -0
- package/dist/tools/git-undo.js.map +1 -0
- package/dist/tools/git-update-project.d.ts +4 -4
- package/dist/tools/git-versioning.d.ts +286 -0
- package/dist/tools/git-versioning.d.ts.map +1 -0
- package/dist/tools/git-versioning.js +483 -0
- package/dist/tools/git-versioning.js.map +1 -0
- package/dist/tools/git-workflow.d.ts +393 -0
- package/dist/tools/git-workflow.d.ts.map +1 -0
- package/dist/tools/git-workflow.js +617 -0
- package/dist/tools/git-workflow.js.map +1 -0
- package/package.json +60 -60
|
@@ -1,52 +1,127 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Tool: git-projects
|
|
4
|
+
*
|
|
5
|
+
* FERRAMENTA UNIFICADA PARA GERENCIAMENTO DE PROJETOS
|
|
6
|
+
* Combina as funcionalidades essenciais de:
|
|
7
|
+
* - git-repositories (CRUD de repositórios)
|
|
8
|
+
* - git-files (operações básicas de arquivo)
|
|
9
|
+
*
|
|
10
|
+
* DESIGNED FOR: Programador individual autônomo
|
|
11
|
+
* PHILOSOPHY: Simplicidade + Funcionalidade + Error Handling Robusto
|
|
12
|
+
*/
|
|
13
|
+
declare const GitProjectsInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
14
|
+
action: z.ZodLiteral<"create">;
|
|
15
|
+
name: z.ZodString;
|
|
9
16
|
description: z.ZodOptional<z.ZodString>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
item_id: z.ZodOptional<z.ZodString>;
|
|
13
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
14
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
17
|
+
private: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
18
|
+
provider: z.ZodEnum<["gitea", "github"]>;
|
|
15
19
|
}, "strip", z.ZodTypeAny, {
|
|
16
20
|
provider: "gitea" | "github";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
action: "delete" | "get" | "list" | "create" | "update" | "addItem" | "updateItem" | "deleteItem" | "listItems";
|
|
21
|
-
projectPath: string;
|
|
22
|
-
name?: string | undefined;
|
|
21
|
+
name: string;
|
|
22
|
+
private: boolean;
|
|
23
|
+
action: "create";
|
|
23
24
|
description?: string | undefined;
|
|
24
|
-
updates?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
25
|
-
project_id?: string | undefined;
|
|
26
|
-
item?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
27
|
-
item_id?: string | undefined;
|
|
28
25
|
}, {
|
|
29
26
|
provider: "gitea" | "github";
|
|
30
|
-
|
|
31
|
-
action: "
|
|
32
|
-
projectPath: string;
|
|
33
|
-
name?: string | undefined;
|
|
27
|
+
name: string;
|
|
28
|
+
action: "create";
|
|
34
29
|
description?: string | undefined;
|
|
35
|
-
|
|
30
|
+
private?: boolean | undefined;
|
|
31
|
+
}>, z.ZodObject<{
|
|
32
|
+
action: z.ZodLiteral<"list">;
|
|
33
|
+
provider: z.ZodEnum<["gitea", "github"]>;
|
|
34
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
provider: "gitea" | "github";
|
|
37
|
+
limit: number;
|
|
38
|
+
action: "list";
|
|
39
|
+
}, {
|
|
40
|
+
provider: "gitea" | "github";
|
|
41
|
+
action: "list";
|
|
36
42
|
limit?: number | undefined;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
}>, z.ZodObject<{
|
|
44
|
+
action: z.ZodLiteral<"clone">;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
provider: z.ZodEnum<["gitea", "github"]>;
|
|
47
|
+
projectPath: z.ZodString;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
provider: "gitea" | "github";
|
|
50
|
+
name: string;
|
|
51
|
+
action: "clone";
|
|
52
|
+
projectPath: string;
|
|
53
|
+
}, {
|
|
54
|
+
provider: "gitea" | "github";
|
|
55
|
+
name: string;
|
|
56
|
+
action: "clone";
|
|
57
|
+
projectPath: string;
|
|
58
|
+
}>, z.ZodObject<{
|
|
59
|
+
action: z.ZodLiteral<"create-file">;
|
|
60
|
+
projectPath: z.ZodString;
|
|
61
|
+
filePath: z.ZodString;
|
|
62
|
+
content: z.ZodString;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
action: "create-file";
|
|
65
|
+
projectPath: string;
|
|
66
|
+
filePath: string;
|
|
67
|
+
content: string;
|
|
68
|
+
}, {
|
|
69
|
+
action: "create-file";
|
|
70
|
+
projectPath: string;
|
|
71
|
+
filePath: string;
|
|
72
|
+
content: string;
|
|
73
|
+
}>, z.ZodObject<{
|
|
74
|
+
action: z.ZodLiteral<"read-file">;
|
|
75
|
+
projectPath: z.ZodString;
|
|
76
|
+
filePath: z.ZodString;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
action: "read-file";
|
|
79
|
+
projectPath: string;
|
|
80
|
+
filePath: string;
|
|
81
|
+
}, {
|
|
82
|
+
action: "read-file";
|
|
83
|
+
projectPath: string;
|
|
84
|
+
filePath: string;
|
|
85
|
+
}>, z.ZodObject<{
|
|
86
|
+
action: z.ZodLiteral<"list-files">;
|
|
87
|
+
projectPath: z.ZodString;
|
|
88
|
+
path: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
path: string;
|
|
91
|
+
action: "list-files";
|
|
92
|
+
projectPath: string;
|
|
93
|
+
}, {
|
|
94
|
+
action: "list-files";
|
|
95
|
+
projectPath: string;
|
|
96
|
+
path?: string | undefined;
|
|
97
|
+
}>]>;
|
|
98
|
+
export type GitProjectsInput = z.infer<typeof GitProjectsInputSchema>;
|
|
99
|
+
declare const GitProjectsResultSchema: z.ZodObject<{
|
|
100
|
+
success: z.ZodBoolean;
|
|
101
|
+
action: z.ZodString;
|
|
102
|
+
message: z.ZodString;
|
|
103
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
104
|
+
error: z.ZodOptional<z.ZodString>;
|
|
105
|
+
recoverable: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
message: string;
|
|
45
109
|
action: string;
|
|
110
|
+
success: boolean;
|
|
111
|
+
error?: string | undefined;
|
|
112
|
+
data?: any;
|
|
113
|
+
recoverable?: boolean | undefined;
|
|
114
|
+
suggestion?: string | undefined;
|
|
115
|
+
}, {
|
|
46
116
|
message: string;
|
|
117
|
+
action: string;
|
|
118
|
+
success: boolean;
|
|
119
|
+
error?: string | undefined;
|
|
47
120
|
data?: any;
|
|
48
|
-
|
|
49
|
-
|
|
121
|
+
recoverable?: boolean | undefined;
|
|
122
|
+
suggestion?: string | undefined;
|
|
123
|
+
}>;
|
|
124
|
+
export type GitProjectsResult = z.infer<typeof GitProjectsResultSchema>;
|
|
50
125
|
export declare const gitProjectsTool: {
|
|
51
126
|
name: string;
|
|
52
127
|
description: string;
|
|
@@ -58,58 +133,68 @@ export declare const gitProjectsTool: {
|
|
|
58
133
|
enum: string[];
|
|
59
134
|
description: string;
|
|
60
135
|
};
|
|
61
|
-
|
|
62
|
-
type: string;
|
|
63
|
-
description: string;
|
|
64
|
-
};
|
|
65
|
-
provider: {
|
|
66
|
-
type: string;
|
|
67
|
-
enum: string[];
|
|
68
|
-
description: string;
|
|
69
|
-
};
|
|
70
|
-
projectPath: {
|
|
136
|
+
name: {
|
|
71
137
|
type: string;
|
|
72
138
|
description: string;
|
|
73
139
|
};
|
|
74
|
-
|
|
140
|
+
description: {
|
|
75
141
|
type: string;
|
|
76
142
|
description: string;
|
|
77
143
|
};
|
|
78
|
-
|
|
144
|
+
private: {
|
|
79
145
|
type: string;
|
|
80
146
|
description: string;
|
|
147
|
+
default: boolean;
|
|
81
148
|
};
|
|
82
|
-
|
|
149
|
+
provider: {
|
|
83
150
|
type: string;
|
|
151
|
+
enum: string[];
|
|
84
152
|
description: string;
|
|
85
153
|
};
|
|
86
|
-
|
|
154
|
+
projectPath: {
|
|
87
155
|
type: string;
|
|
88
156
|
description: string;
|
|
89
157
|
};
|
|
90
|
-
|
|
158
|
+
filePath: {
|
|
91
159
|
type: string;
|
|
92
160
|
description: string;
|
|
93
161
|
};
|
|
94
|
-
|
|
162
|
+
content: {
|
|
95
163
|
type: string;
|
|
96
164
|
description: string;
|
|
97
165
|
};
|
|
98
|
-
|
|
166
|
+
path: {
|
|
99
167
|
type: string;
|
|
100
168
|
description: string;
|
|
101
|
-
|
|
169
|
+
default: string;
|
|
102
170
|
};
|
|
103
171
|
limit: {
|
|
104
172
|
type: string;
|
|
105
173
|
description: string;
|
|
106
|
-
|
|
107
|
-
maximum: number;
|
|
174
|
+
default: number;
|
|
108
175
|
};
|
|
109
176
|
};
|
|
110
177
|
required: string[];
|
|
111
178
|
};
|
|
112
179
|
handler(input: GitProjectsInput): Promise<GitProjectsResult>;
|
|
180
|
+
handleCreate(params: GitProjectsInput & {
|
|
181
|
+
action: "create";
|
|
182
|
+
}): Promise<GitProjectsResult>;
|
|
183
|
+
handleList(params: GitProjectsInput & {
|
|
184
|
+
action: "list";
|
|
185
|
+
}): Promise<GitProjectsResult>;
|
|
186
|
+
handleClone(params: GitProjectsInput & {
|
|
187
|
+
action: "clone";
|
|
188
|
+
}): Promise<GitProjectsResult>;
|
|
189
|
+
handleCreateFile(params: GitProjectsInput & {
|
|
190
|
+
action: "create-file";
|
|
191
|
+
}): Promise<GitProjectsResult>;
|
|
192
|
+
handleReadFile(params: GitProjectsInput & {
|
|
193
|
+
action: "read-file";
|
|
194
|
+
}): Promise<GitProjectsResult>;
|
|
195
|
+
handleListFiles(params: GitProjectsInput & {
|
|
196
|
+
action: "list-files";
|
|
197
|
+
}): Promise<GitProjectsResult>;
|
|
113
198
|
};
|
|
114
199
|
export {};
|
|
115
200
|
//# sourceMappingURL=git-projects.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-projects.d.ts","sourceRoot":"","sources":["../../src/tools/git-projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,QAAA,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"git-projects.d.ts","sourceRoot":"","sources":["../../src/tools/git-projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;;;;GAUG;AAEH,QAAA,MAAM,sBAAsB;;;;;;;;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