I found a very simple way to pass terminal logs to Cursor using an MCP server which makes debugging easier. I'm writing all terminal output to the dev.log file. The MCP tool reads this file and passes its contents to Cursor so Agent can identify and fix the errors.
Thread