2
0
Эх сурвалжийг харах

fix: include mcpServers in getState() for auto-approval (#9199)

Daniel 1 сар өмнө
parent
commit
7323bba658

+ 1 - 0
src/core/webview/ClineProvider.ts

@@ -2220,6 +2220,7 @@ export class ClineProvider
 			language: stateValues.language ?? formatLanguage(vscode.env.language),
 			mcpEnabled: stateValues.mcpEnabled ?? true,
 			enableMcpServerCreation: stateValues.enableMcpServerCreation ?? true,
+			mcpServers: this.mcpHub?.getAllServers() ?? [],
 			alwaysApproveResubmit: stateValues.alwaysApproveResubmit ?? false,
 			requestDelaySeconds: Math.max(5, stateValues.requestDelaySeconds ?? 10),
 			currentApiConfigName: stateValues.currentApiConfigName ?? "default",