promptgarten ๐ŸŒฑ
๐ŸŒ ES

Command reference ยท Cursor CLI

agent mcp enable <identifier>

Adds an MCP server to the locally approved list.

agent mcp enable <identifier> puts a configured MCP server on the locally approved list, so it can be used without a repeated approval prompt.

โœ… WHEN TO USE IT?

Permanently approve a server you already trust

agent mcp enable github

โ›” WHEN NOT TO?

All configured servers should be approved at once for a single script run

agent mcp enable acts per server and permanently, not for a single run.

Better: Use the --approve-mcps flag on that particular agent call

SOURCES