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

This commit is contained in:
Daniel 2025-11-12 13:03:54 -05:00 committed by GitHub
parent 69d4efc335
commit 7323bba658
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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