Skip to content

Commit 817cfe2

Browse files
authored
fix(amazonq): persist mcp configs in agent json on start-up (#2112)
1 parent c27dc49 commit 817cfe2

File tree

1 file changed

+1
-1
lines changed
  • server/aws-lsp-codewhisperer/src/language-server/agenticChat/tools/mcp

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,8 +920,8 @@ async function migrateConfigToAgent(
920920
...existingAgentConfig,
921921
// Merge MCP servers, keeping existing ones if they exist
922922
mcpServers: {
923-
...existingAgentConfig.mcpServers,
924923
...newAgentConfig.mcpServers,
924+
...existingAgentConfig.mcpServers,
925925
},
926926
// Merge tools lists without duplicates
927927
tools: [...new Set([...existingAgentConfig.tools, ...newAgentConfig.tools])],

0 commit comments

Comments
 (0)