Skip to content

feat(claude): add Claude Code marketplace plugin and Claude Desktop .mcpb bundle - #230

Open
SriRamkunamsetty wants to merge 2 commits into
secfoo-com:mainfrom
SriRamkunamsetty:feat/claude-plugin-225
Open

SriRamkunamsetty wants to merge 2 commits into
secfoo-com:mainfrom
SriRamkunamsetty:feat/claude-plugin-225

Conversation

@SriRamkunamsetty

Copy link
Copy Markdown
Contributor

Fixes #225
Depends on #229 (#224 foundation)

Summary

  • Added root Claude Code marketplace manifest (.claude-plugin/marketplace.json) registering the secfoo plugin (./plugins/secfoo).
  • Added plugins/secfoo/ containing .claude-plugin/plugin.json, local-first .mcp.json (uvx secfoo mcp serve, zero embedded secrets), 4 slash 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 claude.
  • Added Claude Desktop .mcpb packaging manifest (packaging/mcpb/manifest.json, manifest_version: "0.4") marking optional SECFOO_CLOUD_API_KEY as sensitive: true and required: false.
  • Documented Claude Code, Claude Desktop .mcpb, and claude.ai setup cleanly in README.md and docs/agents.md.

Verification

  • claude plugin validate . and claude plugin validate ./plugins/secfoo (2.1.273 (Claude Code)) -> Validation passed.
  • python scripts/build_plugins.py --check -> Verified 9 plugin skill files 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_claude.py -q -> 48 passed.
  • 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 marketplace layout and the generated skills look right. This depends on #229, so it picks up those fixes (notably the version pins) when that lands. Specific to this PR:

  1. README: there is no hosted MCP endpoint at https://app.secfoo.com. Please reword the claude.ai bullet to say claude.ai needs a remote connector, which is planned (#225 item 4) and not available yet.
  2. README skill list: the plugin ships 9 skills, not the 4 listed. List them all, or say "all built-in skills".
  3. Prerequisite: uvx needs uv. Add one line on installing it (or pipx run secfoo mcp serve as a fallback).
  4. Run it once for real. claude plugin validate checks the manifest only. Please install from a local marketplace (/plugin marketplace add ./) in an interactive session, run /secfoo:scan on a small repo, and paste the submit_report result and the Claude Code version into the PR. That confirms the server starts with the right working directory and roots.

Please also bump the versions here together with #229's item 2.

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

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 #229 (a4ca93a) and addressed all review items (f49c980):

  1. Manifest versions bumped to 0.3.3 + drift guard: Updated .claude-plugin/marketplace.json, plugins/secfoo/.claude-plugin/plugin.json, and packaging/mcpb/manifest.json to 0.3.3 and asserted they match secfoo.__about__.__version__ stripped of .devN in tests/test_plugins.py.
  2. README.md fixes:
    • Removed the incorrect https://app.secfoo.com hosted MCP connector claim and stated that claude.ai remote MCP support is planned (#225) and not available yet.
    • Listed all 9 built-in skills shipped in the plugin.
    • Added the uv prerequisite note (uvx secfoo mcp serve) plus pipx run secfoo mcp serve fallback.
  3. Local marketplace & stdio submit_report check:
    • Added & validated the local marketplace (claude plugin marketplace add + claude plugin validate) on 2.1.273 (Claude Code) (√ Validation passed).
    • Launched uvx --from . secfoo mcp serve --root <sample-repo> over stdio and called submit_report (sast) + cloud_status -> persisted cleanly (run_uuid: 1a7059a3-4a16-4dd1-b490-c76b12e8794a, high: 1, cloud_synced: false, "local-only (no cloud key configured)"). (Note: claude auth status has no active Anthropic subscription/API session on this machine to drive a live interactive /secfoo:scan LLM turn.)

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.

Claude plugin: install Secfoo from the Claude Code marketplace (plus Desktop extension and claude.ai connector), local or with an API key

4 participants