@andrebuzeli/git-mcp 6.0.0 → 6.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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * Extract repository name from project path
6
- * Normalizes: spaces to hyphens, lowercase, removes special chars
6
+ * Normalizes: spaces to hyphens, lowercase, keeps alphanumeric and hyphens/underscores
7
7
  */
8
8
  export declare function getRepoNameFromPath(projectPath: string): string;
9
9
  /**
@@ -16,13 +16,13 @@ const path_1 = __importDefault(require("path"));
16
16
  */
17
17
  /**
18
18
  * Extract repository name from project path
19
- * Normalizes: spaces to hyphens, lowercase, removes special chars
19
+ * Normalizes: spaces to hyphens, lowercase, keeps alphanumeric and hyphens/underscores
20
20
  */
21
21
  function getRepoNameFromPath(projectPath) {
22
22
  return path_1.default.basename(projectPath)
23
23
  .toLowerCase()
24
24
  .replace(/\s+/g, '-')
25
- .replace(/[^a-z0-9-]/g, '');
25
+ .replace(/[^a-z0-9-_]/g, '');
26
26
  }
27
27
  /**
28
28
  * Get GitHub owner from environment
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@andrebuzeli/git-mcp",
3
- "version": "6.0.0",
4
- "description": "Professional MCP server for Git operations - FULLY AUTONOMOUS: each provider uses own username from env, repo name auto-normalized from projectPath (spaces→hyphens, lowercase, safe chars), zero redundant parameters, automatic dual-provider execution (GitHub + Gitea)",
3
+ "version": "6.0.1",
4
+ "description": "Professional MCP server for Git operations - FULLY AUTONOMOUS: each provider uses own username from env, repo name auto-normalized from projectPath (spaces→hyphens, lowercase, keeps underscores), zero redundant parameters, automatic dual-provider execution (GitHub + Gitea)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "bin": {