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.
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:
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.
Reconnect the MCP server in Settings → MCP. Turn the toggle off and back on after the SDK has warmed up.
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.