
Vibe Gate Mcp
io.github.mustafacagriv0.1.12Updated Oct 7, 2026
Adversarial Quality Gate MCP for vibe-coding: IDE AI vs Critic AI, human decides on deadlock
Overview
Runs an adversarial code review where an IDE agent's changes are critiqued by a second LLM before a human decides on deadlock.
- What it does
- Vibe-Gate is an adversarial quality gate for AI-assisted coding. The IDE agent submits a phase report plus the changed source paths, and a Critic LLM reviews the code and returns verdicts and concerns. A human only intervenes when the two sides deadlock. Reviews can run read-only so the workspace and review state are left untouched.
- When to use it
- Use it when you want a second, independent model to challenge code produced by an AI coding agent before you accept it. It suits teams already working in an AI IDE who want a review step with a human tie-breaker rather than trusting a single agent's output.
- Requirements
- Runs locally over stdio via npx (Node.js). Needs a Critic provider: either a direct API key such as OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY, MINIMAX_API_KEY or OPENCODE_API_KEY, or an already installed and signed-in local CLI such as Codex, Claude Code, Cursor Agent or OpenCode CLI. VIBE_WORKSPACE_ROOT points at the project root.
Installation
In SourceWeft
- Open Vibe Gate Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Vibe-Gate (MCP)
An Adversarial Quality Gate for AI-assisted IDEs: the IDE agent and a Critic LLM debate code; the human decides only on deadlock.
Quick start (npm / npx)
1. Choose a Critic provider
Use a direct API provider with its key, or use a local CLI that is already installed and signed in. Local CLI providers do not need a separate provider API key. If CRITIC_PROVIDER is omitted, Vibe-Gate selects the first installed local CLI in this order: Codex, Claude Code, Cursor Agent, then OpenCode CLI. OpenCode CLI moves to the front when CRITIC_MODEL is in provider/model form. The first review response includes a notice naming the selected CLI. If none is found, OpenAI remains the default and requires OPENAI_API_KEY. Set CRITIC_PROVIDER to choose explicitly.
Copy from the package’s .env.example:
For Cursor Agent, Vibe-Gate runs agent first and falls back to the legacy cursor-agent executable if the primary command is unavailable.
opencode is still the separate Zen/Go HTTP provider and needs OPENCODE_API_KEY. opencode-cli runs the local CLI and requires a provider/model value in CRITIC_MODEL; see the CLI guide for details.
CRITIC_MODEL is passed to the selected provider or CLI without a Vibe-Gate model allowlist; the provider must support that model ID. The OpenAI API provider uses the Responses API. See provider configuration.
See CLI provider setup and alternatives for CLI installation, login, configuration, OpenCode session details, and other candidates we evaluated. Full variable list: docs/project/VARIABLES.md.
2. Configure Cursor MCP (any consumer repo)
Project or user .cursor/mcp.json for Codex CLI (or use the API-key example):
For direct providers, prefer keys in a local .env next to the package or in the consumer project under VIBE_WORKSPACE_ROOT (never commit secrets). MCP env overrides .env. For a CLI provider, install and sign in to that CLI as the same OS user running the MCP server.
3. Call the tool (agents)
Pass changed source paths in files[]. MCP reads the complete files from disk and serializes FILE/CONTENT internally for the Critic. The agent supplies paths and a completion report; it does not need to paste file bodies or generate a corpus. The example uses readOnly: true to keep review state untouched. See docs/SEMANTIC_DIFF_PAYLOAD.md.
Local development (this repo)
User MCP while developing: examples/cursor-mcp.user-local-dev.json (node dist/index.mjs + VIBE_WORKSPACE_ROOT=${workspaceFolder}).
After npm run build, restart the vibe-gate MCP server in the IDE.
Publish
Releases are automatic. Every push to main runs .github/workflows/publish.yml: it runs yarn quality, lets
semantic-release choose the version from the conventional commits (fix: is a patch, feat: a minor), publishes
vibe-gate-mcp to npm with provenance, and lists that version in the
MCP Registry as io.github.mustafacagri/vibe-gate-mcp. No token is
stored: npm and the registry both trust the workflow through GitHub OIDC. server.json is the registry entry and
is kept at the release version by scripts/sync-server-json.mjs.
Consumers then use npx -y vibe-gate-mcp as above.
Payload sources — prefer files[]
Use readOnly: true for probes. updateStatus: false and mcp-smoke- / vibe-gate-probe- phase prefixes only skip phase status writes.
Documentation
Read-only review and full source slot limit
Set readOnly: true on submit_phase_review for a check that must leave the workspace untouched. It overrides updateStatus: true and prevents session clearing/saving, status updates, debt appends, conflict counter updates and deadlock case writes. Verdicts and concern verification still follow the ordinary review rules; deadlock case data is returned without saving it. Existing matching sessions can be read on later rounds, but read-only calls do not save a new round. logToDebt still expresses acceptance of debt when required, without writing the log. The default is false. updateStatus: false alone only disables phase status updates.
Every carrier (files[], inline semanticDiff, raw/JSON semanticDiffPath) is limited to ten actual FILE/CONTENT source blocks, including additional REQUEST: context on later rounds. Duplicate blocks and both rename endpoints count separately, even if their paths or bytes match. An oversized corpus fails before the enlarged Critic request; it is never reduced to the first ten blocks. Requested line ranges are read as complete files, subject to the existing file and aggregate size limits. Markdown, JSON and other document/data endpoints are rejected as source context. Callers positively classify their selected source endpoints; files[] lets MCP supply the full source bodies. For deleted files and old rename endpoints, an orchestrator such as Vibe-Pilot materializes pinned Git base blobs at real snapshot paths before passing those paths to files[]. MCP reads those files from disk; it does not read Git history itself.
Source: README.md at commit f1972cb
Tools
0Version history
1- v0.1.12LatestOct 7, 2026


