Disallow MCP server on cursor-agent results in terminal error logged

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

Disallowing access to an MCP server causes error in the terminal

Failed to load MCP server "Linear": Error: MCP server "Linear" has not been approved. Please approve it before loading.
    at ServerApprovalMiddleware.<anonymous> (/Users/ed/.local/share/cursor-agent/versions/2025.11.06-8fe8a63/index.js:161844:23)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/ed/.local/share/cursor-agent/versions/2025.11.06-8fe8a63/index.js:161800:58)
Failed to load MCP server "Playwright": Error: MCP server "Playwright" has not been approved. Please approve it before loading.
    at ServerApprovalMiddleware.<anonymous> (/Users/ed/.local/share/cursor-agent/versions/2025.11.06-8fe8a63/index.js:161844:23)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/ed/.local/share/cursor-agent/versions/2025.11.06-8fe8a63/index.js:161800:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Steps to Reproduce

  • Add an MCP server
  • Start a session with cursor-agent
  • Continue without approval of MCP server

Expected Behavior

No output, or short message informing that the server is disabled.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Cursor agent: 2025.11.06-8fe8a63

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. You’re right - the error output should be cleaner. When you decline MCP server approval, cursor-agent shouldn’t show the full stack trace. A simple message like “MCP server [name] wasn’t approved and will be skipped” would be much better.

This is a polish issue with cursor-agent’s error handling. I’ll pass this to the team as an improvement request.

Workaround for now: The errors are cosmetic and don’t affect functionality. cursor-agent continues working normally, so you can safely ignore the stack traces when you choose not to approve an MCP server.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.