@andrebuzeli/git-mcp 7.0.2 → 7.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.
@@ -10,11 +10,33 @@ exports.TOOLS_GUIDE = {
10
10
  name: "Git-MCP Tools Complete Guide",
11
11
  description: "Detailed documentation and usage instructions for all 20 Git tools with 102 actions",
12
12
  mimeType: "text/markdown",
13
- content: `# 🛠️ Git-MCP v7.0.0 - Complete Tools Guide
13
+ content: `# 🛠️ Git-MCP v7.0.2 - Complete Tools Guide
14
14
 
15
15
  > **Comprehensive documentation for all 21 Git tools with 110+ actions**
16
16
  > **Supports:** Automatic DUAL execution on GitHub + Gitea APIs
17
- > **BREAKING CHANGES in v7.0.0:** ALL tools now execute DUAL automatically with env var usernames
17
+ > **v7.0.2:** Central projectPath validation - ALL tools require projectPath (no exceptions)
18
+
19
+ ---
20
+
21
+ ## 🚨 CRITICAL: projectPath is MANDATORY for ALL TOOLS
22
+
23
+ **EVERY SINGLE TOOL CALL REQUIRES projectPath AS THE FIRST PARAMETER**
24
+
25
+ ### Why projectPath is Required:
26
+ - ✅ It's where the .git folder is located
27
+ - ✅ ALL Git commands run in this directory
28
+ - ✅ Local AND remote operations use this context
29
+ - ✅ It MUST be the absolute path to project ROOT
30
+ - ✅ The server validates this BEFORE calling any tool
31
+
32
+ ### Validation:
33
+ If you call ANY tool without projectPath, you will get:
34
+ \\\`\\\`\\\`json
35
+ {
36
+ "errorCode": "VALIDATION_ERROR",
37
+ "message": "projectPath is required for all tool calls"
38
+ }
39
+ \\\`\\\`\\\`
18
40
 
19
41
  ---
20
42
 
@@ -23,7 +45,7 @@ exports.TOOLS_GUIDE = {
23
45
  **ALL TOOLS NOW:**
24
46
  - ✅ Execute on BOTH GitHub and Gitea APIs automatically
25
47
  - ✅ Use GITHUB_USERNAME and GITEA_USERNAME from environment variables
26
- - ✅ Return separated responses: \`{ github: {...}, gitea: {...} }\`
48
+ - ✅ Return separated responses: { github: {...}, gitea: {...} }
27
49
  - ✅ NO manual owner/user/author parameters needed
28
50
  - ✅ Each provider uses its own credentials automatically
29
51
 
@@ -38,21 +60,27 @@ GITEA_URL=http://your-gitea-server:port
38
60
 
39
61
  ---
40
62
 
41
- ## ⚠️ CRITICAL: projectPath Requirements
63
+ ## ⚠️ projectPath Requirements (MANDATORY - NO EXCEPTIONS)
42
64
 
43
- **ALL TOOLS REQUIRE projectPath PARAMETER**
65
+ **RULE: projectPath MUST be provided in EVERY tool call**
44
66
 
45
67
  ### ✅ Correct Usage:
46
68
  \\\`\\\`\\\`javascript
47
69
  {
48
- "projectPath": "Z:/absolute/path/to/project-root"
49
- // Must be the ROOT folder of the opened project
70
+ "projectPath": "Z:/absolute/path/to/project-root", // ← MANDATORY FIRST PARAMETER
71
+ "action": "stats"
72
+ // projectPath must be absolute path to project ROOT folder
50
73
  // NOT a subfolder, NOT a file, NOT a parent folder
51
74
  }
52
75
  \\\`\\\`\\\`
53
76
 
54
77
  ### ❌ WRONG Usage:
55
78
  \\\`\\\`\\\`javascript
79
+ // ❌ Missing projectPath (will be rejected by server)
80
+ {
81
+ "action": "stats"
82
+ }
83
+
56
84
  // ❌ Relative path
57
85
  "projectPath": "./my-project"
58
86
 
@@ -66,10 +94,13 @@ GITEA_URL=http://your-gitea-server:port
66
94
  "projectPath": "/project/package.json"
67
95
  \\\`\\\`\\\`
68
96
 
69
- ### 📋 Rule:
97
+ ### 📋 Rules:
70
98
  **projectPath MUST be:**
99
+ - ✅ **MANDATORY** - Cannot be omitted (server will reject)
71
100
  - ✅ Absolute path (starts with / or drive letter)
72
101
  - ✅ Points to the ROOT folder of the opened project
102
+ - ✅ Where the .git folder is located
103
+ - ✅ The working directory for ALL Git operations
73
104
  - ✅ The same folder you opened in your IDE
74
105
  - ✅ Contains .git folder (for Git operations)
75
106
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrebuzeli/git-mcp",
3
- "version": "7.0.2",
3
+ "version": "7.0.3",
4
4
  "description": "Professional MCP server for Git operations - STDIO UNIVERSAL: works in ANY IDE (Cursor, VSCode, Claude Desktop). Fully autonomous DUAL execution (GitHub + Gitea APIs) with automatic username detection. All tools execute on BOTH providers simultaneously. No manual parameters needed.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",