File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
chat-client/src/client/tabs
server/aws-lsp-codewhisperer/src/language-server/agenticChat/tools/mcp Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ export class TabFactory {
142
142
if ( this . mcp ) {
143
143
tabBarButtons . push ( {
144
144
id : McpServerTabButtonId ,
145
- icon : MynahIcons . MCP ,
145
+ icon : MynahIcons . TOOLS ,
146
146
description : 'Configure MCP servers' ,
147
147
} )
148
148
}
Original file line number Diff line number Diff line change @@ -306,7 +306,10 @@ export class McpEventHandler {
306
306
if ( existingValues . name ) {
307
307
const serverName = existingValues . name
308
308
const serverState = McpManager . instance . getAllServerConfigs ( ) . get ( serverName )
309
- if ( serverState ?. __configPath__ === getGlobalMcpConfigPath ( this . #features. workspace . fs . getUserHomeDir ( ) ) ) {
309
+ if (
310
+ ! serverState ||
311
+ serverState ?. __configPath__ === getGlobalMcpConfigPath ( this . #features. workspace . fs . getUserHomeDir ( ) )
312
+ ) {
310
313
existingValues . scope = 'global'
311
314
} else {
312
315
existingValues . scope = 'workspace'
You can’t perform that action at this time.
0 commit comments