Repository navigation
Description
Problem: [[mcp_servers]] in ~/.secfoo/config.toml reaches claude automatically (per-run --mcp-config, --strict-mcp-config) and gemini/agent (Cursor) through secfoo mcp sync (src/secfoo/mcp.py: sync_gemini, sync_cursor). The other adapters have zero MCP handling: codex.py says it is "a follow-up", and copilot.py, opencode.py, droid.py, devin.py and antigravity.py do not mention MCP at all. So the "context, not just code" story in the README is only true for three of the ten agents, and Confluence or Jira context silently falls into "could not be reached" for the rest.
Goal: every CLI agent whose tool can load MCP servers gets them from secfoo's one config, preferring per-run scoping (as with Claude) and falling back to a persistent secfoo mcp sync --agent <id> (as with Gemini), with the limitation documented for any CLI that truly has no mechanism.
Build, one adapter per PR is fine:
- Codex: Codex reads
~/.codex/config.toml([mcp_servers.<name>]tables withcommand/args/env, and percodex --helppossibly-c mcp_servers.<name>.command=...overrides for a single run). Prefer the per-run-cform if it works for stdio servers; otherwise implementsync_codexthat merges intoconfig.tomlwithout clobbering the user's other servers. Record which Codex version you verified against. - Copilot CLI: check
copilot --helpfor an MCP config flag or its config file location; implement per-run or sync accordingly. - OpenCode:
opencode.json/~/.config/opencode/supportsmcpentries (local and remote); implementsync_opencode, and look for a per-run config flag. - Droid and Devin: investigate their config surfaces; implement what exists, and if nothing does, make
secfoo mcp sync --agent <id>say exactly that with a link, instead of the generic "unsupported". - Antigravity (
agy): re-check; the current note says its CLI has no MCP mechanism "as of this writing". Update the note with the version checked. - One table, one test per agent: extend
sync()insrc/secfoo/mcp.py, add tests intests/test_mcp.pythat write into a temp HOME and assert the resulting config (idempotent, preserves unrelated entries, handlesurl/transport/headersservers), and make the per-agent support matrix indocs/REFERENCE.mdthe single source of truth thatsecfoo mcp syncprints when asked for an unsupported agent. secfoo agentsshows MCP support as a column (per-run,sync,none), so users see it before they pick an agent.
Where to look: src/secfoo/mcp.py, src/secfoo/agents/claude.py (the per-run pattern), src/secfoo/agents/{codex,copilot,opencode,droid,devin,antigravity}.py, src/secfoo/cli.py (mcp_sync, agents), tests/test_mcp.py, docs/REFERENCE.md (MCP table), docs/agents.md, README.md ("Context, not just code").
Done when: each adapter either loads secfoo's MCP servers (tested) or the docs state, with a CLI version and date, that it cannot; secfoo agents shows the MCP column; the README's agent note is updated.
Activity
saryeljaramany commentedon Nov 20, 2026
I'd like to work on this
saryeljaramany commentedon Nov 21, 2026
Opened PR #190 to address this.
feat(mcp): Codex MCP sync and a canonical MCP support matrix (#195)