@cyanheads/git-mcp-server 2.1.6 → 2.1.7
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/dist/config/index.js +3 -2
- package/package.json +1 -1
package/dist/config/index.js
CHANGED
|
@@ -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
|
|
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: "
|
|
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.
|
|
3
|
+
"version": "2.1.7",
|
|
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": [
|