Skip to content

The Claude desktop app is closing connections after receiving timeouts on request IDs 1, 2, and 3, and then sending notifications/cancelled to close the connection. #3

@z3media

Description

@z3media

Used the TypeScript version.

Here are the complete logs from Claude Desktop.

2025-09-09T04:44:13.547Z [weather] [info] Initializing server... { metadata: undefined }
2025-09-09T04:44:13.552Z [weather] [info] Initializing server... { metadata: undefined }
2025-09-09T04:44:13.563Z [weather] [info] Using MCP server command: /opt/homebrew/bin/npx with args and path: {
  metadata: {
    args: [
      'mcp-remote',
      'http://localhost:8123/mcp',
      '--allow-http',
      [length]: 3
    ],
    paths: [
      '/usr/local/bin',
      '/opt/homebrew/bin',
      '/usr/bin',
      '/usr/bin',
      '/bin',
      '/usr/sbin',
      '/sbin',
      [length]: 7
    ]
  }
} %o
2025-09-09T04:44:13.564Z [weather] [info] Server started and connected successfully { metadata: undefined }
2025-09-09T04:44:13.567Z [weather] [info] Using MCP server command: /opt/homebrew/bin/npx with args and path: {
  metadata: {
    args: [
      'mcp-remote',
      'http://localhost:8123/mcp',
      '--allow-http',
      [length]: 3
    ],
    paths: [
      '/usr/local/bin',
      '/opt/homebrew/bin',
      '/usr/bin',
      '/usr/bin',
      '/bin',
      '/usr/sbin',
      '/sbin',
      [length]: 7
    ]
  }
} %o
2025-09-09T04:44:13.567Z [weather] [info] Server started and connected successfully { metadata: undefined }
2025-09-09T04:44:13.584Z [weather] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0} { metadata: undefined }
2025-09-09T04:44:13.589Z [weather] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0} { metadata: undefined }
[11778] Using automatically selected callback port: 15925
[11770] Using automatically selected callback port: 63028
[11778] [11778] Connecting to remote server: http://localhost:8123/mcp
[11778] Using transport strategy: http-first
[11770] [11770] Connecting to remote server: http://localhost:8123/mcp
[11770] Using transport strategy: http-first
[11778] Connected to remote server using StreamableHTTPClientTransport
[11778] Local STDIO server running
[11778] Proxy established successfully between local STDIO and remote StreamableHTTPClientTransport
[11778] Press Ctrl+C to exit
[11778] [Local→Remote] initialize
[11778] {
  "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"
    }
  }
}
[11770] Connected to remote server using StreamableHTTPClientTransport
[11770] Local STDIO server running
[11770] Proxy established successfully between local STDIO and remote StreamableHTTPClientTransport
[11770] Press Ctrl+C to exit
[11770] [Local→Remote] initialize
[11770] {
  "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"
    }
  }
}
[11778] [Remote→Local] 0
2025-09-09T04:44:15.967Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":0,"result":{"protocolVersion":"2025-03-26","capabilities":{"tools":{},"logging":{}},"serverInfo":{"name":"mcp-server","version":"1.0.0"}}} { metadata: undefined }
2025-09-09T04:44:15.968Z [weather] [info] Message from client: {"method":"notifications/initialized","jsonrpc":"2.0"} { metadata: undefined }
2025-09-09T04:44:15.968Z [weather] [info] Message from client: {"method":"tools/list","params":{},"jsonrpc":"2.0","id":1} { metadata: undefined }
2025-09-09T04:44:15.969Z [weather] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":2} { metadata: undefined }
2025-09-09T04:44:15.969Z [weather] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":3} { metadata: undefined }
[11778] [Local→Remote] notifications/initialized
[11778] [Local→Remote] tools/list
[11778] [Local→Remote] prompts/list
[11778] [Local→Remote] resources/list
[11770] [Remote→Local] 0
2025-09-09T04:44:16.095Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":0,"result":{"protocolVersion":"2025-03-26","capabilities":{"tools":{},"logging":{}},"serverInfo":{"name":"mcp-server","version":"1.0.0"}}} { metadata: undefined }
2025-09-09T04:44:16.096Z [weather] [info] Message from client: {"method":"notifications/initialized","jsonrpc":"2.0"} { metadata: undefined }
2025-09-09T04:44:16.096Z [weather] [info] Message from client: {"method":"tools/list","params":{},"jsonrpc":"2.0","id":1} { metadata: undefined }
2025-09-09T04:44:16.097Z [weather] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":2} { metadata: undefined }
[11770] [Local→Remote] notifications/initialized
2025-09-09T04:44:16.097Z [weather] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":3} { metadata: undefined }
[11770] [Local→Remote] tools/list
[11770] [Local→Remote] prompts/list
[11770] [Local→Remote] resources/list
[11770] [Remote→Local] 3
2025-09-09T04:44:16.443Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":3,"error":{"code":-32601,"message":"Method not found"}} { metadata: undefined }
[11778] [Remote→Local] notifications/message
2025-09-09T04:44:16.631Z [weather] [info] Message from server: {"jsonrpc":"2.0","method":"notifications/message","params":{"level":"info","data":"SSE Connection established"}} { metadata: undefined }
[11770] [Remote→Local] 2
2025-09-09T04:44:16.723Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":2,"error":{"code":-32601,"message":"Method not found"}} { metadata: undefined }
[11770] [Remote→Local] 1
2025-09-09T04:44:16.795Z [weather] [info] Message from server: {"jsonrpc":"2.0","id":1,"result":{"tools":[{"name":"get-alerts","description":"Get weather alerts for a state","inputSchema":{"type":"object","properties":{"state":{"type":"string","description":"Two-letter state code (e.g. CA, NY)"}},"required":["state"]}},{"name":"get-forecast","description":"Get weather forecast for a location","inputSchema":{"type":"object","properties":{"latitude":{"type":"number","description":"Latitude of the location"},"longitude":{"type":"number","description":"Longitude of the location"}},"required":["latitude","longitude"]}}]}} { metadata: undefined }
[11770] [Remote→Local] notifications/message
2025-09-09T04:44:17.027Z [weather] [info] Message from server: {"jsonrpc":"2.0","method":"notifications/message","params":{"level":"info","data":"SSE Connection established"}} { metadata: undefined }
[11778] [Remote→Local] notifications/message
2025-09-09T04:44:17.627Z [weather] [info] Message from server: {"jsonrpc":"2.0","method":"notifications/message","params":{"level":"info","data":"Message 1 at 2025-09-09T04:44:17.453Z"}} { metadata: undefined }
[11770] [Remote→Local] notifications/message
2025-09-09T04:44:18.029Z [weather] [info] Message from server: {"jsonrpc":"2.0","method":"notifications/message","params":{"level":"info","data":"Message 1 at 2025-09-09T04:44:17.858Z"}} { metadata: undefined }
[11778] [Remote→Local] notifications/message
[11778] [Remote→Local] notifications/message
2025-09-09T04:44:18.642Z [weather] [info] Message from server: {"jsonrpc":"2.0","method":"notifications/message","params":{"level":"info","data":"Message 2 at 2025-09-09T04:44:18.453Z"}} { metadata: undefined }
2025-09-09T04:44:18.643Z [weather] [info] Message from server: {"jsonrpc":"2.0","method":"notifications/message","params":{"level":"info","data":"Streaming complete!"}} { metadata: undefined }
[11770] [Remote→Local] notifications/message
[11770] [Remote→Local] notifications/message
2025-09-09T04:44:19.039Z [weather] [info] Message from server: {"jsonrpc":"2.0","method":"notifications/message","params":{"level":"info","data":"Message 2 at 2025-09-09T04:44:18.858Z"}} { metadata: undefined }
2025-09-09T04:44:19.040Z [weather] [info] Message from server: {"jsonrpc":"2.0","method":"notifications/message","params":{"level":"info","data":"Streaming complete!"}} { metadata: undefined }
[11778] [Remote→Local] notifications/tools/list_changed
[11770] [Remote→Local] notifications/tools/list_changed
2025-09-09T04:44:20.261Z [weather] [info] Message from server: {"jsonrpc":"2.0","method":"notifications/tools/list_changed"} { metadata: undefined }
2025-09-09T04:44:20.262Z [weather] [info] Message from server: {"jsonrpc":"2.0","method":"notifications/tools/list_changed"} { metadata: undefined }
2025-09-09T04:44:20.971Z [weather] [info] Message from client: {"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":1,"reason":"McpError: MCP error -32001: Request timed out"}} { metadata: undefined }
[11778] [Local→Remote] notifications/cancelled
2025-09-09T04:44:20.989Z [weather] [info] Message from client: {"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":2,"reason":"McpError: MCP error -32001: Request timed out"}} { metadata: undefined }
[11778] [Local→Remote] notifications/cancelled
2025-09-09T04:44:20.999Z [weather] [info] Message from client: {"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":3,"reason":"McpError: MCP error -32001: Request timed out"}} { metadata: undefined }
[11778] [Local→Remote] notifications/cancelled

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