Skip to content

MCP crashing on start #27

@mauron85

Description

@mauron85

Running npx @cyanheads/git-mcp-server@latest package crashes immediately. "MCP Server running in STDIO mode." The process then terminates.

Last Known Working Version:
2.3.5

Environment:

  • Operating System: Windows 11
  • Node.js Version: v22.20.0

Steps to Reproduce:

  1. Open a terminal on Windows 11.
  2. Run the command: npx @cyanheads/git-mcp-server (or npx @cyanheads/git-mcp-server@latest)

Expected Behavior:
The MCP server should start and remain running, awaiting commands.

Actual Behavior:
The server starts, prints "MCP Server running in STDIO mode," and then immediately crashes/terminates.

Terminal Output:

PS C:\Colonnade\travel_portal_fe> npx @cyanheads/git-mcp-server@2.3.5
Need to install the following packages:
@cyanheads/git-mcp-server@2.3.5
Ok to proceed? (y) y

Created logs directory: C:\Users\hello\AppData\Local\npm-cache\_npx\f736b9e944a0385f\node_modules\@cyanheads\git-mcp-server\logs       

🚀 MCP Server running in STDIO mode.
   (MCP Spec: 2025-03-26 Stdio Transport)

sError flushing main logger: Error: the worker has exited
    at ThreadStream.flush (file:///C:/Users/hello/AppData/Local/npm-cache/_npx/b1c26a94225e12a1/node_modules/@cyanheads/git-mcp-server/dist/index.js:81783:32)
    at Pino.flush (file:///C:/Users/hello/AppData/Local/npm-cache/_npx/b1c26a94225e12a1/node_modules/@cyanheads/git-mcp-server/dist/index.js:82833:14)
    at file:///C:/Users/hello/AppData/Local/npm-cache/_npx/b1c26a94225e12a1/node_modules/@cyanheads/git-mcp-server/dist/index.js:101205:29
    at new Promise (<anonymous>)
    at Logger.close (file:///C:/Users/hello/AppData/Local/npm-cache/_npx/b1c26a94225e12a1/node_modules/@cyanheads/git-mcp-server/dist/index.js:101203:9)
de_modules/@cyanheads/git-mcp-server/dist/index.js:81783:32)
    at Pino.flush (file:///C:/Users/hello/AppData/Local/npm-cache/_npx/b1c26a94225e12a1/node_modules/@cyanheads/git-mcp-server/dist/index.js:82833:14)
    at file:///C:/Users/hello/AppData/Local/npm-cache/_npx/b1c26a94225e12a1/node_modules/@cyanheads/git-mcp-server/dist/index.js:101216:36
    at new Promise (<anonymous>)
    at Logger.close (file:///C:/Users/hello/AppData/Local/npm-cache/_npx/b1c26a94225e12a1/node_modules/@cyanheads/git-mcp-server/dist/index.js:101214:9)
    at shutdown (file:///C:/Users/hello/AppData/Local/npm-cache/_npx/b1c26a94225e12a1/node_modules/@cyanheads/git-mcp-server/dist/index.js:172491:18)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at runNextTicks (node:internal/process/task_queues:69:3)
    at process.processImmediate (node:internal/timers:453:9)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions