When using Cursor Agent (Composer/Chat) to perform tasks, the AI is outputting raw JSON/XML tags (e.g., <mcp>{...}</mcp>) directly into the chat interface instead of actually executing the commands. This results in a “pseudo-call” loop where the AI thinks it has sent a command, but nothing happens on the system.
Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
The Cursor Agent (Composer/Chat) fails to execute MCP tool commands and instead renders the raw internal communication tags (e.g., <mcp>{"command": "..."}</mcp>) as plain text in the chat interface. This creates a “pseudo-call” loop where the AI believes it has performed an action (like git pull or npx), but the command is never actually sent to the terminal or the MCP server.
Steps to Reproduce
Trigger a task that requires the MCP server or terminal to execute (for example, “Deploy to netflix” or “Synchronize with GitHub”). After that, the AI can execute them at the beginning of a session, but then it will output the original tag instead of executing them
Expected Behavior
The AI should recognize the tool-call syntax and execute the command in the background/terminal, showing a “Running command…” UI element instead of displaying raw JSON/XML tags to the user.
For AI issues: which model did you use?
Model name (e.g., Sonnet 4, Tab…)
For AI issues: add Request ID with privacy disabled
Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1
For Background Agent issues, also post the ID: bc-…
Additional Information
Add any other context about the problem here.
Does this stop you from using Cursor?
Yes - Cursor is unusable
Sometimes - I can sometimes use Cursor
No - Cursor works, but with this issue
The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!
Hey, thanks for the detailed report. That’s unusual behavior, especially the part where commands work at first and then start showing up as raw tags.
To dig in, I’ll need a bit more info:
MCP config: can you share the contents of .cursor/mcp.json (mask any API keys if needed)?
Which MCP servers you’re using: the screenshot shows git, but I’m curious which servers are connected
Developer Console logs: open Developer Tools (Help > Toggle Developer Tools), reproduce the issue, and look for errors. Logs mentioning “mcp” or “tool” are especially useful
Repro steps: does this happen every time after N requests in the chat, or only with specific commands?
As a first step, please update to version 2.4.x and check if you can still reproduce it there.