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