Skip to content

MCP server syntax error #116

@nlehman-momentum

Description

@nlehman-momentum

Extension Version

v2.6.2

OS and Version

Windows 11, WSL Ubuntu Using Laravel Sail

VS Code Version

Cursor 0.49.6

Database name and Version

mysql 8.0.32

Steps to reproduce

Clicked on the hammer icon to add the mcp server to my mcp.json.

{
  "devdb-mcp-server": {
    "command": "node",
    "args": [
      "/home/nlehman/.cursor-server/extensions/damms005.devdb-2.5.7-linux-x64/dist/services/mcp/api.js"
    ]
  }
}

Also tried changing it to run via wsl with no luck.

"devdb-mcp-server": {
         "command": "wsl",
         "args": [
            "bash",
            "-c",
            "'node /home/nlehman/.cursor-server/extensions/damms005.devdb-2.6.2-linux-x64/dist/services/mcp/server.js'"
         ]
      },

Also tried to manually run the mcp server.js using node from the terminal. This was the output:

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47

Expected behavior

I expected the mcp server to connect and show a green dot but instead shows a red dot and says failed to create client.

Additional context

I couldn't find anything helpful in the output logs of "Cursor MCP".

2025-05-14 12:56:07.655 [info] rver: Starting new stdio process with command: node /home/nlehman/.cursor-server/extensions/damms005.devdb-2.6.2-linux-x64/dist/services/mcp/server.js
2025-05-14 12:56:08.336 [info] rver: Client closed for command
2025-05-14 12:56:08.337 [error] rver: Error in MCP: Client closed
2025-05-14 12:56:08.337 [error] rver: Failed to reload client: MCP error -32000: Connection closed

I also couldn't find anything helpful in the cursor dev tools console.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions