Open
Description
When I'm trying to connect my streamable http mcp server to Claude Desktop using remote-mcp, I'm getting the following error.
Node version: v20.12.0
My mcp configuration:
"remote-example": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:3000/mcp"
]
}
2025-05-16T07:00:17.535Z [remote-example] [info] Initializing server...
2025-05-16T07:00:17.572Z [remote-example] [info] Server started and connected successfully
2025-05-16T07:00:17.573Z [remote-example] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0}
npx: installed 79 in 8.153s
file:///Users/pavindu/.npm/_npx/28829/lib/node_modules/mcp-remote/dist/chunk-OUCHRS4S.js:5452
crypto = globalThis.crypto?.webcrypto ?? // Node.js [18-16] REPL
^
SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:140:18)
2025-05-16T07:00:26.794Z [remote-example] [info] Server transport closed
2025-05-16T07:00:26.794Z [remote-example] [info] Client transport closed
2025-05-16T07:00:26.795Z [remote-example] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log.
2025-05-16T07:00:26.795Z [remote-example] [error] Server disconnected. For troubleshooting guidance, please visit our [debugging documentation](https://modelcontextprotocol.io/docs/tools/debugging) {"context":"connection"}
2025-05-16T07:00:26.795Z [remote-example] [info] Client transport closed
Metadata
Metadata
Assignees
Labels
No labels