Skip to content

Connection to MCP server timed out using claude code. #31

Open
@ammkrn

Description

@ammkrn

I'm on a new nixos installation 25.05 warbler, using claude code 0.2.109. I got everything set up on another machine fine using json and the uvx invocation; when I tried the nix version claude mcp add-json nixos-mcp '{"command": "nix","args": ["run", "github:utensils/mcp-nixos", "--"]}' on the nixos machine, I initially got some errors of the form

[
  {
    "error": "Connection failed: Connection to MCP server \"nixos-mcp\" timed out after 30000ms",
    "timestamp": "2025-06-XXTXX:XX:XX.XXXZ",
    "sessionId": "...",
    "cwd": "/home/user/somedir"
  }
]

Eventually I ran claude with claude --mcp-debug and there was a connection, I'm not sure if by coincidence or whether it was the debug command itself that caused some side effect.

Feel free to close if "wont' investigate, don't care". Certainly not a blocking issue since it sort of resolved itself, but spooky action at a distance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions