Skip to content

Commit 34774e6

Browse files
committed
fix(deps): pin dotenv to 16.6.1 to suppress console message
- Pins the `dotenv` package to `16.6.1` to prevent the promotional message from being printed to the console during startup, which could interfere with STDIO-based MCP clients. - Adds `dotenv` to the `.ncurc.json` reject list to prevent future automatic upgrades to problematic versions. - Updates the CHANGELOG to document this fix.
1 parent 91f2b79 commit 34774e6

File tree

5 files changed

+23
-14
lines changed

5 files changed

+23
-14
lines changed

.ncurc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"reject": ["chrono-node"]
2+
"reject": ["chrono-node", "dotenv"]
33
}

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,24 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## v2.1.8 - 2025-06-29
6+
7+
### Fixed
8+
9+
- Downgraded `dotenv` to `^16.6.1` to suppress `dotenvx` promotional logging messages in v17.0 that were interfering with the stdio transport.
10+
- Added `dotenv` to the `reject` list in `.ncurc.json` to prevent future automatic upgrades to problematic versions.
11+
512
## v2.1.7 - 2025-06-29
613

714
### Changed
15+
816
- Suppressed `dotenv` debug output to prevent interference with the stdio transport.
917
- Updated the fallback package name in the configuration for better error identification.
1018

11-
1219
## v2.1.6 - 2025-06-29
1320

1421
### Dependencies
22+
1523
- Updated the following dependencies:
1624
- `@modelcontextprotocol/sdk` to `^1.13.2`
1725
- `@types/node` to `^24.0.7`
@@ -24,6 +32,7 @@ All notable changes to this project will be documented in this file.
2432
- `typedoc` to `^0.28.6`
2533

2634
### Changed
35+
2736
- Minor formatting changes across several files.
2837

2938
## v2.1.5 - 2025-06-29

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![TypeScript](https://img.shields.io/badge/TypeScript-^5.8.3-blue.svg)](https://www.typescriptlang.org/)
44
[![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)
66
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
77
[![Status](https://img.shields.io/badge/Status-Stable-green.svg)](https://github.com/cyanheads/git-mcp-server/issues)
88
[![GitHub](https://img.shields.io/github/stars/cyanheads/git-mcp-server?style=social)](https://github.com/cyanheads/git-mcp-server)

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cyanheads/git-mcp-server",
3-
"version": "2.1.7",
3+
"version": "2.1.8",
44
"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.",
55
"main": "dist/index.js",
66
"files": [
@@ -22,9 +22,9 @@
2222
"homepage": "https://github.com/cyanheads/git-mcp-server#readme",
2323
"scripts": {
2424
"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",
2828
"rebuild": "ts-node --esm scripts/clean.ts && npm run build",
2929
"docs:generate": "typedoc --tsconfig ./tsconfig.typedoc.json",
3030
"tree": "ts-node --esm scripts/tree.ts",
@@ -41,7 +41,7 @@
4141
"@types/sanitize-html": "^2.16.0",
4242
"@types/validator": "^13.15.2",
4343
"chrono-node": "2.8.0",
44-
"dotenv": "^17.0.0",
44+
"dotenv": "16.6.1",
4545
"hono": "^4.8.3",
4646
"jose": "^6.0.11",
4747
"openai": "^5.8.2",

0 commit comments

Comments
 (0)