@cyanheads/git-mcp-server 2.1.6 → 2.1.8

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![TypeScript](https://img.shields.io/badge/TypeScript-^5.8.3-blue.svg)](https://www.typescriptlang.org/)
4
4
  [![Model Context Protocol](https://img.shields.io/badge/MCP%20SDK-^1.13.2-green.svg)](https://modelcontextprotocol.io/)
5
- [![Version](https://img.shields.io/badge/Version-2.1.6-blue.svg)](./CHANGELOG.md)
5
+ [![Version](https://img.shields.io/badge/Version-2.1.8-blue.svg)](./CHANGELOG.md)
6
6
  [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
7
7
  [![Status](https://img.shields.io/badge/Status-Stable-green.svg)](https://github.com/cyanheads/git-mcp-server/issues)
8
8
  [![GitHub](https://img.shields.io/github/stars/cyanheads/git-mcp-server?style=social)](https://github.com/cyanheads/git-mcp-server)
@@ -3,13 +3,14 @@ import { readFileSync } from "fs";
3
3
  import { dirname, join } from "path";
4
4
  import { fileURLToPath } from "url";
5
5
  // Removed logger import to break circular dependency
6
- dotenv.config(); // Load environment variables from .env file
6
+ // Suppress dotenv debug output which can interfere with stdio transport
7
+ dotenv.config({ debug: false }); // Load environment variables from .env file
7
8
  // Determine the directory name of the current module
8
9
  const __dirname = dirname(fileURLToPath(import.meta.url));
9
10
  // Construct the path to package.json relative to the current file
10
11
  const pkgPath = join(__dirname, "../../package.json");
11
12
  // Default package information in case package.json is unreadable
12
- let pkg = { name: "obsidian-mcp-server", version: "0.0.0" };
13
+ let pkg = { name: "git-mcp-server-SOMETHINGBROKE", version: "0.0.0" };
13
14
  try {
14
15
  // Read and parse package.json to get server name and version
15
16
  pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyanheads/git-mcp-server",
3
- "version": "2.1.6",
3
+ "version": "2.1.8",
4
4
  "description": "An MCP (Model Context Protocol) server enabling LLMs and AI agents to interact with Git repositories. Provides tools for comprehensive Git operations including clone, commit, branch, diff, log, status, push, pull, merge, rebase, worktree, tag management, and more, via the MCP standard. STDIO & HTTP.",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -22,9 +22,9 @@
22
22
  "homepage": "https://github.com/cyanheads/git-mcp-server#readme",
23
23
  "scripts": {
24
24
  "build": "tsc && node --loader ts-node/esm scripts/make-executable.ts dist/index.js",
25
- "start": "node dist/index.js",
26
- "start:stdio": "MCP_LOG_LEVEL=debug MCP_TRANSPORT_TYPE=stdio node dist/index.js",
27
- "start:http": "MCP_LOG_LEVEL=debug MCP_TRANSPORT_TYPE=http node dist/index.js",
25
+ "start": "DOTENV_CONFIG_SILENT=true node dist/index.js",
26
+ "start:stdio": "DOTENV_CONFIG_SILENT=true MCP_LOG_LEVEL=debug MCP_TRANSPORT_TYPE=stdio node dist/index.js",
27
+ "start:http": "DOTENV_CONFIG_SILENT=true MCP_LOG_LEVEL=debug MCP_TRANSPORT_TYPE=http node dist/index.js",
28
28
  "rebuild": "ts-node --esm scripts/clean.ts && npm run build",
29
29
  "docs:generate": "typedoc --tsconfig ./tsconfig.typedoc.json",
30
30
  "tree": "ts-node --esm scripts/tree.ts",
@@ -41,7 +41,7 @@
41
41
  "@types/sanitize-html": "^2.16.0",
42
42
  "@types/validator": "^13.15.2",
43
43
  "chrono-node": "2.8.0",
44
- "dotenv": "^17.0.0",
44
+ "dotenv": "16.6.1",
45
45
  "hono": "^4.8.3",
46
46
  "jose": "^6.0.11",
47
47
  "openai": "^5.8.2",