Yes - This is less about GitLens itself and more about how Cursor allows external tools to register persistent MCP servers without user control. This behavior has real security implications and needs clarification.
For AI issues: which model did you use?
Model name (e.g., Sonnet 4, Tab…)
For AI issues: add Request ID with privacy disabled
Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1
For Background Agent issues, also post the ID: bc-…
Additional Information
Add any other context about the problem here.
Does this stop you from using Cursor?
Yes - Cursor is unusable
Sometimes - I can sometimes use Cursor
No - Cursor works, but with this issue
The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!
There are two separate issues we’re tracking here:
Extension-provided MCP servers are re-enabled across restart
It’s possible to remove an MCP server entirely while continuing to use the rest of the extension
As the maintainer mentioned on the GitHub issue, you can set "gitlens.gitkraken.mcp.autoEnabled": false in your VSCode settings to prevent it from auto-enabling. I’ve just tested this out locally, and it removes the MCP server!
Any extension can now silently register a persistent MCP server that executes code and injects context into your AI — no mcp.json, no permission prompt, no opt-in. That’s a supply chain risk by design.