code-auditor-mcp 3.0.5 → 3.0.7
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/.claude-plugin/marketplace.json +1 -1
- package/README.md +31 -1
- package/dist/cli.js +416 -111
- package/dist/cli.js.map +1 -1
- package/dist/generators/AWSQConfigGenerator.d.ts +20 -0
- package/dist/generators/AWSQConfigGenerator.d.ts.map +1 -1
- package/dist/generators/AWSQConfigGenerator.js +48 -19
- package/dist/generators/AWSQConfigGenerator.js.map +1 -1
- package/dist/generators/AiderConfigGenerator.d.ts +18 -0
- package/dist/generators/AiderConfigGenerator.d.ts.map +1 -1
- package/dist/generators/AiderConfigGenerator.js +48 -10
- package/dist/generators/AiderConfigGenerator.js.map +1 -1
- package/dist/generators/ClaudeConfigGenerator.d.ts +9 -3
- package/dist/generators/ClaudeConfigGenerator.d.ts.map +1 -1
- package/dist/generators/ClaudeConfigGenerator.js +30 -42
- package/dist/generators/ClaudeConfigGenerator.js.map +1 -1
- package/dist/generators/ClineConfigGenerator.d.ts +13 -0
- package/dist/generators/ClineConfigGenerator.d.ts.map +1 -1
- package/dist/generators/ClineConfigGenerator.js +44 -11
- package/dist/generators/ClineConfigGenerator.js.map +1 -1
- package/dist/generators/CodeiumConfigGenerator.d.ts +15 -0
- package/dist/generators/CodeiumConfigGenerator.d.ts.map +1 -1
- package/dist/generators/CodeiumConfigGenerator.js +45 -15
- package/dist/generators/CodeiumConfigGenerator.js.map +1 -1
- package/dist/generators/CodexConfigGenerator.d.ts +29 -0
- package/dist/generators/CodexConfigGenerator.d.ts.map +1 -0
- package/dist/generators/CodexConfigGenerator.js +80 -0
- package/dist/generators/CodexConfigGenerator.js.map +1 -0
- package/dist/generators/ConfigGeneratorFactory.d.ts +10 -1
- package/dist/generators/ConfigGeneratorFactory.d.ts.map +1 -1
- package/dist/generators/ConfigGeneratorFactory.js +22 -8
- package/dist/generators/ConfigGeneratorFactory.js.map +1 -1
- package/dist/generators/ContinueConfigGenerator.d.ts +16 -1
- package/dist/generators/ContinueConfigGenerator.d.ts.map +1 -1
- package/dist/generators/ContinueConfigGenerator.js +41 -73
- package/dist/generators/ContinueConfigGenerator.js.map +1 -1
- package/dist/generators/CopilotConfigGenerator.d.ts +13 -2
- package/dist/generators/CopilotConfigGenerator.d.ts.map +1 -1
- package/dist/generators/CopilotConfigGenerator.js +31 -51
- package/dist/generators/CopilotConfigGenerator.js.map +1 -1
- package/dist/generators/CursorConfigGenerator.d.ts +8 -1
- package/dist/generators/CursorConfigGenerator.d.ts.map +1 -1
- package/dist/generators/CursorConfigGenerator.js +27 -51
- package/dist/generators/CursorConfigGenerator.js.map +1 -1
- package/dist/generators/GeminiConfigGenerator.d.ts +23 -0
- package/dist/generators/GeminiConfigGenerator.d.ts.map +1 -0
- package/dist/generators/GeminiConfigGenerator.js +59 -0
- package/dist/generators/GeminiConfigGenerator.js.map +1 -0
- package/dist/generators/JetBrainsConfigGenerator.d.ts +11 -0
- package/dist/generators/JetBrainsConfigGenerator.d.ts.map +1 -1
- package/dist/generators/JetBrainsConfigGenerator.js +39 -21
- package/dist/generators/JetBrainsConfigGenerator.js.map +1 -1
- package/dist/generators/VSCodeConfigGenerator.d.ts +14 -0
- package/dist/generators/VSCodeConfigGenerator.d.ts.map +1 -1
- package/dist/generators/VSCodeConfigGenerator.js +43 -15
- package/dist/generators/VSCodeConfigGenerator.js.map +1 -1
- package/dist/hooks/codex.d.ts +20 -0
- package/dist/hooks/codex.d.ts.map +1 -0
- package/dist/hooks/codex.js +91 -0
- package/dist/hooks/codex.js.map +1 -0
- package/dist/hooks/core.d.ts +62 -0
- package/dist/hooks/core.d.ts.map +1 -0
- package/dist/hooks/core.js +119 -0
- package/dist/hooks/core.js.map +1 -0
- package/dist/hooks/cursor.d.ts +72 -0
- package/dist/hooks/cursor.d.ts.map +1 -0
- package/dist/hooks/cursor.js +163 -0
- package/dist/hooks/cursor.js.map +1 -0
- package/dist/installer.d.ts +30 -0
- package/dist/installer.d.ts.map +1 -0
- package/dist/installer.js +355 -0
- package/dist/installer.js.map +1 -0
- package/dist/mcp-tools/whitelistTools.d.ts +1 -1
- package/package.json +3 -2
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/skills/code-auditor/SKILL.md +13 -5
|
@@ -1,77 +1,57 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* GitHub Copilot Configuration Generator
|
|
3
|
-
* Generates configuration for GitHub Copilot
|
|
2
|
+
* GitHub Copilot / VS Code Configuration Generator
|
|
3
|
+
* Generates MCP configuration for GitHub Copilot in VS Code.
|
|
4
|
+
*
|
|
5
|
+
* Updated 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* Copilot now supports native MCP via VS Code. Replaced fictional
|
|
7
|
+
* /api/copilot/* endpoints with standard stdio MCP transport.
|
|
8
|
+
* Skills: agents-standard (.agents/skills/), installed via code-audit install.
|
|
9
|
+
* Hooks: none.
|
|
10
|
+
*
|
|
11
|
+
* ✅ VERIFIED (2026-07-20):
|
|
12
|
+
* .vscode/mcp.json confirmed against code.visualstudio.com/docs/agents/reference/mcp-configuration.
|
|
13
|
+
* Both workspace (.vscode/mcp.json) and user profile mcp.json are supported.
|
|
4
14
|
*/
|
|
5
15
|
import { BaseConfigGenerator } from './BaseConfigGenerator.js';
|
|
6
16
|
export class CopilotConfigGenerator extends BaseConfigGenerator {
|
|
7
17
|
getToolName() {
|
|
8
|
-
return 'GitHub Copilot';
|
|
18
|
+
return 'GitHub Copilot / VS Code';
|
|
9
19
|
}
|
|
10
20
|
getFilename() {
|
|
11
|
-
return '.vscode/
|
|
21
|
+
return '.vscode/mcp.json';
|
|
12
22
|
}
|
|
13
23
|
generateConfig() {
|
|
14
24
|
const config = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
apiKey: this.getDefaultApiKey(),
|
|
21
|
-
model: 'code-index-v1',
|
|
22
|
-
provider: 'custom'
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
+
mcpServers: {
|
|
26
|
+
'code-auditor': {
|
|
27
|
+
command: 'npx',
|
|
28
|
+
args: ['-y', 'code-auditor-mcp', '--mcp-mode'],
|
|
29
|
+
},
|
|
25
30
|
},
|
|
26
|
-
'github.copilot.chat.customProviders': [
|
|
27
|
-
{
|
|
28
|
-
id: 'code-index-provider',
|
|
29
|
-
name: 'Code Index',
|
|
30
|
-
description: 'Local code index search',
|
|
31
|
-
endpoint: `${this.serverUrl}/api/copilot/chat`,
|
|
32
|
-
features: ['search', 'explain', 'fix']
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
31
|
};
|
|
36
|
-
const proxyConfig = {
|
|
37
|
-
start_command: `npx copilot-api@latest start --backend ${this.serverUrl}/api/copilot --port 8181`,
|
|
38
|
-
api_endpoint: 'http://localhost:8181',
|
|
39
|
-
models: ['code-index']
|
|
40
|
-
};
|
|
41
|
-
const additionalFiles = [
|
|
42
|
-
{
|
|
43
|
-
filename: 'copilot-proxy.json',
|
|
44
|
-
content: this.formatJson(proxyConfig)
|
|
45
|
-
}
|
|
46
|
-
];
|
|
47
32
|
return {
|
|
48
33
|
filename: this.getFilename(),
|
|
49
34
|
content: this.formatJson(config),
|
|
50
|
-
|
|
51
|
-
instructions: this.getInstructions()
|
|
35
|
+
instructions: this.getInstructions(),
|
|
52
36
|
};
|
|
53
37
|
}
|
|
54
38
|
getInstructions() {
|
|
55
39
|
return `
|
|
56
|
-
GitHub Copilot Configuration Instructions:
|
|
40
|
+
GitHub Copilot / VS Code MCP Configuration Instructions:
|
|
57
41
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
3. Click "Manage Models"
|
|
62
|
-
4. Add custom provider with URL: ${this.serverUrl}/api/copilot
|
|
63
|
-
5. Use API key: ${this.getDefaultApiKey()}
|
|
42
|
+
1. Place this file at .vscode/mcp.json in your project root (or merge into existing)
|
|
43
|
+
2. Install the "MCP" extension for VS Code if not already installed
|
|
44
|
+
3. Reload VS Code window
|
|
64
45
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
2. Configure your IDE to use http://localhost:8181
|
|
68
|
-
3. The proxy will handle API translation
|
|
46
|
+
Skill install (separate step):
|
|
47
|
+
code-audit install --agent agents --scope project
|
|
69
48
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
- Chat integration with @code-index
|
|
73
|
-
- Explain and fix suggestions based on your codebase
|
|
49
|
+
Note: Copilot/VS Code has no edit hooks. Use MCP tools interactively for
|
|
50
|
+
auditing. For blocking hooks, use Claude Code or Codex.
|
|
74
51
|
`;
|
|
75
52
|
}
|
|
53
|
+
requiresAuth() {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
76
56
|
}
|
|
77
57
|
//# sourceMappingURL=CopilotConfigGenerator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/CopilotConfigGenerator.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"CopilotConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/CopilotConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,mBAAmB,EAAgB,MAAM,0BAA0B,CAAC;AAE7E,MAAM,OAAO,sBAAuB,SAAQ,mBAAmB;IAC7D,WAAW;QACT,OAAO,0BAA0B,CAAC;IACpC,CAAC;IAED,WAAW;QACT,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAED,cAAc;QACZ,MAAM,MAAM,GAAG;YACb,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,OAAO,EAAE,KAAK;oBACd,IAAI,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,YAAY,CAAC;iBAC/C;aACF;SACF,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;YAC5B,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAChC,YAAY,EAAE,IAAI,CAAC,eAAe,EAAE;SACrC,CAAC;IACJ,CAAC;IAED,eAAe;QACb,OAAO;;;;;;;;;;;;CAYV,CAAC;IACA,CAAC;IAED,YAAY;QACV,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Cursor Configuration Generator
|
|
3
|
-
* Generates configuration for Cursor AI editor
|
|
3
|
+
* Generates MCP configuration for Cursor AI editor.
|
|
4
|
+
*
|
|
5
|
+
* Updated 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* Cursor now supports native MCP. Replaced fictional /api/cursor/* endpoints
|
|
7
|
+
* with standard stdio + HTTP MCP transports.
|
|
8
|
+
* Skills: project-only (.cursor/skills/), installed via code-audit install.
|
|
9
|
+
* Hooks: advisory (afterFileEdit is fire-and-forget).
|
|
4
10
|
*/
|
|
5
11
|
import { BaseConfigGenerator, ConfigOutput } from './BaseConfigGenerator.js';
|
|
6
12
|
export declare class CursorConfigGenerator extends BaseConfigGenerator {
|
|
@@ -8,5 +14,6 @@ export declare class CursorConfigGenerator extends BaseConfigGenerator {
|
|
|
8
14
|
getFilename(): string;
|
|
9
15
|
generateConfig(): ConfigOutput;
|
|
10
16
|
getInstructions(): string;
|
|
17
|
+
requiresAuth(): boolean;
|
|
11
18
|
}
|
|
12
19
|
//# sourceMappingURL=CursorConfigGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CursorConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/CursorConfigGenerator.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"CursorConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/CursorConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7E,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC5D,WAAW,IAAI,MAAM,CAEpB;IAED,WAAW,IAAI,MAAM,CAEpB;IAED,cAAc,IAAI,YAAY,CAe7B;IAED,eAAe,IAAI,MAAM,CAiBxB;IAED,YAAY,IAAI,OAAO,CAEtB;CACF"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Cursor Configuration Generator
|
|
3
|
-
* Generates configuration for Cursor AI editor
|
|
3
|
+
* Generates MCP configuration for Cursor AI editor.
|
|
4
|
+
*
|
|
5
|
+
* Updated 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* Cursor now supports native MCP. Replaced fictional /api/cursor/* endpoints
|
|
7
|
+
* with standard stdio + HTTP MCP transports.
|
|
8
|
+
* Skills: project-only (.cursor/skills/), installed via code-audit install.
|
|
9
|
+
* Hooks: advisory (afterFileEdit is fire-and-forget).
|
|
4
10
|
*/
|
|
5
11
|
import { BaseConfigGenerator } from './BaseConfigGenerator.js';
|
|
6
12
|
export class CursorConfigGenerator extends BaseConfigGenerator {
|
|
@@ -8,73 +14,43 @@ export class CursorConfigGenerator extends BaseConfigGenerator {
|
|
|
8
14
|
return 'Cursor';
|
|
9
15
|
}
|
|
10
16
|
getFilename() {
|
|
11
|
-
return 'cursor
|
|
17
|
+
return '.cursor/mcp.json';
|
|
12
18
|
}
|
|
13
19
|
generateConfig() {
|
|
14
20
|
const config = {
|
|
15
|
-
|
|
16
|
-
{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
model: 'code-index-search',
|
|
20
|
-
apiBase: `${this.serverUrl}/api/cursor`,
|
|
21
|
-
apiKey: this.getDefaultApiKey(),
|
|
22
|
-
contextWindow: 128000,
|
|
23
|
-
capabilities: {
|
|
24
|
-
codeCompletion: true,
|
|
25
|
-
chat: true,
|
|
26
|
-
search: true
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
features: {
|
|
31
|
-
codebaseIndexing: {
|
|
32
|
-
enabled: true,
|
|
33
|
-
endpoint: `${this.serverUrl}/api/cursor/index`
|
|
21
|
+
mcpServers: {
|
|
22
|
+
'code-auditor': {
|
|
23
|
+
command: 'npx',
|
|
24
|
+
args: ['-y', 'code-auditor-mcp', '--mcp-mode'],
|
|
34
25
|
},
|
|
35
|
-
semanticSearch: {
|
|
36
|
-
enabled: true,
|
|
37
|
-
endpoint: `${this.serverUrl}/api/cursor/search`
|
|
38
|
-
}
|
|
39
26
|
},
|
|
40
|
-
customCommands: [
|
|
41
|
-
{
|
|
42
|
-
name: 'search-symbol',
|
|
43
|
-
description: 'Search for a symbol in the codebase',
|
|
44
|
-
endpoint: `${this.serverUrl}/api/cursor/symbol`
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: 'find-definition',
|
|
48
|
-
description: 'Find symbol definition',
|
|
49
|
-
endpoint: `${this.serverUrl}/api/cursor/definition`
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
27
|
};
|
|
53
28
|
return {
|
|
54
29
|
filename: this.getFilename(),
|
|
55
30
|
content: this.formatJson(config),
|
|
56
|
-
instructions: this.getInstructions()
|
|
31
|
+
instructions: this.getInstructions(),
|
|
57
32
|
};
|
|
58
33
|
}
|
|
59
34
|
getInstructions() {
|
|
60
35
|
return `
|
|
61
|
-
Cursor Configuration Instructions:
|
|
36
|
+
Cursor MCP Configuration Instructions:
|
|
37
|
+
|
|
38
|
+
1. Place this file at .cursor/mcp.json in your project root
|
|
39
|
+
2. Restart Cursor
|
|
40
|
+
3. The code-auditor MCP tools will be available
|
|
62
41
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
3. Add a new model with "Override OpenAI Base URL"
|
|
66
|
-
4. Set base URL to: ${this.serverUrl}/api/cursor
|
|
67
|
-
5. Use API key: ${this.getDefaultApiKey()}
|
|
42
|
+
Skill install (separate step):
|
|
43
|
+
code-audit install --agent cursor --scope project
|
|
68
44
|
|
|
69
|
-
|
|
70
|
-
-
|
|
71
|
-
|
|
45
|
+
Note: Cursor skills are project-only. The afterFileEdit hook is advisory
|
|
46
|
+
(fire-and-forget, cannot block edits retroactively). Use Cursor's MCP
|
|
47
|
+
integration for interactive auditing.
|
|
72
48
|
|
|
73
|
-
|
|
74
|
-
- Chat interface (@codebase)
|
|
75
|
-
- Command palette (search-symbol, find-definition)
|
|
76
|
-
- Inline completions
|
|
49
|
+
For blocking hooks, use Claude Code or Codex.
|
|
77
50
|
`;
|
|
78
51
|
}
|
|
52
|
+
requiresAuth() {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
79
55
|
}
|
|
80
56
|
//# sourceMappingURL=CursorConfigGenerator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CursorConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/CursorConfigGenerator.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"CursorConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/CursorConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,mBAAmB,EAAgB,MAAM,0BAA0B,CAAC;AAG7E,MAAM,OAAO,qBAAsB,SAAQ,mBAAmB;IAC5D,WAAW;QACT,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,WAAW;QACT,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAED,cAAc;QACZ,MAAM,MAAM,GAAG;YACb,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,OAAO,EAAE,KAAK;oBACd,IAAI,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,YAAY,CAAC;iBAC/C;aACF;SACF,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;YAC5B,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAChC,YAAY,EAAE,IAAI,CAAC,eAAe,EAAE;SACrC,CAAC;IACJ,CAAC;IAED,eAAe;QACb,OAAO;;;;;;;;;;;;;;;CAeV,CAAC;IACA,CAAC;IAED,YAAY;QACV,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gemini CLI Configuration Generator
|
|
3
|
+
* Generates MCP configuration for Google Gemini CLI.
|
|
4
|
+
*
|
|
5
|
+
* Added 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* New generator for Gemini CLI. Gemini supports MCP via .gemini/mcp.json.
|
|
7
|
+
* Skills: agents-standard (.gemini/skills/), installed via code-audit install.
|
|
8
|
+
* Hooks: none (Gemini CLI has no edit hooks as of 2026-07-19).
|
|
9
|
+
*
|
|
10
|
+
* Fixed 2026-07-20 (Task #17 — generator path audit):
|
|
11
|
+
* Gemini MCP config is at .gemini/settings.json (NOT .gemini/mcp.json).
|
|
12
|
+
* Format uses "mcpServers" key. Also configurable via "gemini mcp add" CLI.
|
|
13
|
+
* Verified against: github.com/google-gemini/gemini-cli (2026-07-20).
|
|
14
|
+
*/
|
|
15
|
+
import { BaseConfigGenerator, ConfigOutput } from './BaseConfigGenerator.js';
|
|
16
|
+
export declare class GeminiConfigGenerator extends BaseConfigGenerator {
|
|
17
|
+
getToolName(): string;
|
|
18
|
+
getFilename(): string;
|
|
19
|
+
generateConfig(): ConfigOutput;
|
|
20
|
+
getInstructions(): string;
|
|
21
|
+
requiresAuth(): boolean;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=GeminiConfigGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeminiConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/GeminiConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7E,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC5D,WAAW,IAAI,MAAM,CAEpB;IAED,WAAW,IAAI,MAAM,CAEpB;IAED,cAAc,IAAI,YAAY,CAe7B;IAED,eAAe,IAAI,MAAM,CAgBxB;IAED,YAAY,IAAI,OAAO,CAEtB;CACF"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gemini CLI Configuration Generator
|
|
3
|
+
* Generates MCP configuration for Google Gemini CLI.
|
|
4
|
+
*
|
|
5
|
+
* Added 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* New generator for Gemini CLI. Gemini supports MCP via .gemini/mcp.json.
|
|
7
|
+
* Skills: agents-standard (.gemini/skills/), installed via code-audit install.
|
|
8
|
+
* Hooks: none (Gemini CLI has no edit hooks as of 2026-07-19).
|
|
9
|
+
*
|
|
10
|
+
* Fixed 2026-07-20 (Task #17 — generator path audit):
|
|
11
|
+
* Gemini MCP config is at .gemini/settings.json (NOT .gemini/mcp.json).
|
|
12
|
+
* Format uses "mcpServers" key. Also configurable via "gemini mcp add" CLI.
|
|
13
|
+
* Verified against: github.com/google-gemini/gemini-cli (2026-07-20).
|
|
14
|
+
*/
|
|
15
|
+
import { BaseConfigGenerator } from './BaseConfigGenerator.js';
|
|
16
|
+
export class GeminiConfigGenerator extends BaseConfigGenerator {
|
|
17
|
+
getToolName() {
|
|
18
|
+
return 'Gemini CLI';
|
|
19
|
+
}
|
|
20
|
+
getFilename() {
|
|
21
|
+
return '.gemini/settings.json';
|
|
22
|
+
}
|
|
23
|
+
generateConfig() {
|
|
24
|
+
const config = {
|
|
25
|
+
mcpServers: {
|
|
26
|
+
'code-auditor': {
|
|
27
|
+
command: 'npx',
|
|
28
|
+
args: ['-y', 'code-auditor-mcp', '--mcp-mode'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
return {
|
|
33
|
+
filename: this.getFilename(),
|
|
34
|
+
content: this.formatJson(config),
|
|
35
|
+
instructions: this.getInstructions(),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
getInstructions() {
|
|
39
|
+
return `
|
|
40
|
+
Gemini CLI MCP Configuration Instructions:
|
|
41
|
+
|
|
42
|
+
1. Place this file at .gemini/settings.json in your project root
|
|
43
|
+
(or merge the "mcpServers" key into your existing settings.json)
|
|
44
|
+
2. Alternatively, use the CLI: gemini mcp add code-auditor -- npx -y code-auditor-mcp --mcp-mode
|
|
45
|
+
3. Restart your Gemini CLI session
|
|
46
|
+
4. The code-auditor MCP tools will be available
|
|
47
|
+
|
|
48
|
+
Skill install (separate step):
|
|
49
|
+
code-audit install --agent gemini --scope project
|
|
50
|
+
|
|
51
|
+
Note: Gemini CLI has no edit hooks as of 2026-07-20. Use MCP tools
|
|
52
|
+
interactively for auditing. For blocking hooks, use Claude Code or Codex.
|
|
53
|
+
`;
|
|
54
|
+
}
|
|
55
|
+
requiresAuth() {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=GeminiConfigGenerator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeminiConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/GeminiConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,mBAAmB,EAAgB,MAAM,0BAA0B,CAAC;AAE7E,MAAM,OAAO,qBAAsB,SAAQ,mBAAmB;IAC5D,WAAW;QACT,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,WAAW;QACT,OAAO,uBAAuB,CAAC;IACjC,CAAC;IAED,cAAc;QACZ,MAAM,MAAM,GAAG;YACb,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,OAAO,EAAE,KAAK;oBACd,IAAI,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,YAAY,CAAC;iBAC/C;aACF;SACF,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;YAC5B,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAChC,YAAY,EAAE,IAAI,CAAC,eAAe,EAAE;SACrC,CAAC;IACJ,CAAC;IAED,eAAe;QACb,OAAO;;;;;;;;;;;;;;CAcV,CAAC;IACA,CAAC;IAED,YAAY;QACV,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JetBrains IDEs Configuration Generator — RETIRED
|
|
3
|
+
*
|
|
4
|
+
* Originally added Spec-16 R5.3 with path .idea/mcp.json.
|
|
5
|
+
*
|
|
6
|
+
* Retired 2026-07-20 (Task #17 — generator path audit):
|
|
7
|
+
* JetBrains MCP is configured through the IDE's Settings UI (MCP plugin),
|
|
8
|
+
* not a file-based path. No generator to write. This file is kept as a
|
|
9
|
+
* tombstone; the class is no longer registered in ConfigGeneratorFactory.
|
|
10
|
+
*/
|
|
1
11
|
import { BaseConfigGenerator, ConfigOutput } from './BaseConfigGenerator.js';
|
|
2
12
|
export declare class JetBrainsConfigGenerator extends BaseConfigGenerator {
|
|
3
13
|
getToolName(): string;
|
|
4
14
|
getFilename(): string;
|
|
5
15
|
generateConfig(): ConfigOutput;
|
|
6
16
|
getInstructions(): string;
|
|
17
|
+
requiresAuth(): boolean;
|
|
7
18
|
}
|
|
8
19
|
//# sourceMappingURL=JetBrainsConfigGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JetBrainsConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/JetBrainsConfigGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"JetBrainsConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/JetBrainsConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7E,qBAAa,wBAAyB,SAAQ,mBAAmB;IAC/D,WAAW,IAAI,MAAM,CAEpB;IAED,WAAW,IAAI,MAAM,CAEpB;IAED,cAAc,IAAI,YAAY,CAe7B;IAED,eAAe,IAAI,MAAM,CAexB;IAED,YAAY,IAAI,OAAO,CAEtB;CACF"}
|
|
@@ -1,36 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JetBrains IDEs Configuration Generator — RETIRED
|
|
3
|
+
*
|
|
4
|
+
* Originally added Spec-16 R5.3 with path .idea/mcp.json.
|
|
5
|
+
*
|
|
6
|
+
* Retired 2026-07-20 (Task #17 — generator path audit):
|
|
7
|
+
* JetBrains MCP is configured through the IDE's Settings UI (MCP plugin),
|
|
8
|
+
* not a file-based path. No generator to write. This file is kept as a
|
|
9
|
+
* tombstone; the class is no longer registered in ConfigGeneratorFactory.
|
|
10
|
+
*/
|
|
1
11
|
import { BaseConfigGenerator } from './BaseConfigGenerator.js';
|
|
2
|
-
import { resolve } from 'path';
|
|
3
12
|
export class JetBrainsConfigGenerator extends BaseConfigGenerator {
|
|
4
|
-
getToolName() {
|
|
5
|
-
|
|
13
|
+
getToolName() {
|
|
14
|
+
return 'JetBrains IDEs';
|
|
15
|
+
}
|
|
16
|
+
getFilename() {
|
|
17
|
+
return '.idea/mcp.json';
|
|
18
|
+
}
|
|
6
19
|
generateConfig() {
|
|
7
20
|
const config = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
workingDirectory: process.cwd(),
|
|
14
|
-
environment: { MCP_SERVER_URL: this.serverUrl }
|
|
15
|
-
}]
|
|
21
|
+
mcpServers: {
|
|
22
|
+
'code-auditor': {
|
|
23
|
+
command: 'npx',
|
|
24
|
+
args: ['-y', 'code-auditor-mcp', '--mcp-mode'],
|
|
25
|
+
},
|
|
16
26
|
},
|
|
17
|
-
ai: {
|
|
18
|
-
customProviders: [{
|
|
19
|
-
id: 'code-index',
|
|
20
|
-
name: 'Code Index',
|
|
21
|
-
endpoint: `${this.serverUrl}/api/jetbrains`,
|
|
22
|
-
apiKey: this.getDefaultApiKey()
|
|
23
|
-
}]
|
|
24
|
-
}
|
|
25
27
|
};
|
|
26
28
|
return {
|
|
27
29
|
filename: this.getFilename(),
|
|
28
30
|
content: this.formatJson(config),
|
|
29
|
-
instructions:
|
|
31
|
+
instructions: this.getInstructions(),
|
|
30
32
|
};
|
|
31
33
|
}
|
|
32
34
|
getInstructions() {
|
|
33
|
-
return
|
|
35
|
+
return `
|
|
36
|
+
JetBrains IDEs MCP Configuration Instructions:
|
|
37
|
+
|
|
38
|
+
1. Install the "MCP" plugin for JetBrains IDEs
|
|
39
|
+
2. Place this file at .idea/mcp.json in your project root
|
|
40
|
+
3. Restart your IDE
|
|
41
|
+
4. The code-auditor MCP tools will be available
|
|
42
|
+
|
|
43
|
+
Skill install (separate step):
|
|
44
|
+
code-audit install --agent agents --scope project
|
|
45
|
+
|
|
46
|
+
Note: JetBrains IDEs support SKILL.md via the agents standard.
|
|
47
|
+
For blocking hooks, use Claude Code or Codex.
|
|
48
|
+
`;
|
|
49
|
+
}
|
|
50
|
+
requiresAuth() {
|
|
51
|
+
return false;
|
|
34
52
|
}
|
|
35
53
|
}
|
|
36
54
|
//# sourceMappingURL=JetBrainsConfigGenerator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JetBrainsConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/JetBrainsConfigGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAgB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"JetBrainsConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/JetBrainsConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,mBAAmB,EAAgB,MAAM,0BAA0B,CAAC;AAE7E,MAAM,OAAO,wBAAyB,SAAQ,mBAAmB;IAC/D,WAAW;QACT,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,WAAW;QACT,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,cAAc;QACZ,MAAM,MAAM,GAAG;YACb,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,OAAO,EAAE,KAAK;oBACd,IAAI,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,YAAY,CAAC;iBAC/C;aACF;SACF,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;YAC5B,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAChC,YAAY,EAAE,IAAI,CAAC,eAAe,EAAE;SACrC,CAAC;IACJ,CAAC;IAED,eAAe;QACb,OAAO;;;;;;;;;;;;;CAaV,CAAC;IACA,CAAC;IAED,YAAY;QACV,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -1,8 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VS Code MCP Configuration Generator
|
|
3
|
+
* Generates MCP configuration for VS Code (standalone, without Copilot).
|
|
4
|
+
*
|
|
5
|
+
* Updated 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* Standardized to npx-based stdio MCP transport. Uses the standard
|
|
7
|
+
* mcpServers object format.
|
|
8
|
+
* Skills: agents-standard, installed via code-audit install --agent agents.
|
|
9
|
+
*
|
|
10
|
+
* ✅ VERIFIED (2026-07-20):
|
|
11
|
+
* .vscode/mcp.json confirmed against code.visualstudio.com/docs/agents/reference/mcp-configuration.
|
|
12
|
+
* Also confirmed via VS Code command "MCP: Open Workspace Folder MCP Configuration".
|
|
13
|
+
*/
|
|
1
14
|
import { BaseConfigGenerator, ConfigOutput } from './BaseConfigGenerator.js';
|
|
2
15
|
export declare class VSCodeConfigGenerator extends BaseConfigGenerator {
|
|
3
16
|
getToolName(): string;
|
|
4
17
|
getFilename(): string;
|
|
5
18
|
generateConfig(): ConfigOutput;
|
|
6
19
|
getInstructions(): string;
|
|
20
|
+
requiresAuth(): boolean;
|
|
7
21
|
}
|
|
8
22
|
//# sourceMappingURL=VSCodeConfigGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VSCodeConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/VSCodeConfigGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"VSCodeConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/VSCodeConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7E,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC5D,WAAW,IAAI,MAAM,CAEpB;IAED,WAAW,IAAI,MAAM,CAEpB;IAED,cAAc,IAAI,YAAY,CAe7B;IAED,eAAe,IAAI,MAAM,CAexB;IAED,YAAY,IAAI,OAAO,CAEtB;CACF"}
|
|
@@ -1,29 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VS Code MCP Configuration Generator
|
|
3
|
+
* Generates MCP configuration for VS Code (standalone, without Copilot).
|
|
4
|
+
*
|
|
5
|
+
* Updated 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* Standardized to npx-based stdio MCP transport. Uses the standard
|
|
7
|
+
* mcpServers object format.
|
|
8
|
+
* Skills: agents-standard, installed via code-audit install --agent agents.
|
|
9
|
+
*
|
|
10
|
+
* ✅ VERIFIED (2026-07-20):
|
|
11
|
+
* .vscode/mcp.json confirmed against code.visualstudio.com/docs/agents/reference/mcp-configuration.
|
|
12
|
+
* Also confirmed via VS Code command "MCP: Open Workspace Folder MCP Configuration".
|
|
13
|
+
*/
|
|
1
14
|
import { BaseConfigGenerator } from './BaseConfigGenerator.js';
|
|
2
|
-
import { resolve } from 'path';
|
|
3
15
|
export class VSCodeConfigGenerator extends BaseConfigGenerator {
|
|
4
|
-
getToolName() {
|
|
5
|
-
|
|
16
|
+
getToolName() {
|
|
17
|
+
return 'VS Code MCP';
|
|
18
|
+
}
|
|
19
|
+
getFilename() {
|
|
20
|
+
return '.vscode/mcp.json';
|
|
21
|
+
}
|
|
6
22
|
generateConfig() {
|
|
7
23
|
const config = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
env: { NODE_ENV: 'production' }
|
|
15
|
-
}],
|
|
16
|
-
'mcp.autoStart': true,
|
|
17
|
-
'mcp.showInStatusBar': true
|
|
24
|
+
mcpServers: {
|
|
25
|
+
'code-auditor': {
|
|
26
|
+
command: 'npx',
|
|
27
|
+
args: ['-y', 'code-auditor-mcp', '--mcp-mode'],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
18
30
|
};
|
|
19
31
|
return {
|
|
20
32
|
filename: this.getFilename(),
|
|
21
33
|
content: this.formatJson(config),
|
|
22
|
-
instructions:
|
|
34
|
+
instructions: this.getInstructions(),
|
|
23
35
|
};
|
|
24
36
|
}
|
|
25
37
|
getInstructions() {
|
|
26
|
-
return
|
|
38
|
+
return `
|
|
39
|
+
VS Code MCP Configuration Instructions:
|
|
40
|
+
|
|
41
|
+
1. Install the "MCP" extension for VS Code
|
|
42
|
+
2. Place this file at .vscode/mcp.json in your project root
|
|
43
|
+
3. Reload VS Code window
|
|
44
|
+
4. The code-auditor MCP tools will be available
|
|
45
|
+
|
|
46
|
+
Skill install (separate step):
|
|
47
|
+
code-audit install --agent agents --scope project
|
|
48
|
+
|
|
49
|
+
Note: VS Code/Copilot has no edit hooks. Use MCP tools interactively for
|
|
50
|
+
auditing. For blocking hooks, use Claude Code or Codex.
|
|
51
|
+
`;
|
|
52
|
+
}
|
|
53
|
+
requiresAuth() {
|
|
54
|
+
return false;
|
|
27
55
|
}
|
|
28
56
|
}
|
|
29
57
|
//# sourceMappingURL=VSCodeConfigGenerator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VSCodeConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/VSCodeConfigGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAgB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"VSCodeConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/VSCodeConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,mBAAmB,EAAgB,MAAM,0BAA0B,CAAC;AAE7E,MAAM,OAAO,qBAAsB,SAAQ,mBAAmB;IAC5D,WAAW;QACT,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,WAAW;QACT,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAED,cAAc;QACZ,MAAM,MAAM,GAAG;YACb,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,OAAO,EAAE,KAAK;oBACd,IAAI,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,YAAY,CAAC;iBAC/C;aACF;SACF,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;YAC5B,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAChC,YAAY,EAAE,IAAI,CAAC,eAAe,EAAE;SACrC,CAAC;IACJ,CAAC;IAED,eAAe;QACb,OAAO;;;;;;;;;;;;;CAaV,CAAC;IACA,CAAC;IAED,YAAY;QACV,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Codex hook adapter — `code-audit codex-hook`.
|
|
4
|
+
*
|
|
5
|
+
* Reads Codex's PostToolUse stdin JSON and runs a diff-scoped audit.
|
|
6
|
+
*
|
|
7
|
+
* Phase 0 verification (2026-07-19):
|
|
8
|
+
* - Source: learn.chatgpt.com/docs/hooks
|
|
9
|
+
* - PostToolUse is BLOCKING: exit 2 replaces the tool result with feedback
|
|
10
|
+
* - Matcher in hooks.json: "apply_patch" (Codex's file-editing tool)
|
|
11
|
+
* - stdin shape: { session_id, tool_name, tool_use_id, tool_input, tool_response }
|
|
12
|
+
* - tool_input.file_path contains the edited file
|
|
13
|
+
*
|
|
14
|
+
* Exit codes:
|
|
15
|
+
* 0 — no critical violations found
|
|
16
|
+
* 2 — critical violations found (blocking feedback loop)
|
|
17
|
+
* 1 — internal error (adapter crash, not violation-related)
|
|
18
|
+
*/
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=codex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../src/hooks/codex.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;GAgBG"}
|