Skip to content

Bug: Go server on macOS closes connection (Connection reset by peer) on initial HTTP request without logging an error #44

@Devansh-236

Description

@Devansh-236

When running the latest Go version of the kite-mcp-server on macOS, the server starts up successfully and binds to port 8080. However, any attempt to connect to the server's root URL (/) from a browser or a command-line tool like curl results in the server immediately closing the connection. This prevents access to the documentation/login page and makes it impossible to complete the OAuth flow.

Crucially, the server process does not log any error, panic, or stack trace when this happens, making the issue very difficult to debug.

The curl command fails with a "Connection reset by peer" error.

  • Trying [::1]:8080...
  • Connected to localhost (::1) port 8080

GET / HTTP/1.1
Host: localhost:8080
User-Agent: curl/8.7.1
Accept: /

  • Request completely sent off
  • Recv failure: Connection reset by peer
  • Closing connection
    curl: (56) Recv failure: Connection reset by peer

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