fix(patch): cherry-pick e9a9474 to release/v0.28.1-pr-18840 [CONFLICTS] (#18847)

Co-authored-by: Adib234 <30782825+Adib234@users.noreply.github.com>
This commit is contained in:
gemini-cli-robot
2026-02-11 17:30:20 -05:00
committed by GitHub
parent c752b4ad16
commit da5e47ae3c
6 changed files with 9 additions and 132 deletions

View File

@@ -128,13 +128,6 @@ async function addMcpServer(
settings.setValue(settingsScope, 'mcpServers', mcpServers);
if (transport === 'stdio') {
debugLogger.warn(
'Security Warning: Running MCP servers with stdio transport can expose inherited environment variables. ' +
'While the Gemini CLI redacts common API keys and secrets by default, you should only run servers from trusted sources.',
);
}
if (isExistingServer) {
debugLogger.log(`MCP server "${name}" updated in ${scope} settings.`);
} else {