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

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

3 participants