Skip to content

feat(setup): report the Cursor plugin in doctor, setup and Studio - #63

Merged
matinfo merged 1 commit into
mainfrom
feat/cursor-plugin-status
Nov 28, 2026
Merged

matinfo merged 1 commit into
mainfrom
feat/cursor-plugin-status

Conversation

@matinfo

@matinfo matinfo commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

doctor, setup cursor and Studio's Add to my editor now know about the Cursor plugin.

What Cursor does, checked on macOS:

  • The plugin copy: an installed plugin leaves a copy in ~/.cursor/plugins/cache/<marketplace>/markdown-pdf-export/<commit>/.cursor-plugin/plugin.json. Install state itself is kept per folder in Cursor's state database, under opaque ids, so this PR doesn't read it.
  • Duplicate servers: with the plugin and a markdown-pdf entry in ~/.cursor/mcp.json, Cursor lists two markdown-pdf servers ("User" and "Plugin"), the second off until turned on.
  • After uninstall: the cache copy stays. So the copy can't count as "AI tools set up", unlike the Zed extension. Skipping the entry would leave a person who uninstalled the plugin with no tools and no offer.

Changes:

  • editorStatus: the Cursor entry gets plugin (any marketplace folder, since a Marketplace install may name it differently). mcp still means the mcp.json entry only.
  • doctor:
    • It warns when the plugin and the mcp.json entry are both there.
    • With the plugin and no entry, it prints "AI tools not set up in mcp.json (the plugin gives them in the folders where it is on)".
  • setup cursor and Studio: both show one shared note (CURSOR_PLUGIN_NOTE / setupNote()) when the plugin is found and the AI tools are still offered. The default stays yes, and Studio's switch stays on.
  • Tests: plugin only, plugin plus entry, copy without plugin.json, the doctor note, and the Studio /api/editors note. 597 tests pass and lint is clean.

Cursor keeps a copy of the Markdown PDF Export plugin in ~/.cursor/plugins/cache/<marketplace>/markdown-pdf-export/<commit>/ and lists its server next to a ~/.cursor/mcp.json entry, so the AI tools can show twice. The copy stays after the plugin is uninstalled, so it cannot count as the AI tools set up: setup and Studio still offer the mcp.json entry, with a note that the plugin gives the tools when it is on. doctor reports the plugin (plugin in --json) and warns when the plugin and the mcp.json entry are both there.
@matinfo
matinfo merged commit e874537 into main Nov 28, 2026
13 checks passed
@matinfo
matinfo deleted the feat/cursor-plugin-status branch November 28, 2026 14:58
@matinfo matinfo mentioned this pull request Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant