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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClineConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/ClineConfigGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ClineConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/ClineConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7E,qBAAa,oBAAqB,SAAQ,mBAAmB;IAC3D,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,26 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cline Configuration Generator
|
|
3
|
+
* Generates MCP configuration for Cline AI assistant.
|
|
4
|
+
*
|
|
5
|
+
* Updated 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* Standardized to npx-based stdio MCP transport. Cline supports MCP natively.
|
|
7
|
+
* Skills: agents-standard, installed via code-audit install --agent agents.
|
|
8
|
+
*
|
|
9
|
+
* Fixed 2026-07-20 (Task #17 — generator path audit):
|
|
10
|
+
* Cline MCP config path is .cline/mcp.json (NOT .cline/mcp-config.json).
|
|
11
|
+
* For CLI: ~/.cline/mcp.json. For VS Code extension: configured via UI.
|
|
12
|
+
* Verified against: docs.cline.bot/mcp/mcp-overview (2026-07-20).
|
|
13
|
+
*/
|
|
1
14
|
import { BaseConfigGenerator } from './BaseConfigGenerator.js';
|
|
2
|
-
import { resolve } from 'path';
|
|
3
15
|
export class ClineConfigGenerator extends BaseConfigGenerator {
|
|
4
|
-
getToolName() {
|
|
5
|
-
|
|
16
|
+
getToolName() {
|
|
17
|
+
return 'Cline';
|
|
18
|
+
}
|
|
19
|
+
getFilename() {
|
|
20
|
+
return '.cline/mcp.json';
|
|
21
|
+
}
|
|
6
22
|
generateConfig() {
|
|
7
23
|
const config = {
|
|
8
24
|
mcpServers: {
|
|
9
|
-
'code-
|
|
10
|
-
command: '
|
|
11
|
-
args: [
|
|
12
|
-
}
|
|
13
|
-
}
|
|
25
|
+
'code-auditor': {
|
|
26
|
+
command: 'npx',
|
|
27
|
+
args: ['-y', 'code-auditor-mcp', '--mcp-mode'],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
14
30
|
};
|
|
15
31
|
return {
|
|
16
32
|
filename: this.getFilename(),
|
|
17
33
|
content: this.formatJson(config),
|
|
18
|
-
instructions:
|
|
34
|
+
instructions: this.getInstructions(),
|
|
19
35
|
};
|
|
20
36
|
}
|
|
21
37
|
getInstructions() {
|
|
22
|
-
return
|
|
38
|
+
return `
|
|
39
|
+
Cline MCP Configuration Instructions:
|
|
40
|
+
|
|
41
|
+
1. Place this file at .cline/mcp.json in your project root
|
|
42
|
+
(User-level: ~/.cline/mcp.json. VS Code extension: use MCP Servers UI)
|
|
43
|
+
2. Restart Cline
|
|
44
|
+
3. The code-auditor MCP tools will be available
|
|
45
|
+
|
|
46
|
+
Reference: https://docs.cline.bot/mcp/mcp-overview
|
|
47
|
+
|
|
48
|
+
Skill install (separate step):
|
|
49
|
+
code-audit install --agent agents --scope project
|
|
50
|
+
|
|
51
|
+
Note: Cline supports SKILL.md via the agents standard.
|
|
52
|
+
For blocking hooks, use Claude Code or Codex.
|
|
53
|
+
`;
|
|
54
|
+
}
|
|
55
|
+
requiresAuth() {
|
|
56
|
+
return false;
|
|
23
57
|
}
|
|
24
|
-
requiresAuth() { return false; }
|
|
25
58
|
}
|
|
26
59
|
//# sourceMappingURL=ClineConfigGenerator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClineConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/ClineConfigGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAgB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ClineConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/ClineConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,mBAAmB,EAAgB,MAAM,0BAA0B,CAAC;AAE7E,MAAM,OAAO,oBAAqB,SAAQ,mBAAmB;IAC3D,WAAW;QACT,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,WAAW;QACT,OAAO,iBAAiB,CAAC;IAC3B,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"}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Codeium / Windsurf Configuration Generator
|
|
3
|
+
* Generates MCP configuration for Codeium/Windsurf.
|
|
4
|
+
*
|
|
5
|
+
* Updated 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* Windsurf now supports native MCP. Replaced fictional /api/codeium/*
|
|
7
|
+
* endpoints with standard stdio MCP transport.
|
|
8
|
+
* Skills: agents-standard, installed via code-audit install --agent agents.
|
|
9
|
+
*
|
|
10
|
+
* Fixed 2026-07-20 (Task #17 — generator path audit):
|
|
11
|
+
* Windsurf (now part of Devin) MCP config is at
|
|
12
|
+
* ~/.codeium/windsurf/mcp_config.json (NOT .windsurf/mcp.json).
|
|
13
|
+
* Verified against: docs.devin.ai/desktop/cascade/mcp (2026-07-20).
|
|
14
|
+
*/
|
|
1
15
|
import { BaseConfigGenerator, ConfigOutput } from './BaseConfigGenerator.js';
|
|
2
16
|
export declare class CodeiumConfigGenerator extends BaseConfigGenerator {
|
|
3
17
|
getToolName(): string;
|
|
4
18
|
getFilename(): string;
|
|
5
19
|
generateConfig(): ConfigOutput;
|
|
6
20
|
getInstructions(): string;
|
|
21
|
+
requiresAuth(): boolean;
|
|
7
22
|
}
|
|
8
23
|
//# sourceMappingURL=CodeiumConfigGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeiumConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/CodeiumConfigGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7E,qBAAa,sBAAuB,SAAQ,mBAAmB;IAC7D,WAAW,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"CodeiumConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/CodeiumConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7E,qBAAa,sBAAuB,SAAQ,mBAAmB;IAC7D,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,30 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Codeium / Windsurf Configuration Generator
|
|
3
|
+
* Generates MCP configuration for Codeium/Windsurf.
|
|
4
|
+
*
|
|
5
|
+
* Updated 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* Windsurf now supports native MCP. Replaced fictional /api/codeium/*
|
|
7
|
+
* endpoints with standard stdio MCP transport.
|
|
8
|
+
* Skills: agents-standard, installed via code-audit install --agent agents.
|
|
9
|
+
*
|
|
10
|
+
* Fixed 2026-07-20 (Task #17 — generator path audit):
|
|
11
|
+
* Windsurf (now part of Devin) MCP config is at
|
|
12
|
+
* ~/.codeium/windsurf/mcp_config.json (NOT .windsurf/mcp.json).
|
|
13
|
+
* Verified against: docs.devin.ai/desktop/cascade/mcp (2026-07-20).
|
|
14
|
+
*/
|
|
1
15
|
import { BaseConfigGenerator } from './BaseConfigGenerator.js';
|
|
2
16
|
export class CodeiumConfigGenerator extends BaseConfigGenerator {
|
|
3
|
-
getToolName() {
|
|
4
|
-
|
|
17
|
+
getToolName() {
|
|
18
|
+
return 'Codeium/Windsurf';
|
|
19
|
+
}
|
|
20
|
+
getFilename() {
|
|
21
|
+
return '~/.codeium/windsurf/mcp_config.json';
|
|
22
|
+
}
|
|
5
23
|
generateConfig() {
|
|
6
24
|
const config = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
enabled: true,
|
|
13
|
-
endpoint: `${this.serverUrl}/api/codeium/index`
|
|
25
|
+
mcpServers: {
|
|
26
|
+
'code-auditor': {
|
|
27
|
+
command: 'npx',
|
|
28
|
+
args: ['-y', 'code-auditor-mcp', '--mcp-mode'],
|
|
29
|
+
},
|
|
14
30
|
},
|
|
15
|
-
search: {
|
|
16
|
-
enabled: true,
|
|
17
|
-
endpoint: `${this.serverUrl}/api/codeium/search`
|
|
18
|
-
}
|
|
19
31
|
};
|
|
20
32
|
return {
|
|
21
33
|
filename: this.getFilename(),
|
|
22
34
|
content: this.formatJson(config),
|
|
23
|
-
instructions:
|
|
35
|
+
instructions: this.getInstructions(),
|
|
24
36
|
};
|
|
25
37
|
}
|
|
26
38
|
getInstructions() {
|
|
27
|
-
return
|
|
39
|
+
return `
|
|
40
|
+
Codeium/Windsurf MCP Configuration Instructions:
|
|
41
|
+
|
|
42
|
+
1. Place this file at ~/.codeium/windsurf/mcp_config.json
|
|
43
|
+
(create the directory if it doesn't exist: mkdir -p ~/.codeium/windsurf)
|
|
44
|
+
2. Restart Windsurf
|
|
45
|
+
3. The code-auditor MCP tools will be available
|
|
46
|
+
|
|
47
|
+
Reference: https://docs.devin.ai/desktop/cascade/mcp
|
|
48
|
+
|
|
49
|
+
Skill install (separate step):
|
|
50
|
+
code-audit install --agent agents --scope project
|
|
51
|
+
|
|
52
|
+
Note: Codeium/Windsurf supports SKILL.md via the agents standard.
|
|
53
|
+
For blocking hooks, use Claude Code or Codex.
|
|
54
|
+
`;
|
|
55
|
+
}
|
|
56
|
+
requiresAuth() {
|
|
57
|
+
return false;
|
|
28
58
|
}
|
|
29
59
|
}
|
|
30
60
|
//# sourceMappingURL=CodeiumConfigGenerator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeiumConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/CodeiumConfigGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAgB,MAAM,0BAA0B,CAAC;AAE7E,MAAM,OAAO,sBAAuB,SAAQ,mBAAmB;IAC7D,WAAW,
|
|
1
|
+
{"version":3,"file":"CodeiumConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/CodeiumConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,mBAAmB,EAAgB,MAAM,0BAA0B,CAAC;AAE7E,MAAM,OAAO,sBAAuB,SAAQ,mBAAmB;IAC7D,WAAW;QACT,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAED,WAAW;QACT,OAAO,qCAAqC,CAAC;IAC/C,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,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Codex Configuration Generator
|
|
3
|
+
* Generates MCP configuration for OpenAI Codex CLI.
|
|
4
|
+
*
|
|
5
|
+
* Updated 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* New generator for Codex CLI. Codex supports MCP via .codex/mcp.json.
|
|
7
|
+
* Skills: agents-standard (.codex/skills/), installed via code-audit install.
|
|
8
|
+
* Hooks: blocking (PostToolUse, exit 2 replaces tool result with feedback).
|
|
9
|
+
* Phase 0 verified: Codex PostToolUse contract matches Claude Code's closely.
|
|
10
|
+
*
|
|
11
|
+
* Fixed 2026-07-20 (Task #17 — generator path audit):
|
|
12
|
+
* Codex MCP uses TOML at ~/.codex/config.toml (NOT .codex/mcp.json).
|
|
13
|
+
* Format: [mcp_servers.code-auditor] with command + args keys.
|
|
14
|
+
* Verified against: learn.chatgpt.com/docs/extend/mcp?surface=cli (2026-07-20).
|
|
15
|
+
*/
|
|
16
|
+
import { BaseConfigGenerator, ConfigOutput } from './BaseConfigGenerator.js';
|
|
17
|
+
export declare class CodexConfigGenerator extends BaseConfigGenerator {
|
|
18
|
+
getToolName(): string;
|
|
19
|
+
getFilename(): string;
|
|
20
|
+
generateConfig(): ConfigOutput;
|
|
21
|
+
/**
|
|
22
|
+
* Format MCP server entries as TOML [mcp_servers.<name>] sections.
|
|
23
|
+
* Codex uses TOML, not JSON, for its config file.
|
|
24
|
+
*/
|
|
25
|
+
private formatTomlMcpServers;
|
|
26
|
+
getInstructions(): string;
|
|
27
|
+
requiresAuth(): boolean;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=CodexConfigGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodexConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/CodexConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7E,qBAAa,oBAAqB,SAAQ,mBAAmB;IAC3D,WAAW,IAAI,MAAM,CAEpB;IAED,WAAW,IAAI,MAAM,CAEpB;IAED,cAAc,IAAI,YAAY,CAe7B;IAED;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAc5B,eAAe,IAAI,MAAM,CAsBxB;IAED,YAAY,IAAI,OAAO,CAEtB;CACF"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Codex Configuration Generator
|
|
3
|
+
* Generates MCP configuration for OpenAI Codex CLI.
|
|
4
|
+
*
|
|
5
|
+
* Updated 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* New generator for Codex CLI. Codex supports MCP via .codex/mcp.json.
|
|
7
|
+
* Skills: agents-standard (.codex/skills/), installed via code-audit install.
|
|
8
|
+
* Hooks: blocking (PostToolUse, exit 2 replaces tool result with feedback).
|
|
9
|
+
* Phase 0 verified: Codex PostToolUse contract matches Claude Code's closely.
|
|
10
|
+
*
|
|
11
|
+
* Fixed 2026-07-20 (Task #17 — generator path audit):
|
|
12
|
+
* Codex MCP uses TOML at ~/.codex/config.toml (NOT .codex/mcp.json).
|
|
13
|
+
* Format: [mcp_servers.code-auditor] with command + args keys.
|
|
14
|
+
* Verified against: learn.chatgpt.com/docs/extend/mcp?surface=cli (2026-07-20).
|
|
15
|
+
*/
|
|
16
|
+
import { BaseConfigGenerator } from './BaseConfigGenerator.js';
|
|
17
|
+
export class CodexConfigGenerator extends BaseConfigGenerator {
|
|
18
|
+
getToolName() {
|
|
19
|
+
return 'Codex CLI';
|
|
20
|
+
}
|
|
21
|
+
getFilename() {
|
|
22
|
+
return '~/.codex/config.toml';
|
|
23
|
+
}
|
|
24
|
+
generateConfig() {
|
|
25
|
+
const mcpSection = {
|
|
26
|
+
'code-auditor': {
|
|
27
|
+
command: 'npx',
|
|
28
|
+
args: ['-y', 'code-auditor-mcp', '--mcp-mode'],
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
const content = this.formatTomlMcpServers(mcpSection);
|
|
32
|
+
return {
|
|
33
|
+
filename: this.getFilename(),
|
|
34
|
+
content,
|
|
35
|
+
instructions: this.getInstructions(),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Format MCP server entries as TOML [mcp_servers.<name>] sections.
|
|
40
|
+
* Codex uses TOML, not JSON, for its config file.
|
|
41
|
+
*/
|
|
42
|
+
formatTomlMcpServers(servers) {
|
|
43
|
+
let toml = '# Codex MCP Configuration\n';
|
|
44
|
+
toml += '# Add this to your ~/.codex/config.toml file\n\n';
|
|
45
|
+
for (const [name, server] of Object.entries(servers)) {
|
|
46
|
+
toml += `[mcp_servers.${name}]\n`;
|
|
47
|
+
toml += `command = "${server.command}"\n`;
|
|
48
|
+
toml += `args = [${server.args.map(a => `"${a}"`).join(', ')}]\n`;
|
|
49
|
+
toml += '\n';
|
|
50
|
+
}
|
|
51
|
+
return toml.trimEnd() + '\n';
|
|
52
|
+
}
|
|
53
|
+
getInstructions() {
|
|
54
|
+
return `
|
|
55
|
+
Codex CLI MCP Configuration Instructions:
|
|
56
|
+
|
|
57
|
+
1. Copy the [mcp_servers.code-auditor] section into ~/.codex/config.toml
|
|
58
|
+
(create the file if it doesn't exist)
|
|
59
|
+
2. Restart your Codex session
|
|
60
|
+
3. The code-auditor MCP tools will be available
|
|
61
|
+
|
|
62
|
+
Format reference:
|
|
63
|
+
https://learn.chatgpt.com/docs/extend/mcp?surface=cli
|
|
64
|
+
|
|
65
|
+
Skill install (separate step):
|
|
66
|
+
code-audit install --agent codex --scope project
|
|
67
|
+
|
|
68
|
+
Hook wiring (separate step):
|
|
69
|
+
code-audit install --agent codex --hooks
|
|
70
|
+
|
|
71
|
+
Note: Codex has blocking PostToolUse hooks (exit 2 replaces tool result
|
|
72
|
+
with violation feedback). This provides the same protection level as
|
|
73
|
+
Claude Code.
|
|
74
|
+
`;
|
|
75
|
+
}
|
|
76
|
+
requiresAuth() {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=CodexConfigGenerator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodexConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/CodexConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAgB,MAAM,0BAA0B,CAAC;AAE7E,MAAM,OAAO,oBAAqB,SAAQ,mBAAmB;IAC3D,WAAW;QACT,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,WAAW;QACT,OAAO,sBAAsB,CAAC;IAChC,CAAC;IAED,cAAc;QACZ,MAAM,UAAU,GAAG;YACjB,cAAc,EAAE;gBACd,OAAO,EAAE,KAAK;gBACd,IAAI,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,YAAY,CAAC;aAC/C;SACF,CAAC;QAEF,MAAM,OAAO,GAAG,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QAEtD,OAAO;YACL,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;YAC5B,OAAO;YACP,YAAY,EAAE,IAAI,CAAC,eAAe,EAAE;SACrC,CAAC;IACJ,CAAC;IAED;;;OAGG;IACK,oBAAoB,CAAC,OAA4D;QACvF,IAAI,IAAI,GAAG,6BAA6B,CAAC;QACzC,IAAI,IAAI,kDAAkD,CAAC;QAE3D,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YACrD,IAAI,IAAI,gBAAgB,IAAI,KAAK,CAAC;YAClC,IAAI,IAAI,cAAc,MAAM,CAAC,OAAO,KAAK,CAAC;YAC1C,IAAI,IAAI,WAAW,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;YAClE,IAAI,IAAI,IAAI,CAAC;QACf,CAAC;QAED,OAAO,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC;IAC/B,CAAC;IAED,eAAe;QACb,OAAO;;;;;;;;;;;;;;;;;;;;CAoBV,CAAC;IACA,CAAC;IAED,YAAY;QACV,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Configuration Generator Factory
|
|
3
|
-
* Creates appropriate config generators for each AI tool
|
|
3
|
+
* Creates appropriate config generators for each AI tool.
|
|
4
|
+
*
|
|
5
|
+
* Updated 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* Added Codex and Gemini generators. All generators now use standard
|
|
7
|
+
* npx-based stdio MCP transport. Removed fictional /api/* endpoints.
|
|
8
|
+
*
|
|
9
|
+
* Updated 2026-07-20 (Task #18 — generator path audit):
|
|
10
|
+
* Retired AiderConfigGenerator (zero MCP docs). Updated Continue generator
|
|
11
|
+
* from .continue/mcp.json to .continue/config.yaml (verified against
|
|
12
|
+
* docs.continue.dev). Confirmed AWS Q .amazonq/mcp.json as valid legacy path.
|
|
4
13
|
*/
|
|
5
14
|
import { BaseConfigGenerator } from './BaseConfigGenerator.js';
|
|
6
15
|
export declare class ConfigGeneratorFactory {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigGeneratorFactory.d.ts","sourceRoot":"","sources":["../../src/generators/ConfigGeneratorFactory.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ConfigGeneratorFactory.d.ts","sourceRoot":"","sources":["../../src/generators/ConfigGeneratorFactory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAe/D,qBAAa,sBAAsB;IACjC,OAAO,CAAC,UAAU,CAAyC;IAC3D,OAAO,CAAC,SAAS,CAAS;IAE1B,YAAY,SAAS,GAAE,MAA2B,EAgBjD;IAED;;OAEG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,IAAI,CAGxD;IAED;;OAEG;IACH,iBAAiB,IAAI,MAAM,EAAE,CAE5B;IAED;;OAEG;IACH,gBAAgB,IAAI,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAMnD;IAED;;OAEG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErC;IAED;;OAEG;IACH,WAAW,IAAI,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,OAAO,CAAA;KAAE,CAAC,CASjF;CACF"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Configuration Generator Factory
|
|
3
|
-
* Creates appropriate config generators for each AI tool
|
|
3
|
+
* Creates appropriate config generators for each AI tool.
|
|
4
|
+
*
|
|
5
|
+
* Updated 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* Added Codex and Gemini generators. All generators now use standard
|
|
7
|
+
* npx-based stdio MCP transport. Removed fictional /api/* endpoints.
|
|
8
|
+
*
|
|
9
|
+
* Updated 2026-07-20 (Task #18 — generator path audit):
|
|
10
|
+
* Retired AiderConfigGenerator (zero MCP docs). Updated Continue generator
|
|
11
|
+
* from .continue/mcp.json to .continue/config.yaml (verified against
|
|
12
|
+
* docs.continue.dev). Confirmed AWS Q .amazonq/mcp.json as valid legacy path.
|
|
4
13
|
*/
|
|
5
14
|
import { DEFAULT_SERVER_URL } from '../constants.js';
|
|
6
15
|
import { CursorConfigGenerator } from './CursorConfigGenerator.js';
|
|
@@ -10,25 +19,30 @@ import { ClaudeConfigGenerator } from './ClaudeConfigGenerator.js';
|
|
|
10
19
|
import { AWSQConfigGenerator } from './AWSQConfigGenerator.js';
|
|
11
20
|
import { CodeiumConfigGenerator } from './CodeiumConfigGenerator.js';
|
|
12
21
|
import { VSCodeConfigGenerator } from './VSCodeConfigGenerator.js';
|
|
13
|
-
|
|
22
|
+
// JetBrainsConfigGenerator retired 2026-07-20: JetBrains MCP is configured
|
|
23
|
+
// through the IDE's settings UI, not a file-based path. No generator to write.
|
|
14
24
|
import { ClineConfigGenerator } from './ClineConfigGenerator.js';
|
|
15
|
-
|
|
25
|
+
// AiderConfigGenerator retired 2026-07-20: no MCP support documented
|
|
26
|
+
import { CodexConfigGenerator } from './CodexConfigGenerator.js';
|
|
27
|
+
import { GeminiConfigGenerator } from './GeminiConfigGenerator.js';
|
|
16
28
|
export class ConfigGeneratorFactory {
|
|
17
29
|
generators;
|
|
18
30
|
serverUrl;
|
|
19
31
|
constructor(serverUrl = DEFAULT_SERVER_URL) {
|
|
20
32
|
this.serverUrl = serverUrl;
|
|
21
33
|
this.generators = new Map([
|
|
34
|
+
['claude', () => new ClaudeConfigGenerator(this.serverUrl)],
|
|
35
|
+
['codex', () => new CodexConfigGenerator(this.serverUrl)],
|
|
22
36
|
['cursor', () => new CursorConfigGenerator(this.serverUrl)],
|
|
23
|
-
['
|
|
37
|
+
['gemini', () => new GeminiConfigGenerator(this.serverUrl)],
|
|
24
38
|
['copilot', () => new CopilotConfigGenerator(this.serverUrl)],
|
|
25
|
-
['
|
|
39
|
+
['continue', () => new ContinueConfigGenerator(this.serverUrl)],
|
|
26
40
|
['awsq', () => new AWSQConfigGenerator(this.serverUrl)],
|
|
27
41
|
['codeium', () => new CodeiumConfigGenerator(this.serverUrl)],
|
|
28
42
|
['vscode', () => new VSCodeConfigGenerator(this.serverUrl)],
|
|
29
|
-
|
|
43
|
+
// JetBrains retired 2026-07-20: no file-based MCP config path
|
|
30
44
|
['cline', () => new ClineConfigGenerator(this.serverUrl)],
|
|
31
|
-
|
|
45
|
+
// Aider retired 2026-07-20: no MCP support documented in aider.chat/docs/
|
|
32
46
|
]);
|
|
33
47
|
}
|
|
34
48
|
/**
|
|
@@ -69,7 +83,7 @@ export class ConfigGeneratorFactory {
|
|
|
69
83
|
return {
|
|
70
84
|
name: tool,
|
|
71
85
|
displayName: generator.getToolName(),
|
|
72
|
-
requiresAuth: generator.requiresAuth()
|
|
86
|
+
requiresAuth: generator.requiresAuth(),
|
|
73
87
|
};
|
|
74
88
|
});
|
|
75
89
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigGeneratorFactory.js","sourceRoot":"","sources":["../../src/generators/ConfigGeneratorFactory.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ConfigGeneratorFactory.js","sourceRoot":"","sources":["../../src/generators/ConfigGeneratorFactory.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Continue Configuration Generator
|
|
3
|
-
* Generates configuration for Continue AI assistant
|
|
3
|
+
* Generates MCP configuration for Continue AI assistant.
|
|
4
|
+
*
|
|
5
|
+
* Updated 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* Removed fictional /api/continue endpoint. Retained proper MCP stdio
|
|
7
|
+
* transport. Continue has native MCP support via modelContextProtocolServers.
|
|
8
|
+
* Skills: agents-standard, installed via code-audit install --agent agents.
|
|
9
|
+
*
|
|
10
|
+
* ✅ VERIFIED (2026-07-20):
|
|
11
|
+
* Source: docs.continue.dev/customize/mcp-tools + docs.continue.dev/reference
|
|
12
|
+
* Continue uses config.yaml (NOT a standalone mcp.json). MCP servers are
|
|
13
|
+
* configured at the top-level mcpServers key in config.yaml — the old
|
|
14
|
+
* experimental.modelContextProtocolServers key in JSON is deprecated.
|
|
15
|
+
* Continue has migrated from .continue/config.json to .continue/config.yaml
|
|
16
|
+
* (YAML is now the only format). This generator emits a YAML snippet for
|
|
17
|
+
* .continue/config.yaml — users merge it into their existing config.yaml.
|
|
4
18
|
*/
|
|
5
19
|
import { BaseConfigGenerator, ConfigOutput } from './BaseConfigGenerator.js';
|
|
6
20
|
export declare class ContinueConfigGenerator extends BaseConfigGenerator {
|
|
@@ -8,5 +22,6 @@ export declare class ContinueConfigGenerator extends BaseConfigGenerator {
|
|
|
8
22
|
getFilename(): string;
|
|
9
23
|
generateConfig(): ConfigOutput;
|
|
10
24
|
getInstructions(): string;
|
|
25
|
+
requiresAuth(): boolean;
|
|
11
26
|
}
|
|
12
27
|
//# sourceMappingURL=ContinueConfigGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContinueConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/ContinueConfigGenerator.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ContinueConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/ContinueConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7E,qBAAa,uBAAwB,SAAQ,mBAAmB;IAC9D,WAAW,IAAI,MAAM,CAEpB;IAED,WAAW,IAAI,MAAM,CAEpB;IAED,cAAc,IAAI,YAAY,CAiB7B;IAED,eAAe,IAAI,MAAM,CAkBxB;IAED,YAAY,IAAI,OAAO,CAEtB;CACF"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Continue Configuration Generator
|
|
3
|
-
* Generates configuration for Continue AI assistant
|
|
3
|
+
* Generates MCP configuration for Continue AI assistant.
|
|
4
|
+
*
|
|
5
|
+
* Updated 2026-07-19 (Spec-16 R5.3):
|
|
6
|
+
* Removed fictional /api/continue endpoint. Retained proper MCP stdio
|
|
7
|
+
* transport. Continue has native MCP support via modelContextProtocolServers.
|
|
8
|
+
* Skills: agents-standard, installed via code-audit install --agent agents.
|
|
9
|
+
*
|
|
10
|
+
* ✅ VERIFIED (2026-07-20):
|
|
11
|
+
* Source: docs.continue.dev/customize/mcp-tools + docs.continue.dev/reference
|
|
12
|
+
* Continue uses config.yaml (NOT a standalone mcp.json). MCP servers are
|
|
13
|
+
* configured at the top-level mcpServers key in config.yaml — the old
|
|
14
|
+
* experimental.modelContextProtocolServers key in JSON is deprecated.
|
|
15
|
+
* Continue has migrated from .continue/config.json to .continue/config.yaml
|
|
16
|
+
* (YAML is now the only format). This generator emits a YAML snippet for
|
|
17
|
+
* .continue/config.yaml — users merge it into their existing config.yaml.
|
|
4
18
|
*/
|
|
5
19
|
import { BaseConfigGenerator } from './BaseConfigGenerator.js';
|
|
6
|
-
import { resolve } from 'path';
|
|
7
20
|
export class ContinueConfigGenerator extends BaseConfigGenerator {
|
|
8
21
|
getToolName() {
|
|
9
22
|
return 'Continue';
|
|
@@ -12,88 +25,43 @@ export class ContinueConfigGenerator extends BaseConfigGenerator {
|
|
|
12
25
|
return '.continue/config.yaml';
|
|
13
26
|
}
|
|
14
27
|
generateConfig() {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
roles: ['chat', 'apply', 'edit'],
|
|
26
|
-
capabilities: ['tool_use']
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
experimental: {
|
|
30
|
-
modelContextProtocolServers: {
|
|
31
|
-
codeIndex: {
|
|
32
|
-
transport: {
|
|
33
|
-
type: 'stdio',
|
|
34
|
-
command: 'node',
|
|
35
|
-
args: [resolve(process.cwd(), 'dist/mcp.js'), '--mcp-mode']
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
codeIndexRemote: {
|
|
39
|
-
transport: {
|
|
40
|
-
type: 'http',
|
|
41
|
-
url: `${this.serverUrl}/mcp`,
|
|
42
|
-
headers: {
|
|
43
|
-
Authorization: `Bearer ${this.getDefaultApiKey()}`
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
contextProviders: [
|
|
50
|
-
{
|
|
51
|
-
name: 'codebase',
|
|
52
|
-
type: 'mcp',
|
|
53
|
-
server: 'codeIndex'
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
slashCommands: [
|
|
57
|
-
{
|
|
58
|
-
name: 'search',
|
|
59
|
-
description: 'Search codebase',
|
|
60
|
-
handler: 'mcp:codeIndex:search_functions'
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: 'definition',
|
|
64
|
-
description: 'Find definition',
|
|
65
|
-
handler: 'mcp:codeIndex:find_definition'
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: 'index',
|
|
69
|
-
description: 'Index files',
|
|
70
|
-
handler: 'mcp:codeIndex:index_functions'
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
};
|
|
28
|
+
const content = `# Add this to your .continue/config.yaml under the mcpServers key.
|
|
29
|
+
# If you already have an mcpServers section, merge the code-auditor entry.
|
|
30
|
+
mcpServers:
|
|
31
|
+
code-auditor:
|
|
32
|
+
command: npx
|
|
33
|
+
args:
|
|
34
|
+
- "-y"
|
|
35
|
+
- "code-auditor-mcp"
|
|
36
|
+
- "--mcp-mode"
|
|
37
|
+
`;
|
|
74
38
|
return {
|
|
75
39
|
filename: this.getFilename(),
|
|
76
|
-
content
|
|
77
|
-
instructions: this.getInstructions()
|
|
40
|
+
content,
|
|
41
|
+
instructions: this.getInstructions(),
|
|
78
42
|
};
|
|
79
43
|
}
|
|
80
44
|
getInstructions() {
|
|
81
45
|
return `
|
|
82
|
-
Continue Configuration Instructions:
|
|
46
|
+
Continue MCP Configuration Instructions:
|
|
83
47
|
|
|
84
48
|
1. Install Continue extension in VS Code or JetBrains
|
|
85
|
-
2.
|
|
86
|
-
|
|
87
|
-
|
|
49
|
+
2. Merge the code-auditor entry into your .continue/config.yaml file
|
|
50
|
+
under the mcpServers key (project-level) or ~/.continue/config.yaml
|
|
51
|
+
(global). Do NOT add an experimental wrapper — mcpServers is a
|
|
52
|
+
top-level key.
|
|
53
|
+
3. Restart your IDE (or reload the Continue extension)
|
|
54
|
+
4. The code-auditor MCP tools will be available
|
|
88
55
|
|
|
89
|
-
|
|
90
|
-
-
|
|
91
|
-
- Use /search to search functions
|
|
92
|
-
- Use /definition to find definitions
|
|
93
|
-
- Use /index to index new files
|
|
56
|
+
Skill install (separate step):
|
|
57
|
+
code-audit install --agent agents --scope project
|
|
94
58
|
|
|
95
|
-
Continue has native MCP support
|
|
59
|
+
Note: Continue has native MCP support since config.yaml migration.
|
|
60
|
+
For blocking hooks, use Claude Code or Codex.
|
|
96
61
|
`;
|
|
97
62
|
}
|
|
63
|
+
requiresAuth() {
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
98
66
|
}
|
|
99
67
|
//# sourceMappingURL=ContinueConfigGenerator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContinueConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/ContinueConfigGenerator.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ContinueConfigGenerator.js","sourceRoot":"","sources":["../../src/generators/ContinueConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,mBAAmB,EAAgB,MAAM,0BAA0B,CAAC;AAE7E,MAAM,OAAO,uBAAwB,SAAQ,mBAAmB;IAC9D,WAAW;QACT,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,WAAW;QACT,OAAO,uBAAuB,CAAC;IACjC,CAAC;IAED,cAAc;QACZ,MAAM,OAAO,GAAG;;;;;;;;;CASnB,CAAC;QAEE,OAAO;YACL,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;YAC5B,OAAO;YACP,YAAY,EAAE,IAAI,CAAC,eAAe,EAAE;SACrC,CAAC;IACJ,CAAC;IAED,eAAe;QACb,OAAO;;;;;;;;;;;;;;;;CAgBV,CAAC;IACA,CAAC;IAED,YAAY;QACV,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -1,6 +1,16 @@
|
|
|
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, ConfigOutput } from './BaseConfigGenerator.js';
|
|
6
16
|
export declare class CopilotConfigGenerator extends BaseConfigGenerator {
|
|
@@ -8,5 +18,6 @@ export declare class CopilotConfigGenerator extends BaseConfigGenerator {
|
|
|
8
18
|
getFilename(): string;
|
|
9
19
|
generateConfig(): ConfigOutput;
|
|
10
20
|
getInstructions(): string;
|
|
21
|
+
requiresAuth(): boolean;
|
|
11
22
|
}
|
|
12
23
|
//# sourceMappingURL=CopilotConfigGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/CopilotConfigGenerator.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"CopilotConfigGenerator.d.ts","sourceRoot":"","sources":["../../src/generators/CopilotConfigGenerator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7E,qBAAa,sBAAuB,SAAQ,mBAAmB;IAC7D,WAAW,IAAI,MAAM,CAEpB;IAED,WAAW,IAAI,MAAM,CAEpB;IAED,cAAc,IAAI,YAAY,CAe7B;IAED,eAAe,IAAI,MAAM,CAcxB;IAED,YAAY,IAAI,OAAO,CAEtB;CACF"}
|