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 Fixed

@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.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 12:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@SriRamkunamsetty

Copy link
Copy Markdown
Contributor Author

Rebased onto updated #230 → #229 (f49c980 → a4ca93a) and addressed all review items (f57e2bd):

  1. Manifest version bumped to 0.3.3 + drift guard: Updated plugins/cursor-secfoo/.cursor-plugin/plugin.json to 0.3.3 and asserted it matches secfoo.__about__.__version__ stripped of .devN in tests/test_plugins.py.
  2. README.md prerequisite note: Documented the uv requirement (uvx secfoo mcp serve) plus pipx run secfoo mcp serve fallback in the Cursor section covering both the deeplink and plugin.
  3. End-to-end check note: Verified the exact uvx --from . secfoo mcp serve command configured by .mcp.json and the README deeplink works over stdio (submit_report persisted run_uuid: 1a7059a3-4a16-4dd1-b490-c76b12e8794a locally). Local Cursor IDE is installed (3.30.14), while an authenticated interactive Cursor Composer / headless agent session isn't configured on this workstation to drive a full LLM scan turn from the IDE UI.

Verified locally: python scripts/build_plugins.py --check (18 skill files), 52 passed (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), ruff check ., and bandit.

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

4 participants