Skip to content

Secfoo in every agent marketplace: one MCP server, local by default, optional key for the org portal #224

Backlog

Description

@vsn411

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:

  1. 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).
  2. Key handling. Reuse ~/.secfoo/cloud.toml and the ingest/view key rules in cloud.py. A view key never uploads. The MCP server never returns the key in any tool result or log.
  3. Untrusted input. Treat submit_report content and the target repo as untrusted (see tests/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.
  4. Skill packaging. One build step (for example scripts/build_plugins.py) that renders src/secfoo/skills/definitions/*.md into each platform's skill/command format, so the plugins never fork the skill text.
  5. MCP Registry entry. Publish a server.json to the official MCP Registry so registry-aware clients can find secfoo without a per-platform listing.

Platform issues:

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

  1. added
    enhancement
    difficulty: hard
    tracking
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: hardenhancementtracking

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions