vibe-gate-mcp 0.1.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.
- package/.env.example +51 -0
- package/CHANGELOG.md +27 -0
- package/LICENSE +21 -0
- package/README.md +112 -0
- package/dist/index.mjs +3547 -0
- package/docs/INSTALLATION.md +104 -0
- package/docs/SEMANTIC_DIFF_PAYLOAD.md +76 -0
- package/docs/TROUBLESHOOTING.md +62 -0
- package/docs/USAGE.md +125 -0
- package/docs/VIBE-GATE.md +66 -0
- package/docs/project/VARIABLES.md +50 -0
- package/docs/project/api/mcp-tools.md +115 -0
- package/examples/cursor-mcp.project.json +13 -0
- package/examples/cursor-mcp.user-local-dev.json +16 -0
- package/package.json +96 -0
- package/rules.json +42 -0
- package/schemas/rules.schema.json +38 -0
package/package.json
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vibe-gate-mcp",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Adversarial Quality Gate MCP for vibe-coding: IDE AI vs Critic AI, human decides on deadlock",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Mustafa Cagri",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"mcp",
|
|
10
|
+
"vibe-coding",
|
|
11
|
+
"code-review",
|
|
12
|
+
"quality-gate",
|
|
13
|
+
"cursor"
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/mustafacagri/vibe-gate-mcp.git"
|
|
18
|
+
},
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/mustafacagri/vibe-gate-mcp/issues"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/mustafacagri/vibe-gate-mcp#readme",
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=24"
|
|
25
|
+
},
|
|
26
|
+
"bin": "dist/index.mjs",
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"rules.json",
|
|
30
|
+
"schemas",
|
|
31
|
+
"examples",
|
|
32
|
+
".env.example",
|
|
33
|
+
"README.md",
|
|
34
|
+
"CHANGELOG.md",
|
|
35
|
+
"docs/INSTALLATION.md",
|
|
36
|
+
"docs/USAGE.md",
|
|
37
|
+
"docs/SEMANTIC_DIFF_PAYLOAD.md",
|
|
38
|
+
"docs/TROUBLESHOOTING.md",
|
|
39
|
+
"docs/VIBE-GATE.md",
|
|
40
|
+
"docs/project/VARIABLES.md",
|
|
41
|
+
"docs/project/api/mcp-tools.md"
|
|
42
|
+
],
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
|
+
},
|
|
46
|
+
"packageManager": "yarn@4.18.0",
|
|
47
|
+
"scripts": {
|
|
48
|
+
"prepare": "node scripts/prepare-husky.mjs",
|
|
49
|
+
"format": "prettier --write .",
|
|
50
|
+
"format:check": "prettier --check .",
|
|
51
|
+
"lint": "eslint .",
|
|
52
|
+
"lint:fix": "eslint . --fix",
|
|
53
|
+
"typecheck": "tsc --noEmit",
|
|
54
|
+
"start": "node dist/index.mjs",
|
|
55
|
+
"build": "tsdown",
|
|
56
|
+
"prepack": "tsdown",
|
|
57
|
+
"prepublishOnly": "tsc --noEmit && eslint . && vitest run",
|
|
58
|
+
"dev": "tsx src/index.ts",
|
|
59
|
+
"test": "vitest run",
|
|
60
|
+
"test:watch": "vitest",
|
|
61
|
+
"test:tools": "tsx scripts/test-tools.ts",
|
|
62
|
+
"test:integration": "tsx scripts/test-integration.ts",
|
|
63
|
+
"test:mcp": "tsx scripts/test-mcp-real.ts",
|
|
64
|
+
"smoke:semantic-diff-path": "tsx scripts/smoke-semantic-diff-path.ts",
|
|
65
|
+
"smoke:files": "tsx scripts/smoke-files.ts",
|
|
66
|
+
"pack:check": "npm pack --dry-run"
|
|
67
|
+
},
|
|
68
|
+
"lint-staged": {
|
|
69
|
+
"*.{ts,tsx,js,jsx,mjs,json,md,yml,yaml}": "prettier --write",
|
|
70
|
+
"*.{ts,tsx,js,jsx,mjs}": "eslint --fix"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"@anthropic-ai/sdk": "^0.122.0",
|
|
74
|
+
"@google/genai": "^2.19.0",
|
|
75
|
+
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
76
|
+
"dotenv": "^17.4.2",
|
|
77
|
+
"openai": "^7.8.0",
|
|
78
|
+
"zod": "^4.4.3"
|
|
79
|
+
},
|
|
80
|
+
"devDependencies": {
|
|
81
|
+
"@eslint/js": "^10.0.1",
|
|
82
|
+
"@types/node": "^24.13.3",
|
|
83
|
+
"eslint": "^10.9.1",
|
|
84
|
+
"eslint-plugin-sonarjs": "^4.2.0",
|
|
85
|
+
"globals": "^17.11.0",
|
|
86
|
+
"husky": "^9.1.7",
|
|
87
|
+
"lint-staged": "^17.4.1",
|
|
88
|
+
"prettier": "^3.9.6",
|
|
89
|
+
"tsdown": "^0.22.14",
|
|
90
|
+
"tsx": "^4.23.12",
|
|
91
|
+
"typescript": "^5.9.3",
|
|
92
|
+
"typescript-eslint": "^8.68.0",
|
|
93
|
+
"vite": "^8.2.2",
|
|
94
|
+
"vitest": "^4.1.11"
|
|
95
|
+
}
|
|
96
|
+
}
|
package/rules.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./schemas/rules.schema.json",
|
|
3
|
+
"hardRules": [
|
|
4
|
+
{
|
|
5
|
+
"id": "SEC-001",
|
|
6
|
+
"description": "Raw SQL/NoSQL queries with injection risk are forbidden",
|
|
7
|
+
"category": "security"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"id": "SEC-002",
|
|
11
|
+
"description": "API keys, secrets, or credentials must not be hardcoded",
|
|
12
|
+
"category": "security"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"id": "ARCH-001",
|
|
16
|
+
"description": "Framework/state lib must match project blueprint",
|
|
17
|
+
"category": "architecture"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "DATA-001",
|
|
21
|
+
"description": "Transaction/schema changes that break data integrity are forbidden",
|
|
22
|
+
"category": "data-integrity"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"softRules": [
|
|
26
|
+
{
|
|
27
|
+
"id": "STYLE-001",
|
|
28
|
+
"description": "Naming conventions (camelCase, PascalCase, etc.)",
|
|
29
|
+
"category": "style"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "REFACTOR-001",
|
|
33
|
+
"description": "Code duplication (DRY) violations",
|
|
34
|
+
"category": "refactoring"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "PERF-001",
|
|
38
|
+
"description": "Bundle size or runtime performance improvements",
|
|
39
|
+
"category": "performance"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Vibe-Gate Rules",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["hardRules", "softRules"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"hardRules": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": ["id", "description", "category"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": { "type": "string", "pattern": "^[A-Z]+-[0-9]+$" },
|
|
14
|
+
"description": { "type": "string" },
|
|
15
|
+
"category": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": ["security", "architecture", "data-integrity"]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"softRules": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"required": ["id", "description", "category"],
|
|
27
|
+
"properties": {
|
|
28
|
+
"id": { "type": "string", "pattern": "^[A-Z]+-[0-9]+$" },
|
|
29
|
+
"description": { "type": "string" },
|
|
30
|
+
"category": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": ["style", "refactoring", "performance"]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|