Skip to main content
VibeDefend is the automated path to Cybe MCP — plus everything around it. The Cybe MCP page walks you through adding the MCP URL to each client by hand. VibeDefend does that for you, and goes further: it wires a hook layer so the right business and security rules arrive in the agent’s context at the moment it edits code, hard-blocks denied actions, and runs a gap analysis at the end of each substantive session. One command, every detected agent.

Install

Works on macOS, Linux and Windows — PowerShell, cmd, bash, zsh, fish, Git Bash, pick any. Requires Node 18.17 or later, which most users already have because Claude Code / Cursor / Codex ship a bundled Node. The installer is fully interactive: pick a region, pick which agents to wire (they’re auto-detected), confirm. That’s it. Prefer a global install?

MCP alone vs. MCP + hooks

Connecting the MCP server by hand (the Cybe MCP flow) gives your agent a passive security backend: it can list findings, drill into a vulnerability, drive the status lifecycle and pull business-logic context — when you ask it to. VibeDefend adds the active layer on top. The hooks fire on the agent’s own lifecycle events, so security shows up without anyone prompting for it: The MCP server is what the hooks call under the hood. VibeDefend installs both, so you get the tools and the moments that use them.

Supported agents

VibeDefend auto-detects and wires whichever of these you have installed. Unchecked agents stay untouched. Re-run vibedefend install any time to add an agent: it wires the agents you tick and leaves the others as they are, so unticking an agent there doesn’t remove it. To remove VibeDefend, run vibedefend uninstall (see Commands), which removes it from every agent it wired, then vibedefend install again for the agents you keep. Legend — ✅ supported · ⚠️ supported with caveats · ❌ not exposed by the agent · ✱ alternate mechanism ¹ Windsurf’s pre_write_code hook hard-blocks on file writes only. For non-write tool calls (Read / Bash / WebFetch) the installer drops a snippet into .windsurfrules instructing the agent to call cybe_guards_check via MCP before sensitive actions — soft enforcement that relies on the model following its rules file. ² Windsurf has no native SessionStart event. VibeDefend wires pre_user_prompt, which fires on every turn. The hook is idempotent and cheap (one GET to the proposals endpoint, returns “0 pending” once the inbox is empty), so the per-turn cost is negligible. ³ Codex and OpenCode follow the doctrine via the MCP server’s Server.instructions field on each session, which removes the need for a per-prompt reminder hook. ⁴ Antigravity does not open the MCP sign-in on its own — see Antigravity sign-in below. ⁵ Antigravity has no channel to inject context into the model from its PreToolUse hook, so rules fetched before a write are held and delivered at the agent’s next model call (its PreInvocation event) — one step later than on the other agents, but before the agent acts on what it just read. ⁶ agy --dangerously-skip-permissions runs no hook at all, on any event. On Windows, a home path with a space in it is not supported: Antigravity cannot quote the hook command it runs, so the installer refuses to wire a command that could not start. ⁷ OpenCode can’t hand the agent text before a tool runs, so the rules fetched for an edit arrive with the edit’s result: the agent reads them right after the write, before its next step. A call whose tool failed gets none, and the retry fetches them again. When the agent edits through a shell command (its bash tool, shell on V2), the rules are fetched the same way. ⁸ OpenCode has no confirmation prompt for a tool call. A guard either blocks the call, in which case the agent reads the reason as the tool’s error and the call doesn’t run, or lets it through. Guards run on every tool call, MCP tools and sub-agents included. On V1, OpenCode’s --pure option (or OPENCODE_PURE=1) runs it without external plugins, so in that mode no rule lands and no guard runs. V2 has no such option. VibeDefend’s MCP proxy isn’t placed in front of OpenCode’s other MCP servers, so your organization’s MCP inventory and blocks don’t reach them. ⁹ opencode run ends as soon as its answer is complete, before the end-of-session review can run. On V1 the review therefore needs a session that stays open after the answer. On V2 it still runs in the background once opencode run has exited, and opencode run prints none of it. ¹⁰ VibeDefend wires the OpenCode it finds (the opencode or opencode2 command, or the desktop app). It was tested with OpenCode 1.19 and checked against OpenCode 2.2.1. After vibedefend install and vibedefend update, restart V1, which loads its plugins when it starts, and run opencode service restart on V2, whose running service does not load a plugin written while it runs: after a first install, no guard is active until then. V2 does not use V1’s sign-in, and vibedefend install cannot tell whether V2 is signed in: it lists opencode service restart, then opencode mcp auth cybedefend, under Next steps on every install. See OpenCode.

The install flow, step by step

vibedefend install walks you through four prompts and then signs you in.
1

Pick a region

Choose Production — EU or Production — US. VibeDefend registers an MCP server named cybedefend pointing at that region’s endpoint and wires the hooks to call the matching Gateway — you never type a URL. The two regions are independent CybeDefend tenants; sign in to the one that hosts your account (eu.cybedefend.com vs us.cybedefend.com).
2

Pick which agents to wire

VibeDefend prints a detection table (one row per agent, with a version badge) and a multi-select. Detected, supported agents are pre-checked; a version that’s too old is shown disabled with an “update this client” hint; an agent you don’t have yet is still selectable, so you can pre-wire hooks before you install it.
3

Tune the hook config

Four questions, each with a tuned default:
  • Enable the session-end gap analysis? — default on. Without it, the gap analysis never runs.
  • Edits threshold to trigger it? — default 3. Typos and one-line fixes won’t fire it; a real feature will. Lower to 1 to fire on any session that had an edit, raise it if your team does frequent tiny commits in long sessions.
  • Enable automatic background updates? — default on. Hooks self-refresh so you never re-run install (see Keeping VibeDefend current).
  • Enable auto-propose mode? — default off (not recommended). Off means rule proposals need an explicit chat-side “yes”. On means the agent drafts and pushes proposals without asking first — you still review them at the next session start.
4

Sign in

If VibeDefend has no stored credentials, it runs the login flow automatically: OAuth 2.0 Authorization Code + PKCE opens your browser to the CybeDefend sign-in page, receives the callback locally, and stores the token bundle in your OS keychain. If your browser already has a dashboard session, this completes instantly. The refresh token persists for 14 days.

After install, drop one tiny file at the root of each repo you want monitored — a .cybedefend/config.json with your project UUID:
Grab the UUID from the project page on the EU dashboard or the US dashboard. You can also override it per shell or per project with the CYBEDEFEND_PROJECT_ID environment variable.
Because .cybedefend/ is a directory here, the deprecated .cybedefend exclusion file cannot exist beside it — a path is either a file or a directory. Declare your SAST exclusions in .cybeignore at the repo root, or in .cybedefend/ignore next to config.json.

Commands

vibedefend doctor takes --check for a dry-run (report only, change nothing) and --yes to apply every fix without the confirmation prompt. vibedefend login takes --force to re-authenticate even when credentials are already stored. vibedefend uninstall asks you to confirm first (--yes skips the question); it also signs you out of VibeDefend and deletes the ~/.cybedefend/ folder, keeping your own regions.json.

Keeping VibeDefend current

At install you’re asked “Enable automatic background updates? (recommended)”. Leave it on and you never update by hand: the SessionStart hook checks npm at most once a day and, when a newer version is published, upgrades @cybedefend/vibedefend in the background — the next session picks it up via the self-resolving runner shim. Opt out (or pin a version, or run in a locked-down environment) and you instead get a one-line nudge. To update manually at any time:
(vibedefend update --self upgrades only the binary, without touching hooks.)
One-time bootstrap for installs older than 1.2.0. Those versions shipped a frozen copy of the hook runner with no update logic, so vibedefend update alone can’t upgrade the binary. Do it explicitly once:
After that, updates are hands-off (or one vibedefend update) as above.

Tunables

The gap-analysis threshold and auto-propose mode are chosen at install and stored in your VibeDefend config. To change them, re-run vibedefend install and answer the hook-config prompts again: One override is read live from the environment, so you can set it per shell or per project — handy when a repo’s UUID differs from the default:

Codex setup gotcha

Codex 0.131+ requires you to approve each hook from the /hooks panel inside Codex before it fires. After running vibedefend install, open Codex, run /hooks, and trust the cybedefend entries — until you do, the panel shows Installed N / Active 0 and the hooks stay dormant.

Antigravity sign-in

VibeDefend registers the CybeDefend MCP server in ~/.gemini/config/mcp_config.json, the file Antigravity 2.0, the Antigravity IDE and the agy CLI share. But Antigravity does not open the sign-in on its own, and agy has no login command VibeDefend could run for you (as it runs codex mcp login for Codex). Until you sign in once, cybedefend shows Unauthorized next to an Authenticate button and every Cybe tool call fails. The installer prints these steps under Next steps:
  • Antigravity 2.0: open Customizations in the sidebar (in the Antigravity IDE: Antigravity User Settings → Customizations), then the Installed tab. Under MCP Servers, click Authenticate next to cybedefend and finish the sign-in in your browser. A Sign out button replaces Authenticate once you are signed in.
  • agy CLI: run /mcp, select cybedefend, choose Authenticate, then open the URL it prints.
The app, the IDE and the CLI each keep their own sign-in: authenticate in each one you use. The Cybe MCP page has the details.

VibeDefend or the manual MCP setup?

Both connect your agent to the same CybeDefend tenant. The difference is how much of the platform comes along. You can also do both: run VibeDefend for the agents it supports and add the raw MCP URL by hand to any other client.

Troubleshooting

Codex gates hooks behind manual approval — see Codex setup gotcha above. Open Codex, run /hooks, and trust the cybedefend entries.
Expected until you sign in once: Antigravity does not open the sign-in on its own. See Antigravity sign-in above.
Run vibedefend status for a read-only report of region, wired agents and a live API check, then vibedefend doctor to diagnose and repair what’s fixable (vibedefend doctor --check reports without changing anything). Confirm the repo has a .cybedefend/config.json with a valid projectId — without a linked project the rule-fetch and gap-analysis hooks have nothing to call.
Expected, once. Codex’s MCP-scoped token (aud: cybedefend-mcp) has limited Permify rights and can’t call the Gateway endpoints the runtime hooks use, which need a user token (aud: cybedefend-api). They aren’t interchangeable. One Logto sign-in (instant if your browser already has a dashboard session) issues the right token; the refresh token then persists for 14 days.
OpenCode V1 loads its plugins when it starts: quit OpenCode and start it again. On OpenCode V2, run opencode service restart: its background service keeps running after you quit OpenCode, and it does not load a plugin written while it runs. Then run vibedefend status to confirm it is wired.
OpenCode doesn’t open your browser on its own to sign in to an MCP server. Run opencode mcp auth cybedefend once: your browser opens on the CybeDefend sign-in page. If OpenCode reports again that the server needs authentication, run the command again. vibedefend install runs it for you when the opencode command is V1 and isn’t signed in to CybeDefend yet. It never runs it on V2, which doesn’t use V1’s sign-in: after moving from V1, sign in again. If V2 answers MCP server not found right after an install, run opencode service restart, then the command again.
Decline the “automatic background updates” prompt at install (or it’s disabled automatically when VibeDefend can’t self-resolve a global install). You then get a one-line nudge when a new version ships and update on your own schedule with vibedefend update.
Fully supported — no Git Bash or WSL required. The hook runner is a single bundled Node script that runs the same way on Linux, macOS and Windows.One exception: Antigravity’s hooks aren’t wired when your Windows home folder path contains a space.

Cybe MCP, connect every AI agent

The manual setup and the full reference for the 18 MCP tools VibeDefend wires up for you.

Cybe MCP, feature overview

The product-level pitch and where the MCP layer sits in the platform.

Cybe Security Champion

The agent behind the business-logic rules VibeDefend injects before each edit.

Cybe AutoFix

The fix-generation pipeline the agent can drive once it’s connected.