Skip to content

feat(cursor): add Cursor marketplace plugin and Add-to-Cursor MCP deeplink - #231

Open
SriRamkunamsetty wants to merge 3 commits into
secfoo-com:mainfrom
SriRamkunamsetty:feat/cursor-plugin-226
Open

SriRamkunamsetty wants to merge 3 commits into
secfoo-com:mainfrom
SriRamkunamsetty:feat/cursor-plugin-226

Conversation

@SriRamkunamsetty

Copy link
Copy Markdown
Contributor

Fixes #226
Depends on #230 (#229 foundation)

Summary

  • Added Cursor marketplace index (.cursor-plugin/marketplace.json) and plugin package (plugins/cursor-secfoo/) containing .cursor-plugin/plugin.json, local-first .mcp.json (uvx secfoo mcp serve, zero embedded keys), 4 commands (scan.md, threat-model.md, findings.md, connect.md), and all 9 generated skills/<id>/SKILL.md files built via scripts/build_plugins.py --target cursor.
  • Added the one-click Add Secfoo to Cursor MCP deeplink (cursor://anysphere.cursor-deeplink/mcp/install?...) to README.md alongside marketplace / secfoo mcp sync --agent agent docs, and recorded verified Cursor 3.30.14 details in docs/agents.md.
  • Excluded ^cursor:// custom URI schemes from lychee-action in .github/workflows/ci.yml so the docs link checker stays green.

Verification

  • python scripts/build_plugins.py --check -> Verified 18 plugin skill files (9 Claude + 9 Cursor) match source definitions.
  • pytest -p no:langsmith -p no:hypothesis tests/test_plugins.py tests/test_mcp_server.py tests/test_docs_consistency.py tests/test_agents/test_cursor.py tests/test_agents/test_claude.py -q -> 52 passed (including base64 JSON decode validation of the README Cursor deeplink).
  • ruff check . & bandit -c .bandit -ll -r src/secfoo -q -> passed.
  • git merge-tree --write-tree HEAD upstream/main -> zero conflicts.

Comment thread src/secfoo/mcp_server.py
if col == "locations" and isinstance(val, str) and val.startswith("["):
try:
val = json.loads(val)
except json.JSONDecodeError:

@vsn411 vsn411 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! The Add-to-Cursor deeplink test that decodes the config is a nice touch. This is stacked on #230 → #229, so it waits for those. Specific to this PR:

  1. Versions: same as #229 item 2 (plugin.json pins 0.3.2).
  2. Same uv prerequisite note as #230, for the deeplink and the plugin.
  3. Please confirm the plugin end to end in Cursor (install from the local marketplace, run the scan command, paste the submit_report result and the Cursor version). The format check alone doesn't show that the MCP server starts in the workspace.

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.

Cursor plugin: Secfoo in the Cursor Marketplace and an Add-to-Cursor install link, local or with an API key

3 participants