Add MCP Server with "failed to create client" error

Hi

I tried to build a MCP Server with a Go library, the demo is TiDB AI

But after I started the MCP Server with sse transport, and configured in Cursor,

I met the “Failed to create client” error,

Does anyone know how to set the MCP server with sse type correctly?

MCP is still relatively new, and waiting for support to be added is annoying for sure. I can’t find any documentation about MCP for TiDB online.

I have the same issue, struggling since yesterday to add MCP, but all in vain.

It has been ripped out until stable. There is a forum thread on this in the latest release.

Check your MCP output logs. I’m having the same issue because I’m working on windows inside WSL, and cursor attempts to execute the MCP commands on the Windows Host which doesn’t have my environment configured for anything.

same issue -I tried many options

config json, env variable etc etc
maybe a windows problem

where can we see logs of the error

Well, I found that the go lib mcp-golang doesn’t support sse, so I use stdio instead to make it work.

Switching my default Node.js version from 14 to 18 fixed the issue, but it was still buggy. I had to restart the app multiple times and refresh the MCP server connection.
“nvm alias default 18”

It might be specific only for me, but on Ubuntu 20.04 running the .Appimage as an executable from the terminal helps to solve the issue, while opening it from GUI or from the Applications tab results in “failed to create the client”

And running from the terminal

Maybe the issue is connected to the system env used for launching the cursor

1 Like

Fixed my issue on Ubuntu. Thank you.