Skip to content

gitmcp.io SSE connection immediately disconnects after initialize #120

@blackout1208

Description

@blackout1208

Here's the bug report with proper markdown formatting:

markdown# gitmcp.io MCP server immediately shuts down after initialize request

Issue Summary

The MCP remote server at https://gitmcp.io/zie619/n8n-workflows connects successfully but shuts down immediately after sending the initialize request, before receiving any response from the remote server.

Environment

  • mcp-remote version: 0.1.29
  • Node.js version: v22.2.0
  • Platform: macOS (darwin arm64)
  • Client: Claude Desktop (claude-ai v0.1.0)

Configuration

{
  "n8n-workflows Docs": {
    "command": "npx",
    "args": [
      "mcp-remote",
      "https://gitmcp.io/zie619/n8n-workflows"
    ]
  }
}
Expected Behavior
The server should:

Connect to the remote server
Send the initialize request
Wait for and receive the initialize response
Establish the MCP connection
Remain connected for subsequent requests

Actual Behavior
The server:

✅ Connects successfully to the remote server
✅ Sends the initialize request
❌ Immediately shuts down without waiting for a response
❌ Connection fails and Claude Desktop repeatedly attempts to reconnect

Logs
Successful connection followed by immediate shutdown:
[49695] Connecting to remote server: https://gitmcp.io/zie619/n8n-workflows
[49695] Using transport strategy: http-first
[49695] Connected to remote server using StreamableHTTPClientTransport
[49695] Local STDIO server running
[49695] Proxy established successfully between local STDIO and remote StreamableHTTPClientTransport
[49695] Press Ctrl+C to exit
[49695] [Local→Remote] initialize
[49695] {
  "jsonrpc": "2.0",
  "id": 0,
  "method": "initialize",
  "params": {
    "protocolVersion": "2025-06-18",
    "capabilities": {},
    "clientInfo": {
      "name": "claude-ai (via mcp-remote 0.1.29)",
      "version": "0.1.0"
    }
  }
}
[49695] 
Shutting down...
Claude Desktop error logs:
Error from remote server: Error: SSE stream disconnected: TypeError: terminated
    at processStream (file:///Users/xxxxxx/.npm/_npx/705d23756ff7dacc/node_modules/mcp-remote/dist/chunk-AKJME7CQ.js:13386:80)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Verification

The remote server URL is accessible:

$ curl -I https://gitmcp.io/zie619/n8n-workflows
HTTP/2 200 
date: Mon, 06 Oct 2025 20:47:20 GMT
content-type: text/html
server: cloudflare

Additional Context

This issue appears to be on the server side at gitmcp.io. The remote server either:

Is not responding to the initialize request
Is responding too slowly (timeout)
Is returning an invalid/malformed response
Has an SSE stream configuration issue

The mcp-remote client correctly establishes the connection but terminates when it doesn't receive a valid initialize response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions