@andrebuzeli/git-mcp 2.14.1 β 2.15.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 +351 -346
- package/dist/providers/github-provider.d.ts +12 -0
- package/dist/providers/github-provider.d.ts.map +1 -1
- package/dist/providers/github-provider.js +340 -0
- package/dist/providers/github-provider.js.map +1 -1
- package/dist/providers/types.d.ts +1 -0
- package/dist/providers/types.d.ts.map +1 -1
- package/dist/server.js +1 -1
- package/dist/tools/gh-actions.d.ts +8 -8
- package/dist/tools/gh-codespaces.d.ts +2 -2
- package/dist/tools/gh-deployments.d.ts +16 -16
- package/dist/tools/gh-deployments.js +5 -5
- package/dist/tools/gh-deployments.js.map +1 -1
- package/dist/tools/gh-gists.d.ts +2 -2
- package/dist/tools/gh-projects.d.ts +2 -2
- package/dist/tools/gh-security.d.ts +24 -24
- package/dist/tools/gh-security.d.ts.map +1 -1
- package/dist/tools/gh-security.js +11 -14
- package/dist/tools/gh-security.js.map +1 -1
- package/dist/tools/gh-sync.d.ts +4 -4
- package/dist/tools/gh-workflows.d.ts +12 -12
- package/dist/tools/git-archive.d.ts +4 -4
- package/dist/tools/git-branches.d.ts +2 -2
- package/dist/tools/git-bundle.d.ts +2 -2
- package/dist/tools/git-cherry-pick.d.ts +2 -2
- package/dist/tools/git-commits.d.ts +4 -4
- package/dist/tools/git-config.d.ts +2 -2
- package/dist/tools/git-files.d.ts +4 -4
- package/dist/tools/git-issues.d.ts +2 -2
- package/dist/tools/git-pulls.d.ts +2 -2
- package/dist/tools/git-rebase.d.ts +2 -2
- package/dist/tools/git-releases.d.ts +2 -2
- package/dist/tools/git-remote.d.ts +4 -4
- package/dist/tools/git-repositories.d.ts +90 -21
- package/dist/tools/git-repositories.d.ts.map +1 -1
- package/dist/tools/git-repositories.js +88 -19
- package/dist/tools/git-repositories.js.map +1 -1
- package/dist/tools/git-reset.d.ts +2 -2
- package/dist/tools/git-revert.d.ts +2 -2
- package/dist/tools/git-stash.d.ts +2 -2
- package/dist/tools/git-submodule.d.ts +4 -4
- package/dist/tools/git-tags.d.ts +4 -4
- package/dist/tools/git-webhooks.d.ts +2 -2
- package/dist/tools/git-worktree.d.ts +4 -4
- package/dist/tools/repositories.d.ts +2 -2
- package/dist/utils/git-operations.d.ts +168 -0
- package/dist/utils/git-operations.d.ts.map +1 -0
- package/dist/utils/git-operations.js +760 -0
- package/dist/utils/git-operations.js.map +1 -0
- package/dist/utils/terminal-controller.d.ts +7 -7
- package/dist/utils/terminal-controller.d.ts.map +1 -1
- package/dist/utils/terminal-controller.js +202 -60
- package/dist/utils/terminal-controller.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,346 +1,351 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
- β
**
|
|
38
|
-
- β
**
|
|
39
|
-
- β
**
|
|
40
|
-
- β
**
|
|
41
|
-
- β
**
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
- β
|
|
68
|
-
- β
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
"
|
|
175
|
-
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
"
|
|
190
|
-
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
- `
|
|
210
|
-
- `
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
- **
|
|
216
|
-
- **
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
βββ
|
|
225
|
-
βββ
|
|
226
|
-
βββ
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
βββ
|
|
230
|
-
βββ
|
|
231
|
-
βββ
|
|
232
|
-
βββ
|
|
233
|
-
βββ
|
|
234
|
-
βββ
|
|
235
|
-
βββ
|
|
236
|
-
βββ
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
- **
|
|
244
|
-
- **
|
|
245
|
-
- **
|
|
246
|
-
- **
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
-
|
|
258
|
-
-
|
|
259
|
-
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
npm
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
- **
|
|
286
|
-
- **
|
|
287
|
-
- **
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
| **
|
|
297
|
-
| **
|
|
298
|
-
| **
|
|
299
|
-
| **
|
|
300
|
-
| **
|
|
301
|
-
| **
|
|
302
|
-
| **
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
- β
**
|
|
308
|
-
- β
**
|
|
309
|
-
- β
**
|
|
310
|
-
- β
**
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
-
|
|
317
|
-
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
-
|
|
322
|
-
-
|
|
323
|
-
-
|
|
324
|
-
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
-
|
|
329
|
-
-
|
|
330
|
-
-
|
|
331
|
-
-
|
|
332
|
-
-
|
|
333
|
-
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
-
|
|
338
|
-
-
|
|
339
|
-
-
|
|
340
|
-
-
|
|
341
|
-
-
|
|
342
|
-
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
1
|
+
<<<<<<< HEAD
|
|
2
|
+
# Git MCP Server v2.6.1
|
|
3
|
+
|
|
4
|
+
π **Complete MCP Server for Gitea Self-Hosted** - 18 tools with 100+ actions including AI code review, enhanced validation and automated DevOps workflows
|
|
5
|
+
|
|
6
|
+
## π― Overview
|
|
7
|
+
|
|
8
|
+
Git MCP Server v2.6.1 Γ© um servidor MCP moderno em TypeScript, focado em Gitea self-hosted e com suporte completo a multi-provedor (GitHub + Gitea simultaneamente). Inclui arquitetura de providers unificada, documentaΓ§Γ£o abrangente, boas prΓ‘ticas, validaΓ§Γ΅es aprimoradas, nova tool de code-review com IA e guia para uso individual (solo).
|
|
9
|
+
|
|
10
|
+
## β¨ Features
|
|
11
|
+
|
|
12
|
+
### π οΈ **18 Tools**
|
|
13
|
+
|
|
14
|
+
1. **repositories** - Complete repository management with cloning, archiving, templates
|
|
15
|
+
2. **branches** - Branch operations with enhanced validation
|
|
16
|
+
3. **files** - File and directory management with search capabilities
|
|
17
|
+
4. **commits** - Commit operations with search and creation
|
|
18
|
+
5. **issues** - Issue management with advanced search
|
|
19
|
+
6. **pulls** - Pull request management with reviews
|
|
20
|
+
7. **releases** - Release management with enhanced validation
|
|
21
|
+
8. **tags** - Tag management with search
|
|
22
|
+
9. **users** - User operations with search
|
|
23
|
+
10. **webhooks** - Webhook management with testing
|
|
24
|
+
11. **code-review** - AI-powered code analysis and review suggestions β **NEW**
|
|
25
|
+
12. **git-sync** - Cross-provider repository synchronization with bidirectional sync
|
|
26
|
+
13. **version-control** - Versioning, backup and change tracking system with semantic versioning
|
|
27
|
+
14. **workflows** - CI/CD workflow management
|
|
28
|
+
15. **actions** - GitHub Actions management
|
|
29
|
+
16. **deployments** - Deployment tracking and rollbacks
|
|
30
|
+
17. **security** - Security scanning and compliance
|
|
31
|
+
18. **analytics** - Repository insights and analytics
|
|
32
|
+
|
|
33
|
+
> π **Multi-Provider Complete** (GitHub + Gitea simultaneamente)
|
|
34
|
+
|
|
35
|
+
### π§ **Technical Features**
|
|
36
|
+
|
|
37
|
+
- β
**TypeScript**: Full type safety and modern development
|
|
38
|
+
- β
**Zod Validation**: Input/output schema validation
|
|
39
|
+
- β
**Axios Client**: Robust HTTP client with interceptors
|
|
40
|
+
- β
**Error Handling**: Comprehensive error management
|
|
41
|
+
- β
**Debug Mode**: Detailed logging for development
|
|
42
|
+
- β
**Self-Hosted Focus**: Optimized for Gitea instances
|
|
43
|
+
|
|
44
|
+
## π¦ Installation
|
|
45
|
+
|
|
46
|
+
### NPX (Recommended)
|
|
47
|
+
```bash
|
|
48
|
+
npx @andrebuzeli/gitea-mcp-v2
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Global Installation
|
|
52
|
+
```bash
|
|
53
|
+
npm install -g @andrebuzeli/gitea-mcp-v2
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## βοΈ Configuration
|
|
57
|
+
|
|
58
|
+
### Demo Mode
|
|
59
|
+
|
|
60
|
+
Para testar o servidor sem configurar providers reais:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
DEMO_MODE=true npx @andrebuzeli/gitea-mcp-v2
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
O modo demo permite:
|
|
67
|
+
- β
Testar todas as funcionalidades sem APIs reais
|
|
68
|
+
- β
Desenvolvimento e debugging
|
|
69
|
+
- β
DemonstraΓ§Γ΅es e tutoriais
|
|
70
|
+
- β οΈ NΓ£o executa operaΓ§Γ΅es reais nos repositΓ³rios
|
|
71
|
+
|
|
72
|
+
### Environment Variables
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
GITEA_URL=http://your-gitea-instance:3000
|
|
76
|
+
GITEA_TOKEN=your_personal_access_token
|
|
77
|
+
GITEA_USERNAME=your_username
|
|
78
|
+
DEBUG=false
|
|
79
|
+
TIMEOUT=30000
|
|
80
|
+
DEMO_MODE=false # Set to 'true' for testing without real providers
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### MCP Configuration
|
|
84
|
+
|
|
85
|
+
#### Single Provider (Gitea)
|
|
86
|
+
|
|
87
|
+
```json
|
|
88
|
+
{
|
|
89
|
+
"mcpServers": {
|
|
90
|
+
"gitea": {
|
|
91
|
+
"command": "npx",
|
|
92
|
+
"args": ["@andrebuzeli/gitea-mcp-v2"],
|
|
93
|
+
"env": {
|
|
94
|
+
"GITEA_URL": "http://your-gitea-instance:3000",
|
|
95
|
+
"GITEA_TOKEN": "your_personal_access_token",
|
|
96
|
+
"GITEA_USERNAME": "your_username"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
#### Single Provider (GitHub)
|
|
104
|
+
|
|
105
|
+
```json
|
|
106
|
+
{
|
|
107
|
+
"mcpServers": {
|
|
108
|
+
"github": {
|
|
109
|
+
"command": "npx",
|
|
110
|
+
"args": ["@andrebuzeli/gitea-mcp-v2"],
|
|
111
|
+
"env": {
|
|
112
|
+
"GITHUB_TOKEN": "your_github_token",
|
|
113
|
+
"GITHUB_USERNAME": "your_github_username"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
#### Multi-Provider (GitHub + Gitea Simultaneamente)
|
|
121
|
+
|
|
122
|
+
```json
|
|
123
|
+
{
|
|
124
|
+
"mcpServers": {
|
|
125
|
+
"gitea-mcp": {
|
|
126
|
+
"command": "npx",
|
|
127
|
+
"args": ["@andrebuzeli/gitea-mcp-v2"],
|
|
128
|
+
"env": {
|
|
129
|
+
"PROVIDERS_JSON": "[{\"name\":\"gitea\",\"type\":\"gitea\",\"apiUrl\":\"http://your-gitea:3000/api/v1\",\"token\":\"your_gitea_token\"},{\"name\":\"github\",\"type\":\"github\",\"apiUrl\":\"https://api.github.com\",\"token\":\"your_github_token\"}]",
|
|
130
|
+
"DEFAULT_PROVIDER": "gitea"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
#### Multi-Provider com VariΓ‘veis Separadas
|
|
138
|
+
|
|
139
|
+
```json
|
|
140
|
+
{
|
|
141
|
+
"mcpServers": {
|
|
142
|
+
"gitea-mcp": {
|
|
143
|
+
"command": "npx",
|
|
144
|
+
"args": ["@andrebuzeli/gitea-mcp-v2"],
|
|
145
|
+
"env": {
|
|
146
|
+
"GITEA_URL": "http://your-gitea:3000/api/v1",
|
|
147
|
+
"GITEA_TOKEN": "your_gitea_token",
|
|
148
|
+
"GITHUB_TOKEN": "your_github_token",
|
|
149
|
+
"DEFAULT_PROVIDER": "gitea"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## π Usage Examples
|
|
157
|
+
|
|
158
|
+
### Repository Management
|
|
159
|
+
```json
|
|
160
|
+
{
|
|
161
|
+
"tool": "repositories",
|
|
162
|
+
"arguments": {
|
|
163
|
+
"action": "create",
|
|
164
|
+
"name": "my-new-repo",
|
|
165
|
+
"description": "A new repository",
|
|
166
|
+
"private": false
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Issue Creation
|
|
172
|
+
```json
|
|
173
|
+
{
|
|
174
|
+
"tool": "issues",
|
|
175
|
+
"arguments": {
|
|
176
|
+
"action": "create",
|
|
177
|
+
"owner": "username",
|
|
178
|
+
"repo": "repository",
|
|
179
|
+
"title": "Bug report",
|
|
180
|
+
"body": "Description of the issue",
|
|
181
|
+
"labels": ["bug", "priority-high"]
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
### File Operations
|
|
187
|
+
```json
|
|
188
|
+
{
|
|
189
|
+
"tool": "files",
|
|
190
|
+
"arguments": {
|
|
191
|
+
"action": "create",
|
|
192
|
+
"owner": "username",
|
|
193
|
+
"repo": "repository",
|
|
194
|
+
"path": "src/main.js",
|
|
195
|
+
"content": "console.log('Hello World');",
|
|
196
|
+
"message": "Add main.js file"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
## π Authentication
|
|
202
|
+
|
|
203
|
+
### Personal Access Token
|
|
204
|
+
|
|
205
|
+
1. Go to your Gitea instance
|
|
206
|
+
2. Navigate to **Settings** β **Applications**
|
|
207
|
+
3. Generate a new **Personal Access Token**
|
|
208
|
+
4. Grant necessary permissions:
|
|
209
|
+
- `repo` - Repository access
|
|
210
|
+
- `user` - User information
|
|
211
|
+
- `write:repo_hook` - Webhook management
|
|
212
|
+
|
|
213
|
+
### Permissions Required
|
|
214
|
+
|
|
215
|
+
- **Read**: Repository content, issues, pull requests
|
|
216
|
+
- **Write**: Create/update repositories, files, issues, PRs
|
|
217
|
+
- **Admin**: Webhook management, repository settings
|
|
218
|
+
|
|
219
|
+
## ποΈ Architecture
|
|
220
|
+
|
|
221
|
+
### Project Structure
|
|
222
|
+
```
|
|
223
|
+
src/
|
|
224
|
+
βββ index.ts # Entry point
|
|
225
|
+
βββ server.ts # MCP Server setup
|
|
226
|
+
βββ config.ts # Configuration management
|
|
227
|
+
βββ client.ts # Gitea API client
|
|
228
|
+
βββ tools/ # Tool implementations
|
|
229
|
+
βββ repositories.ts
|
|
230
|
+
βββ branches.ts
|
|
231
|
+
βββ files.ts
|
|
232
|
+
βββ commits.ts
|
|
233
|
+
βββ issues.ts
|
|
234
|
+
βββ pulls.ts
|
|
235
|
+
βββ releases.ts
|
|
236
|
+
βββ tags.ts
|
|
237
|
+
βββ users.ts
|
|
238
|
+
βββ webhooks.ts
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Design Principles
|
|
242
|
+
|
|
243
|
+
- **Modular**: Each tool is self-contained
|
|
244
|
+
- **Type-Safe**: Full TypeScript coverage
|
|
245
|
+
- **Validated**: Zod schemas for all inputs/outputs
|
|
246
|
+
- **Consistent**: Uniform API across all tools
|
|
247
|
+
- **Documented**: Comprehensive JSDoc comments
|
|
248
|
+
|
|
249
|
+
## π Debugging
|
|
250
|
+
|
|
251
|
+
### Enable Debug Mode
|
|
252
|
+
```bash
|
|
253
|
+
DEBUG=true npx @andrebuzeli/gitea-mcp-v2
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### Debug Output
|
|
257
|
+
- HTTP request/response logging
|
|
258
|
+
- Configuration validation
|
|
259
|
+
- Error stack traces
|
|
260
|
+
- Performance metrics
|
|
261
|
+
|
|
262
|
+
## π€ Contributing
|
|
263
|
+
|
|
264
|
+
1. Fork the repository
|
|
265
|
+
2. Create a feature branch
|
|
266
|
+
3. Make your changes
|
|
267
|
+
4. Add tests if applicable
|
|
268
|
+
5. Submit a pull request
|
|
269
|
+
|
|
270
|
+
### Development Setup
|
|
271
|
+
|
|
272
|
+
```bash
|
|
273
|
+
git clone https://github.com/andrebuzeli/gitea-mcp-v2.git
|
|
274
|
+
cd gitea-mcp-v2
|
|
275
|
+
npm install
|
|
276
|
+
npm run dev
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
## π License
|
|
280
|
+
|
|
281
|
+
MIT License - see [LICENSE](LICENSE) file for details.
|
|
282
|
+
|
|
283
|
+
## π Links
|
|
284
|
+
|
|
285
|
+
- **NPM Package**: [@andrebuzeli/gitea-mcp-v2](https://www.npmjs.com/package/@andrebuzeli/gitea-mcp-v2)
|
|
286
|
+
- **GitHub Repository**: [gitea-mcp-v2](https://github.com/andrebuzeli/gitea-mcp-v2)
|
|
287
|
+
- **Gitea Official**: [gitea.io](https://gitea.io)
|
|
288
|
+
- **MCP Protocol**: [modelcontextprotocol.io](https://modelcontextprotocol.io)
|
|
289
|
+
|
|
290
|
+
## π Comparison
|
|
291
|
+
|
|
292
|
+
### vs Official Gitea MCP (Go)
|
|
293
|
+
|
|
294
|
+
| Feature | Gitea MCP v2.0 (Node.js) | Official (Go) |
|
|
295
|
+
|---------|---------------------------|---------------|
|
|
296
|
+
| **Tools** | 10 multifunctional | 40+ single-purpose |
|
|
297
|
+
| **Actions** | 65+ total | 40+ total |
|
|
298
|
+
| **Language** | TypeScript/Node.js | Go |
|
|
299
|
+
| **Type Safety** | Full Zod validation | Go types |
|
|
300
|
+
| **Installation** | NPM/NPX | Binary download |
|
|
301
|
+
| **Configuration** | Environment variables | CLI arguments |
|
|
302
|
+
| **Debugging** | Rich logging | Basic logging |
|
|
303
|
+
| **Maintenance** | Community | Official |
|
|
304
|
+
|
|
305
|
+
### Advantages
|
|
306
|
+
|
|
307
|
+
- β
**Organized**: Logical tool grouping
|
|
308
|
+
- β
**Modern**: TypeScript ecosystem
|
|
309
|
+
- β
**Flexible**: Multiple actions per tool
|
|
310
|
+
- β
**Validated**: Input/output validation
|
|
311
|
+
- β
**Documented**: Comprehensive documentation
|
|
312
|
+
|
|
313
|
+
## π Changelog
|
|
314
|
+
|
|
315
|
+
### v2.1.2
|
|
316
|
+
- π Added solo usage guide (docs/guia-gitea-solo.md)
|
|
317
|
+
- π Updated docs and descriptions
|
|
318
|
+
- π Prepared release and tagging guidance for solo users
|
|
319
|
+
|
|
320
|
+
### v2.1.1
|
|
321
|
+
- π **Enhanced tool documentation** - All 10 tools now have comprehensive JSDoc comments with parameters, actions, and direct instructions
|
|
322
|
+
- ποΈ **Removed emojis** from console logs and code comments
|
|
323
|
+
- π **Added detailed instructions and recommendations** for each tool and method
|
|
324
|
+
- π§ **Improved code structure** with better organization and clarity
|
|
325
|
+
- π― **Enhanced developer experience** with clear usage examples and best practices
|
|
326
|
+
|
|
327
|
+
### v2.1.0
|
|
328
|
+
- π Comprehensive code documentation
|
|
329
|
+
- π§Ή Removed emojis for professional use
|
|
330
|
+
- π Added detailed usage instructions
|
|
331
|
+
- π§ Enhanced code comments and recommendations
|
|
332
|
+
- π Improved development guidelines
|
|
333
|
+
- π― Better error handling documentation
|
|
334
|
+
- π Enhanced developer experience
|
|
335
|
+
|
|
336
|
+
### v2.0.0
|
|
337
|
+
- π― Complete rewrite from scratch
|
|
338
|
+
- π οΈ 10 multifunctional tools
|
|
339
|
+
- π§ TypeScript implementation
|
|
340
|
+
- β
Zod validation
|
|
341
|
+
- π Basic documentation
|
|
342
|
+
- π Debug mode support
|
|
343
|
+
- π NPM package distribution
|
|
344
|
+
|
|
345
|
+
---
|
|
346
|
+
|
|
347
|
+
**Made with β€οΈ for the Gitea community**
|
|
348
|
+
=======
|
|
349
|
+
# git-mcp
|
|
350
|
+
MCP server for Gitea and GitHub integration with 30 comprehensive DevOps tools - Complete Git/GitHub functionality with ALL methods implemented
|
|
351
|
+
>>>>>>> da2b0c1d5fa249895b997007f22d22bb4a8a9fdb
|