@vibecheck-ai/mcp 20.0.4 → 23.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +315 -0
  2. package/dist/index.js +3403 -1213
  3. package/package.json +23 -11
  4. package/LICENSE +0 -21
package/README.md ADDED
@@ -0,0 +1,315 @@
1
+ <div align="center">
2
+
3
+ <br />
4
+
5
+ <img src="https://github.com/guardiavault-oss/Vibecheck/raw/HEAD/packages/vscode-extension/images/vibecheck_logo_transparent_2x.png" alt="VibeCheck MCP Server" width="80" />
6
+
7
+ <br />
8
+
9
+ # VibeCheck MCP Server
10
+
11
+ ### Give your AI agent a trust layer.
12
+
13
+ The Model Context Protocol server that lets Cursor, Claude, Windsurf, and any MCP-compatible AI agent scan code for hallucinations, compute trust scores, and gate deployments — using the same 17-engine pipeline as the CLI and VS Code extension.
14
+
15
+ <br />
16
+
17
+ [![npm version](https://img.shields.io/npm/v/@vibecheck-ai/mcp?style=for-the-badge&logo=npm&logoColor=white&color=CB3837)](https://www.npmjs.com/package/@vibecheck-ai/mcp)&nbsp;&nbsp;[![Downloads](https://img.shields.io/npm/dm/@vibecheck-ai/mcp?style=for-the-badge&logo=npm&logoColor=white&color=333)](https://www.npmjs.com/package/@vibecheck-ai/mcp)&nbsp;&nbsp;[![License: MIT](https://img.shields.io/badge/License-MIT-blue?style=for-the-badge)](../../LICENSE)
18
+
19
+ </div>
20
+
21
+ <br />
22
+
23
+ <!-- TODO: Replace with actual GIF showing MCP in Cursor/Claude -->
24
+ <p align="center">
25
+ <img src="https://github.com/guardiavault-oss/Vibecheck/raw/HEAD/docs/assets/mcp-cursor-demo.gif" alt="VibeCheck MCP Server running inside Cursor" width="820" />
26
+ </p>
27
+
28
+ <br />
29
+
30
+ ---
31
+
32
+ <br />
33
+
34
+ ## What is this?
35
+
36
+ The **Model Context Protocol (MCP)** is the open standard that connects AI coding agents to external tools. VibeCheck's MCP server exposes the full scanning, scoring, and guarding pipeline as tools that any MCP-compatible client can call.
37
+
38
+ **Your AI agent writes the code. VibeCheck verifies it didn't hallucinate.**
39
+
40
+ <br />
41
+
42
+ ### How it works
43
+
44
+ ```
45
+ ┌──────────────────┐ stdio / MCP ┌────────────────────┐
46
+ │ Cursor / Claude │ ◄──────────────────► │ VibeCheck MCP │
47
+ │ Windsurf / Cline│ tool calls │ Server │
48
+ │ Any MCP client │ │ │
49
+ └──────────────────┘ │ ┌──────────────┐ │
50
+ │ │ 17 Detection │ │
51
+ │ │ Engines │ │
52
+ │ └──────────────┘ │
53
+ │ ┌──────────────┐ │
54
+ │ │ Trust Score │ │
55
+ │ │ Engine │ │
56
+ │ └──────────────┘ │
57
+ │ ┌──────────────┐ │
58
+ │ │ Context │ │
59
+ │ │ Engine │ │
60
+ │ └──────────────┘ │
61
+ └────────────────────┘
62
+ ```
63
+
64
+ <br />
65
+
66
+ ---
67
+
68
+ <br />
69
+
70
+ ## Quick Start
71
+
72
+ ### Cursor
73
+
74
+ Add to your `.cursor/mcp.json`:
75
+
76
+ ```json
77
+ {
78
+ "mcpServers": {
79
+ "vibecheck": {
80
+ "command": "npx",
81
+ "args": ["-y", "@vibecheck-ai/mcp"]
82
+ }
83
+ }
84
+ }
85
+ ```
86
+
87
+ ### Claude Desktop
88
+
89
+ Add to your `claude_desktop_config.json`:
90
+
91
+ ```json
92
+ {
93
+ "mcpServers": {
94
+ "vibecheck": {
95
+ "command": "npx",
96
+ "args": ["-y", "@vibecheck-ai/mcp"]
97
+ }
98
+ }
99
+ }
100
+ ```
101
+
102
+ ### Windsurf
103
+
104
+ Add to your Windsurf MCP config:
105
+
106
+ ```json
107
+ {
108
+ "mcpServers": {
109
+ "vibecheck": {
110
+ "command": "npx",
111
+ "args": ["-y", "@vibecheck-ai/mcp"]
112
+ }
113
+ }
114
+ }
115
+ ```
116
+
117
+ ### Any MCP Client (stdio)
118
+
119
+ ```bash
120
+ npx @vibecheck-ai/mcp
121
+ ```
122
+
123
+ The server communicates over **stdio** using the MCP protocol. No HTTP. No ports. No config files.
124
+
125
+ <br />
126
+
127
+ <!-- TODO: Replace with actual screenshot of MCP config in Cursor -->
128
+ <p align="center">
129
+ <img src="https://github.com/guardiavault-oss/Vibecheck/raw/HEAD/docs/assets/mcp-setup.png" alt="MCP server configuration in Cursor" width="720" />
130
+ </p>
131
+
132
+ <br />
133
+
134
+ ---
135
+
136
+ <br />
137
+
138
+ ## Tools
139
+
140
+ The server exposes 7 tools that your AI agent can call:
141
+
142
+ ### Core Tools (Free)
143
+
144
+ | Tool | Description |
145
+ |:---|:---|
146
+ | **`vibecheck_scan`** | Scan a file or directory for AI hallucinations and code trust issues. Returns findings with severity, location, and fix suggestions. |
147
+ | **`vibecheck_score`** | Compute a 0–100 trust score with letter grade (A–F) and ship decision (SHIP / REVIEW / NO_SHIP). |
148
+ | **`vibecheck_guard`** | Run a pass/fail gate check. Returns structured pass/fail based on trust score and critical findings. |
149
+ | **`vibecheck_roast`** | Scan and return findings with maximum sass. Same brutal honesty as `vibecheck roast` in the CLI. |
150
+
151
+ ### Context Engine Tools (Paid)
152
+
153
+ | Tool | Description |
154
+ |:---|:---|
155
+ | **`vibecheck_context_proactive`** | Get proactive context for a focused file — file context, graph neighbors, and learned co-edits. |
156
+ | **`vibecheck_context_intent`** | Query the codebase by natural language intent. Returns matching files and symbols. |
157
+ | **`vibecheck_context_evolve`** | Learn from provenance (`edits.jsonl`) and update `learned.json`. Run periodically to improve context quality. |
158
+ | **`vibecheck_context_feedback`** | Record explicit feedback (helpful / not helpful) to improve future context ranking. |
159
+
160
+ <br />
161
+
162
+ ---
163
+
164
+ <br />
165
+
166
+ ## What Your Agent Can Do
167
+
168
+ Once connected, your AI agent can ask VibeCheck to verify its own work:
169
+
170
+ ### Scan before committing
171
+
172
+ > *"Scan this file for hallucinations before I save it."*
173
+
174
+ The agent calls `vibecheck_scan` and gets back every finding with severity, line number, and a suggested fix.
175
+
176
+ ### Gate deployments
177
+
178
+ > *"Check if this project is safe to ship."*
179
+
180
+ The agent calls `vibecheck_guard` and gets a structured SHIP / NO_SHIP verdict with the exact issues blocking deployment.
181
+
182
+ ### Score trust
183
+
184
+ > *"What's the trust score for src/payments/?"*
185
+
186
+ The agent calls `vibecheck_score` and gets a 0–100 score, letter grade, and dimensional breakdown.
187
+
188
+ ### Get roasted
189
+
190
+ > *"Roast this codebase."*
191
+
192
+ The agent calls `vibecheck_roast` for an opinionated, brutally honest assessment.
193
+
194
+ <br />
195
+
196
+ <!-- TODO: Replace with actual screenshot of agent using vibecheck_scan -->
197
+ <p align="center">
198
+ <img src="https://github.com/guardiavault-oss/Vibecheck/raw/HEAD/docs/assets/mcp-agent-scan.png" alt="AI agent using vibecheck_scan tool" width="720" />
199
+ </p>
200
+
201
+ <br />
202
+
203
+ ---
204
+
205
+ <br />
206
+
207
+ ## 17 Detection Engines
208
+
209
+ The same engines that power the CLI and VS Code extension:
210
+
211
+ | # | Engine | What it catches |
212
+ |:---:|:---|:---|
213
+ | 1 | **Ghost Routes** | API calls to endpoints that were never implemented |
214
+ | 2 | **Dead UI** | Buttons, forms, and links wired to empty handlers |
215
+ | 3 | **Phantom Imports** | Packages referenced but never installed |
216
+ | 4 | **Silent Failures** | Try/catch blocks that swallow errors |
217
+ | 5 | **Hardcoded Mocks** | Test data left in production paths |
218
+ | 6 | **Credential Leaks** | API keys, tokens, secrets in source |
219
+ | 7 | **Env Drift** | Missing `.env` variable references |
220
+ | 8 | **Auth Gaps** | Nonexistent auth providers |
221
+ | 9 | **Type Holes** | `@ts-ignore`, `any` casts hiding bugs |
222
+ | 10 | **Console Pollution** | Debug logs in production bundles |
223
+ | 11 | **Version Hallucinations** | Wrong API for installed version |
224
+ | 12 | **Slopsquatting** | Typosquat package names |
225
+ | 13 | **Architectural Drift** | Structural pattern violations |
226
+ | 14 | **Dependency Vulnerabilities** | Known CVEs |
227
+ | 15 | **Performance Anti-patterns** | Sync I/O in async paths |
228
+ | 16 | **Accessibility Violations** | Missing ARIA, keyboard traps |
229
+ | 17 | **Contract Drift** | Code diverged from spec |
230
+
231
+ <br />
232
+
233
+ ---
234
+
235
+ <br />
236
+
237
+ ## Plan-Gated Access
238
+
239
+ Core scanning tools are **free forever**. Context Engine tools require a paid plan.
240
+
241
+ | Tool | Free | Vibecoder | Developer | Engineer |
242
+ |:---|:---:|:---:|:---:|:---:|
243
+ | `vibecheck_scan` | ✓ | ✓ | ✓ | ✓ |
244
+ | `vibecheck_score` | ✓ | ✓ | ✓ | ✓ |
245
+ | `vibecheck_guard` | ✓ | ✓ | ✓ | ✓ |
246
+ | `vibecheck_roast` | ✓ | ✓ | ✓ | ✓ |
247
+ | `vibecheck_context_*` | | | ✓ | ✓ |
248
+
249
+ When a tool is gated, the server returns a clear error message with upgrade instructions — your agent can surface this to the user.
250
+
251
+ <br />
252
+
253
+ ---
254
+
255
+ <br />
256
+
257
+ ## Production Hardening
258
+
259
+ The MCP server includes enterprise-grade reliability features:
260
+
261
+ - **Input validation** — All tool arguments are validated before execution
262
+ - **Rate limiting** — Prevents runaway agents from overwhelming the scanner
263
+ - **Circuit breaker** — Automatic recovery from transient failures
264
+ - **Health monitoring** — Built-in health check endpoint
265
+ - **Observability** — Structured logging for debugging and monitoring
266
+ - **Error sanitization** — Sensitive paths and data are never leaked in error messages
267
+
268
+ <br />
269
+
270
+ ---
271
+
272
+ <br />
273
+
274
+ ## Available on 4 Surfaces
275
+
276
+ | Surface | Install | Use case |
277
+ |:---|:---|:---|
278
+ | **MCP Server** (you are here) | `npx @vibecheck-ai/mcp` | AI agent integration (Cursor, Claude, etc.) |
279
+ | **CLI** | `npm i -g @vibecheck-ai/cli` | CI/CD pipelines, terminal workflows, scripting |
280
+ | **VS Code Extension** | [Marketplace](https://marketplace.visualstudio.com/items?itemName=Vibecheck-AI.vibecheck-AI) | Interactive scanning, sidebar dashboard, inline fixes |
281
+ | **GitHub Action** | `vibecheck-ai/action@v2` | Pull request verification, deployment gating |
282
+
283
+ <br />
284
+
285
+ ---
286
+
287
+ <br />
288
+
289
+ ## Privacy & Security
290
+
291
+ - All scanning runs **locally on your machine**
292
+ - **Zero code is transmitted** — ever
293
+ - The MCP server communicates via **stdio only** — no network ports opened
294
+ - Works **fully offline** and in air-gapped environments
295
+ - [Open source](https://github.com/guardiavault-oss/Vibecheck) — read every line
296
+
297
+ <br />
298
+
299
+ ---
300
+
301
+ <br />
302
+
303
+ <div align="center">
304
+
305
+ ### Build with AI. Ship with proof.
306
+
307
+ <br />
308
+
309
+ [Website](https://vibecheckai.dev) &nbsp;&nbsp;·&nbsp;&nbsp; [Documentation](https://docs.vibecheckai.dev) &nbsp;&nbsp;·&nbsp;&nbsp; [Discord](https://discord.gg/vibecheck) &nbsp;&nbsp;·&nbsp;&nbsp; [GitHub](https://github.com/guardiavault-oss/Vibecheck)
310
+
311
+ <br />
312
+
313
+ <sub>MIT License &nbsp;·&nbsp; Copyright 2024–2026 VibeCheck AI</sub>
314
+
315
+ </div>