My cursor always stuck at analyzing files

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

in Last few Updates when cursor complete my tasks and at the end analyze for errors it stuck at analyzing.
I am Using Flutter and Dart MCP.

Steps to Reproduce

Ask Any task to do.
it Complete the task and at the end analyze files to check for errors.
and stuck at this point keep analyzing until i stop the chat and again send continue message then it compelete the previous response.

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 3.10.17
VS Code Extension API: 1.125.0
Commit: c89f45b831621cdc5e951694db44fecd8fab1150
Date: 2026-07-05T06:39:45.228Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.5.0

For AI issues: which model did you use?

Auto

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report. There’s an important detail here: the Analyze login_screen.dart for errors step in the screenshot isn’t Cursor’s built-in error check. It’s a tool call from your Dart/Flutter MCP server. You can tell by the MCP icon and the roots and paths args. Cursor is just waiting for that MCP tool to return a result. When analyze_files doesn’t respond, for example the Dart analysis server is still warming up or the MCP process is stuck, the card will stay in analyzing.

What to try:

  1. Update your Dart/Flutter SDK and the Dart MCP server dart mcp-server to the latest version. analyze_files often hangs while the analysis server is initializing.
  2. Reconnect the MCP server in Settings → MCP. Turn the toggle off and back on after the SDK has warmed up.
  3. Test by running the same task with Dart MCP disabled. If the end-of-run hang goes away, then this tool is the cause.

Your current workaround Stop → continue is valid. It cancels the stuck tool call and lets the agent continue. Also note there’s no short timeout for MCP calls right now, so if the tool doesn’t respond, Cursor can wait for a long time. Let me know if disabling MCP helped narrow it down.

Yeah, the issue is the MCP and there are already open issue on Github.
Thanks for the Response.