Previously, when we get a large response from MCP server, cursor was able to write the large output to ~/.cursor/projects/… and will be smart enough to write a python script to analyze the content to complete the task.
However, it looks like with recent updates - this is no longer happening and instead the agent will try to summarize it but ends up with “Agent context compacted”. It will than try again and again.
Thanks for the quick response i don think asking it to write the response to the output helps as it looks like the agent is attempting to read the context even before it checks the size of the responses.
this is an internal remote mcp.
Below are two screenshots-
i took one a few months back (nov - cant remember the version, im now on beta with nightly buidls)
the 2nd was taken recently. i hope you will find this useful
I thought this was fixed and was super excited. we have a wide range of tools here and so far cursor seems to be the only one that “solved” this - at least it was a few months back. but now it is back to the same issue.
Interestingly no issue with claude code as it will store the tool results in a temporary file - i think this was what i was observing with cursor previously