Skip to content

How do I debug MCP issues? #24

@cseickel

Description

@cseickel

This is a great idea! I tried it out but it does not work. This is what I have in the mcp log file:

[
  {
    "debug": "Starting connection with timeout of 30000ms",
    "timestamp": "2025-09-05T14:25:25.616Z",
    "sessionId": "ce192d16-cd8b-4d92-b0b4-e13e3205d1c6",
    "cwd": "/home/user/claude-instructions"
  },
  {
    "error": "Server stderr: Resolving dependencies",
    "timestamp": "2025-09-05T14:25:25.634Z",
    "sessionId": "ce192d16-cd8b-4d92-b0b4-e13e3205d1c6",
    "cwd": "/home/user/claude-instructions"
  },
  {
    "error": "Server stderr: Resolved, downloaded and extracted [4]",
    "timestamp": "2025-09-05T14:25:27.294Z",
    "sessionId": "ce192d16-cd8b-4d92-b0b4-e13e3205d1c6",
    "cwd": "/home/user/claude-instructions"
  },
  {
    "error": "Server stderr: Saved lockfile",
    "timestamp": "2025-09-05T14:25:27.324Z",
    "sessionId": "ce192d16-cd8b-4d92-b0b4-e13e3205d1c6",
    "cwd": "/home/user/claude-instructions"
  },
  {
    "debug": "Connection failed after 1719ms: MCP error -32000: Connection closed",
    "timestamp": "2025-09-05T14:25:27.334Z",
    "sessionId": "ce192d16-cd8b-4d92-b0b4-e13e3205d1c6",
    "cwd": "/home/user/claude-instructions"
  },
  {
    "error": "Connection failed: MCP error -32000: Connection closed",
    "timestamp": "2025-09-05T14:25:27.334Z",
    "sessionId": "ce192d16-cd8b-4d92-b0b4-e13e3205d1c6",
    "cwd": "/home/user/claude-instructions"
  },
  {
    "debug": "Starting connection with timeout of 30000ms",
    "timestamp": "2025-09-05T14:26:16.127Z",
    "sessionId": "ce192d16-cd8b-4d92-b0b4-e13e3205d1c6",
    "cwd": "/home/user/claude-instructions"
  },
  {
    "debug": "Connection failed after 8ms: MCP error -32000: Connection closed",
    "timestamp": "2025-09-05T14:26:16.135Z",
    "sessionId": "ce192d16-cd8b-4d92-b0b4-e13e3205d1c6",
    "cwd": "/home/user/claude-instructions"
  },
  {
    "error": "Connection failed: MCP error -32000: Connection closed",
    "timestamp": "2025-09-05T14:26:16.135Z",
    "sessionId": "ce192d16-cd8b-4d92-b0b4-e13e3205d1c6",
    "cwd": "/home/user/claude-instructions"
  }
]

The SessionStart hook throws this in the UI:

SessionStart:startup [npx -y cli-lsp-client start] failed with non-blocking status code 1: No stderr output

How can I debug? Are there any other log files?

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