@cyanheads/git-mcp-server 2.5.3 → 2.5.4

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4261,7 +4261,7 @@ var package_default;
4261
4261
  var init_package = __esm(() => {
4262
4262
  package_default = {
4263
4263
  name: "@cyanheads/git-mcp-server",
4264
- version: "2.5.2",
4264
+ version: "2.5.3",
4265
4265
  mcpName: "io.github.cyanheads/git-mcp-server",
4266
4266
  description: "A secure and scalable Git MCP server enabling AI agents to perform comprehensive Git version control operations via STDIO and Streamable HTTP.",
4267
4267
  main: "dist/index.js",
@@ -101124,7 +101124,8 @@ var init_logger = __esm(() => {
101124
101124
  const transports = [];
101125
101125
  const isDevelopment = config.environment === "development";
101126
101126
  const isTest = config.environment === "testing";
101127
- const useColoredOutput = isDevelopment && transportType !== "stdio";
101127
+ const noColorEnv = process.env.NO_COLOR === "1" || process.env.FORCE_COLOR === "0";
101128
+ const useColoredOutput = isDevelopment && transportType !== "stdio" && !noColorEnv;
101128
101129
  if (useColoredOutput && !isServerless2) {
101129
101130
  try {
101130
101131
  const { createRequire: createRequire2 } = await import("node:module");
@@ -172805,6 +172806,13 @@ function composeContainer() {
172805
172806
  var container_default = import_tsyringe20.container;
172806
172807
 
172807
172808
  // src/index.ts
172809
+ var transportType = process.env.MCP_TRANSPORT_TYPE?.toLowerCase();
172810
+ var isStdioMode = !transportType || transportType === "stdio";
172811
+ var isHttpModeWithoutTty = transportType === "http" && !process.stdout.isTTY;
172812
+ if (isStdioMode || isHttpModeWithoutTty) {
172813
+ process.env.NO_COLOR = "1";
172814
+ process.env.FORCE_COLOR = "0";
172815
+ }
172808
172816
  var config2;
172809
172817
  var transportManager;
172810
172818
  var isShuttingDown = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyanheads/git-mcp-server",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "mcpName": "io.github.cyanheads/git-mcp-server",
5
5
  "description": "A secure and scalable Git MCP server enabling AI agents to perform comprehensive Git version control operations via STDIO and Streamable HTTP.",
6
6
  "main": "dist/index.js",