mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
Stop extension MCPs from hopping into settings. (#1026)
This commit is contained in:
parent
bb67d31739
commit
a2fe3d2ad0
4 changed files with 33 additions and 4 deletions
|
|
@ -205,7 +205,7 @@ export async function loadCliConfig(
|
|||
}
|
||||
|
||||
function mergeMcpServers(settings: Settings, extensions: Extension[]) {
|
||||
const mcpServers = settings.mcpServers || {};
|
||||
const mcpServers = { ...(settings.mcpServers || {}) };
|
||||
for (const extension of extensions) {
|
||||
Object.entries(extension.config.mcpServers || {}).forEach(
|
||||
([key, server]) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue