MCP failed to connect

I am trying to set up MCP with claude code and got this error:

[
  {
    "debug": "Connection failed: McpError: MCP error -32000: Connection closed",
    "timestamp": "2025-07-04T22:46:20.069Z",
    "sessionId": "d5321f96-71e1-4116-8b07-43ca9de89b2f",
    "cwd": "/Users/anjor/repos/anjor/pltr-mcp-experiments"
  },
  {
    "debug": "Error message: MCP error -32000: Connection closed",
    "timestamp": "2025-07-04T22:46:20.069Z",
    "sessionId": "d5321f96-71e1-4116-8b07-43ca9de89b2f",
    "cwd": "/Users/anjor/repos/anjor/pltr-mcp-experiments"
  },
  {
    "debug": "Error stack: McpError: MCP error -32000: Connection closed\n    at an1._onclose (file:///Users/anjor/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1338:14912)\n    at _transport.onclose (file:///Users/anjor/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1338:14231)\n    at ChildProcess.<anonymous> (file:///Users/anjor/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1340:1444)\n    at ChildProcess.emit (node:events:518:28)\n    at ChildProcess.emit (node:domain:489:12)\n    at maybeClose (node:internal/child_process:1101:16)\n    at ChildProcess._handle.onexit (node:internal/child_process:304:5)",
    "timestamp": "2025-07-04T22:46:20.069Z",
    "sessionId": "d5321f96-71e1-4116-8b07-43ca9de89b2f",
    "cwd": "/Users/anjor/repos/anjor/pltr-mcp-experiments"
  },
  {
    "error": "Connection failed: MCP error -32000: Connection closed",
    "timestamp": "2025-07-04T22:46:20.070Z",
    "sessionId": "d5321f96-71e1-4116-8b07-43ca9de89b2f",
    "cwd": "/Users/anjor/repos/anjor/pltr-mcp-experiments"
  }
]