Adding faulty MCP server scripts can break cursor

Thanks for reporting a bug you have found in Cursor!
Please add the following info to help us diagnose your issue:

:white_check_mark: Check the forum to ensure the issue hasn’t been reported already
:lady_beetle: Provide a clear description of the bug
:arrows_counterclockwise: Explain how to reproduce the bug (if known)
:camera: Attach screenshots or recordings (e.g., .jpg, .png, .mp4).
:computer: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).
:no_entry_sign: Tell us if the issue stops you from using Cursor.

After trying to add an MCP server and figuring out why “no tools found” keeps happening I made a change to the build\index.js script to try if that would resolve the issue and this change caused cursor to become totally unusable. I suspect that when the added script causes EverythingProvider to crash, it makes cursor completely unusable. I can’t close the window, open files and the only way to stop cursor is by killing the process, which shows it’s using 14% cpu and seems to be stuck on some stuck subprocess (I presume EverythingProvider). Killing the process throws this error:

Unfortunately cursor immediately restores the last project and automatically executes the MCP server commands again after a restart, so you end up in a loop.

The only way I managed to get out of this loop was by renaming the MCP server’s index.js file it tried to run on start to prevent the crash and delete the server.

Additionally, I find the MCP server management to be incomplete overall. It requires a lot of digging to figure out why not tools can be found. There is too little information to debug the issue and figure out A: if the server starts correctly or B: what stdio commands are exchanged between the server and the client. At the bare minimum there should be a MCP server log available where the user is able to see what’s happening, which requests are made to the server and which responses are received by the client with a trace if they fail.

Hey, thanks for the report, we’re looking into it.