MCP security
RepoOps reads the MCP servers your coding tools have configured and guards them six ways: it alerts when a server definition changes, holds a server or skill that appears after its first read until you approve it, pins the ones you approve, plants a honeytoken that fires if your config is rewritten to carry it, attacks your own setup with known tool-poisoning probes, and signs what each skill and subagent may do. It never starts a server to check it.
How to
The RepoOps desktop app on the machine where your coding tools keep their MCP configuration.
A RepoOps checkout, only for signing skills (the one step this page cannot do).
- List what is configured with repoops mcp-scan.
It prints every MCP server your tools have configured. The page below reads the same inventory.
- Open AI Security in the sidebar, then the MCP servers tab.
- Review Drift alerts and press Dismiss on each one you have checked.
An alert appears the day a server's command, arguments, env var names, transport or URL changes. A changed command binary or a new secret-shaped env var name is high. The alert stays until you dismiss it.
- Open each server you approve in the Inventory and press Mark reviewed.
The review pins each config that carries the server: the tool, the server name and a hash of its configuration. Any later change clears it, so the server reads Not reviewed again until you review it again.
- Approve or reject each held server.
The first time RepoOps reads your MCP configs it records what is there, and holds nothing. A server that appears after that reads Held in the Inventory, and the Held filter lists only those. Open one and press Approve, which also pins its current definition so it reads Reviewed, or Reject. A new skill or subagent is held the same way, with Approve and Reject on its row under Skill supply chain.
- Plant the canary token inside an MCP server config.
Opening the tab mints a first canary if none exists. Press Copy beside the value under Canaries and paste it into a server's arguments or URL. If anything rewrites that config to carry it elsewhere, the fire shows on the same card.
- Press Run red team.
Each tool-poisoning probe reads fails closed when the shipped detector caught it or fails open when it did not, plus the servers in your inventory it would flag.
- Sign your skills and subagents, then press Verify now.
From a RepoOps checkout run
node bin/cli.mjs skills signto record the baseline for each.claude/skills/*/SKILL.mdand.claude/agents/*.md. Verify now re-checks every one against it.
Use cases
A vetted server edited after approval
- Situation
- A teammate approved an MCP server last month. An update changed its launch command.
- You do
- Read the high drift alert, compare the change with the vendor's release, then open the server in the Inventory and press Mark reviewed, or remove it.
- You see
- The server is reviewed at its new hash, or gone from the config. Until then it reads Not reviewed.
A skill that gained network access
- Situation
- A skill's frontmatter now lists a web fetch tool it did not declare when it was signed.
- You do
- Press Verify now and read the skill's row.
- You see
- It reads drifted with the new capability, and gaining network or filesystem-write access raises it to high. Re-sign only after you have read the change.
Expected outcome
Next step: REPOOPS_MCP_ALLOWLIST_BLOCK=1 is set and the server is not reviewed. The label is advisory: RepoOps intercepts nothing. Mark it reviewed or remove it.
Next step: Protection is on and nobody has approved the server. Open it in the Inventory and approve it, or leave it rejected.
Next step: The shipped detector did not catch that attack shape. Treat any server it names as unvetted until you have read its tools.
Next step: Nobody has recorded its baseline. Sign it from a RepoOps checkout once you have read it; unsigned is never treated as trusted.
What else to consider
When a server or skill becomes held
RepoOps holds a server when it reads the inventory: opening the MCP servers tab, or reading a repository's skills. A server added and called before either read is not held yet. The hook sees the server's name in the tool name, so a hold covers every config that carries that name. A held or rejected server warns on each call through the RepoOps PreToolUse hook, and the hook refuses the call only while the one protection switch on the Overview is on. There is no separate setting.
What the canary can and cannot see
It scans the command, the URL and the first 200 characters of the joined arguments of each configured server. It does not watch network traffic, read env var values or open files, so a canary in a .env or a notes file can never fire. The token authenticates to nothing.
How strong the signatures are
Manifests carry an Ed25519 signature under this install's attestation key beside the HMAC ledger signature; a record with only the HMAC signature verifies as weaker. Either catches a change by a process that does not hold the key. A local key holder can still re-sign a file they edited.
A threat model for each agent
The Threat model tab on an agent's page joins these servers with the agent's permission settings and the sandbox egress allowlist. It lists the inputs an attacker could write, the powers the agent holds, and each path from one to the other with its STRIDE category, OWASP item and the detector that watches it, or unwatched. A server whose name does not say what it reads reads unknown and draws no path. Only Claude Code's settings are read, so another agent's powers read unknown. Download Markdown saves the same model for a review. Desktop only (LDG-1977).
Agents that approve their own tool calls
RepoOps reads the approval setting of Claude Code, Codex CLI, Gemini CLI, VS Code and the Cursor CLI from their config files, and the Threat model tab shows it as the row Approve its own tool calls. A mode that never asks a person (Claude Code bypassPermissions or auto, Codex approval_policy never, VS Code Allow all, Cursor CLI unrestricted) reads no prompt and puts the flag on that agent's inventory row. A mode that approves file edits only, such as acceptEdits or Gemini auto_edit, is shown and not flagged. When an agent switches to a mode that never asks, Session Signals raises an excessive agency signal for it. Launch flags such as codex --full-auto and gemini --yolo, and Cursor's IDE Run Mode, which lives in its settings screen, cannot be read from a file, so the row says so. Desktop only.
Cost and egress
No model call and no network. The inventory records env var names, never values, and the ledgers live under the data directory's mcp-security folder. Desktop only.