Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/plugin-handlers/config-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ export function createConfigHandler(deps: ConfigHandlerDeps) {
: { servers: {} };

config.mcp = {
...(config.mcp as Record<string, unknown>),
...createBuiltinMcps(pluginConfig.disabled_mcps),
...(config.mcp as Record<string, unknown>),
...mcpResult.servers,
...pluginComponents.mcpServers,
};
Comment on lines 350 to 355
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding test coverage for the MCP configuration merging precedence to prevent regression. The fix ensures user configs override builtin MCPs, but there's no automated test verifying this behavior. A test case could verify that when a user defines custom headers for a builtin MCP like 'context7', those headers are preserved in the final merged config.

Copilot uses AI. Check for mistakes.
Expand Down
Loading