Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
Bug Report: cursor-agent mcp exits with status 1 and no output
Category: Bug Reports
Tags: cli, mcp
Submit to: Bug Reports - Cursor - Community Forum
Description
Running cursor-agent mcp (with no subcommand) silently exits with exit code 1. There is no output on stdout or stderr — no error message, no help text, nothing. This makes it impossible to diagnose what went wrong.
By contrast, other parent commands that require a subcommand (e.g., cursor-agent --help) correctly display usage information. The expected behavior is that cursor-agent mcp should either display the MCP help text (as cursor-agent mcp --help does) or print a meaningful error like “missing subcommand”.
Steps to Reproduce
# 1. Confirm version
$ cursor-agent --version
2026.02.27-e7d2ef6
# 2. Confirm valid API key is set
$ echo $CURSOR_API_KEY
key_f9d23d7...
# 3. Run the mcp command with no subcommand
$ cursor-agent mcp
# 4. Observe exit code
$ echo $?
1
Steps to Reproduce
cursor-agent mcp
Expected Behavior
Tell me the command needs more arguments
Operating System
MacOS
Version Information
$ cursor-agent --version
2026.02.27-e7d2ef6
For AI issues: which model did you use?
Sonnet
Does this stop you from using Cursor
No - Cursor works, but with this issue