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.
Since your post, we’ve changed how Cursor handles an MCP tool call that stops responding. Instead of waiting forever, the call now times out after a couple of minutes, and the agent keeps going. So a stuck analyze step shouldn’t block the whole run anymore. This is a clarification to my earlier reply where I said there wasn’t a short timeout for MCP.
The analyze step still comes from the Dart MCP server, so if that tool is still hanging, keeping the Dart SDK and its MCP server up to date is still the right direction.
If you’re on the latest version and you still see a run stuck for longer than a couple of minutes, let me know and I’ll take another look.