Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
After agent mcp list reports MCP status successfully (e.g. local_sentry: ready), the CLI process crashes on exit with a libuv assertion:
Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file src\win\async.c, line 76
The MCP status is printed before the crash, so authentication/enable state appear correct; the failure is during process teardown on Windows.
Steps to Reproduce
- Windows 10/11, PowerShell
- Project with .cursor/mcp.json defining a remote MCP (e.g. GlitchTip at http://localhost:8000/mcp)
- agent mcp login local_sentry (OAuth completes successfully)
- agent mcp enable local_sentry → “already enabled and approved”
- agent mcp list
- Observe: local_sentry: ready then assertion / abnormal exit
Expected Behavior
agent mcp list exits with code 0 and no assertion after printing server status.
Operating System
Windows 10/11
Version Information
2026.06.03-0bbb28e
Does this stop you from using Cursor
No - Cursor works, but with this issue