Skip to content

Commit 7fb052e

Browse files
committed
- **VSCode Copilot MCP Mirroring**
1 parent f6f9359 commit 7fb052e

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## [Unreleased]
1111

12+
### Added
13+
14+
- **VSCode Copilot MCP Mirroring**
15+
- When Copilot is a configured agent, MCP server configuration is now mirrored to `.vscode/mcp.json` using the VSCode-specific schema (`"servers"` + `"inputs": []`)
16+
- Ensures GitHub Copilot agents in VSCode can discover MCP servers registered via `coldbox ai mcp` commands
17+
- `.vscode/mcp.json` is written alongside the root `.mcp.json` whenever `generateMCPJson()` runs (install, refresh, MCP add/remove)
18+
1219
## [8.11.0] - 2026-04-28
1320

1421
### Changed

models/AIService.cfc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,21 @@ component singleton {
678678
json: mcpJson
679679
);
680680

681+
// Mirror to .vscode/mcp.json when copilot is a configured agent
682+
var agents = arguments.manifest.agents ?: []
683+
if ( agents.findNoCase( "copilot" ) ) {
684+
var vscodeMcpJson = {
685+
"servers" : mcpJson.mcpServers,
686+
"inputs" : []
687+
}
688+
var vscodeDir = arguments.directory & "/.vscode";
689+
directoryCreate( vscodeDir, true, true );
690+
variables.JSONService.writeJSONFile(
691+
path: vscodeDir & "/mcp.json",
692+
json: vscodeMcpJson
693+
)
694+
}
695+
681696
return this;
682697
}
683698

0 commit comments

Comments
 (0)