[BUG] Cursor IDE integration fails: option disappears after brief availability
Open 💬 3 comments Opened Jan 25, 2026 by PrzemyslawLeszek
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The Claude Code extension for Cursor fails to maintain a connection.
- Upon launching
claudein the Cursor terminal, a red "IDE disconnected" message appears briefly. - If
/ideis run immediately: "Cursor" appears in the list. Selecting it results in no connection established (state remains disconnected). - If
/ideis run after a few seconds delay (or for a second time): The "Cursor" option disappears entirely ("No available IDEs detected").
What Should Happen?
The connection to Cursor IDE should be established and maintained stably, the "Cursor" option should remain available in /ide menu.
Error Messages/Logs
Debug logs show a repeated reconnection loop:
[DEBUG] MCP server "ide": Successfully connected to ws-ide server in 48ms
[DEBUG] MCP server "ide": WS-IDE connection closed after 0s (cleanly)
[ERROR] MCP server "ide" Failed to fetch tools: MCP error -32000: Connection closed
... (repeats indefinitely)
System state verified:
- .claude/ide/*.lock file exists and matches Cursor process
- netstat confirms ESTABLISHED TCP connection to localhost port from lockfile
Steps to Reproduce
- Environment: Windows 11, Cursor 2.4.21 (x64), Claude Code 2.1.19.
- Open a terminal in Cursor (PowerShell or Git Bash).
- Run
claude. - Observe the brief "IDE disconnected" flash.
- Run
/ideimmediately -> try to select "Cursor" -> connection fails. - Run
/ideagain -> "Cursor" option is gone.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.19 (Claude Code)
Platform
Other
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗