Browse Source

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

Daniel 5 months ago
parent
commit
7323bba658
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/core/webview/ClineProvider.ts

+ 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",