Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
In interactive Cursor CLI 2026.09.23-86fc751 on Windows, a local project MCP server named i01 is reported ready and its i01_ping tool is listed, but a native Run once approval returns: MCP server does not exist: i01. The error lists only agent-browser and openviking as available runtime servers. Separately, stop and afterAgentResponse hooks fire for the same generation, but afterAgentResponse.text contains preliminary assistant text as well as the final response; the official transcript last assistant message is followed by [REDACTED] after its JSON. We cannot obtain an exact machine-readable final message from the interactive run.
Steps to Reproduce
- In a disposable project, configure one local stdio Python MCP server as i01 in .cursor/mcp.json; its Python Server name is also i01 and it exposes i01_ping. A separate local MCP client initializes it and calls i01_ping successfully.
- With the same cwd and CURSOR_CONFIG_DIR, run agent mcp enable i01, agent mcp list, and agent mcp list-tools i01. They report ready and list i01_ping.
- Start interactive agent --trust --model composer-2.5, request i01_ping, and choose native Run once. Cursor responds that i01 does not exist in its runtime registry. Reproduced in two authorized prompts.
- In the same interactive CLI, enable stop and afterAgentResponse hooks and request a single JSON final response. The hook text includes an earlier message; the transcript final assistant text contains JSON followed by [REDACTED].
Expected Behavior
The interactive runtime should execute an MCP tool that the CLI lists as ready in the same project/configuration. A documented hook, event, or API should expose the exact final assistant message and completed-turn boundary without parsing ANSI terminal output or extracting a JSON substring.
Operating System
Windows 10/11
Version Information
Cursor CLI 2026.09.23-86fc751
For AI issues: which model did you use?
composer-2.5
Additional Information
What supported setting or diagnostic explains the difference between agent mcp list/list-tools and the interactive runtime MCP registry? Is there a supported machine-readable final assistant message plus completed-turn event for interactive CLI? No credentials, raw transcripts, or real project data are included.
Does this stop you from using Cursor
No - Cursor works, but with this issue