Cursor-agent mcp exits with status 1

,

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

Hey there!

I can’t find a parent command that prints the help information. I agree it would be nice, but I’m not sure we’re breaking a pattern here! Let me know if I missed something. I moved your post to Feedback in the meantime.

The ‘cursor-agent mcp’ command shows both arguments as optional (in brackets). That is incorrect. In fact, any sub command that needs more arguments fails the same way, like ‘cursor-agent mcp login’. Should be easy to show a usage message, a la ‘cursor-agent mcp --help’.

Andrew