Skip to content

Commit a2e7d57

Browse files
authored
fix: correct icon for mcp button (#1605)
1 parent e0b274f commit a2e7d57

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

chat-client/src/client/tabs/tabFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class TabFactory {
142142
if (this.mcp) {
143143
tabBarButtons.push({
144144
id: McpServerTabButtonId,
145-
icon: MynahIcons.MCP,
145+
icon: MynahIcons.TOOLS,
146146
description: 'Configure MCP servers',
147147
})
148148
}

server/aws-lsp-codewhisperer/src/language-server/agenticChat/tools/mcp/mcpEventHandler.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,10 @@ export class McpEventHandler {
306306
if (existingValues.name) {
307307
const serverName = existingValues.name
308308
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+
) {
310313
existingValues.scope = 'global'
311314
} else {
312315
existingValues.scope = 'workspace'

0 commit comments

Comments
 (0)