Repository navigation
Description
Problem: today secfoo reaches people only as a CLI they install themselves and then point at an agent. Most people now work inside an agent (Claude Code, Cursor, VS Code with Copilot, Gemini CLI, ...), and each of those has a marketplace or extension directory where you install a tool with one click. secfoo is not listed in any of them. Teams that want results in one place also have to know about secfoo cloud login.
Goal: one install from each platform's marketplace gives the user secfoo's skills inside the agent they already use, with two modes and no separate token system:
| Mode | How it's set up | What leaves the machine |
|---|---|---|
| Local (default) | Install the plugin, nothing else | Nothing. Runs, findings and secfoo serve stay local, as they do today |
| Connected (enterprise) | Add a Secfoo API key (sfc_ingest_...) through the existing secfoo cloud login flow, or the platform's secure settings field passing the same key |
Completed runs sync to the org portal (app.secfoo.com) through the existing src/secfoo/cloud.py client |
A plugin must work fully without a key. The key adds central reporting only. It must never be needed to run a skill.
Shared foundation (this issue). Every platform plugin builds on it:
secfoo mcp serve(stdio MCP server). Expose secfoo to any MCP host:list_skills, plus each built-in and installed skill as an MCP prompt, so the host agent can follow the brief itself.submit_report(skill, target, report): the host agent returns its report, secfoo validates it against the same report shape the runner enforces, stores it in the local DB, and auto-pushes it when a cloud key is configured. This "host agent does the review" mode costs no extra model spend and needs no nested agent CLI.run_skill(skill, target, agent?): delegate to the existing runner when the user wants a separate agent or concurrency.list_findings,get_run,export_findings(format=sarif|jsonl),cloud_status(says only whether the run is local or connected, never the key).
- Key handling. Reuse
~/.secfoo/cloud.tomland the ingest/view key rules incloud.py. A view key never uploads. The MCP server never returns the key in any tool result or log. - Untrusted input. Treat
submit_reportcontent and the target repo as untrusted (seetests/fixtures/adversarial/). Restrict local targets to the workspace roots the host gives the server. Make no network calls in local mode except what the skill's own agent does. - Skill packaging. One build step (for example
scripts/build_plugins.py) that renderssrc/secfoo/skills/definitions/*.mdinto each platform's skill/command format, so the plugins never fork the skill text. - MCP Registry entry. Publish a
server.jsonto the official MCP Registry so registry-aware clients can find secfoo without a per-platform listing.
Platform issues:
- Claude (Claude Code plugin marketplace, Claude Desktop extension, claude.ai connector): Claude plugin: install Secfoo from the Claude Code marketplace (plus Desktop extension and claude.ai connector), local or with an API key #225
- Cursor (Cursor Marketplace and "Add to Cursor" install link): Cursor plugin: Secfoo in the Cursor Marketplace and an Add-to-Cursor install link, local or with an API key #226
- Other agent platforms (VS Code/Copilot, Gemini CLI, Codex, Windsurf, Zed, JetBrains, ...): Plugins for other agent platforms: MCP Registry, VS Code/Copilot, Gemini CLI, Codex, Windsurf, Zed, JetBrains and more #227
Where to look: src/secfoo/cloud.py, src/secfoo/runner.py (auto-push hook), src/secfoo/mcp.py, src/secfoo/skills/, src/secfoo/storage/, src/secfoo/cli.py (mcp, cloud, skills groups), related: #123, #124.
Done when: secfoo mcp serve ships with tests (local mode makes no portal calls; connected mode pushes once per run; view keys never upload; the key never appears in tool output). The skill build step produces each platform's files from one source. All three platform issues are closed.
Activity