File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -628,7 +628,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
628628 if ( this . mcpHub ) {
629629 this . postMessageToWebview ( {
630630 type : "mcpServers" ,
631- mcpServers : this . mcpHub . getServers ( ) ,
631+ mcpServers : this . mcpHub . getAllServers ( ) ,
632632 } )
633633 }
634634
@@ -2256,7 +2256,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
22562256 autoApprovalEnabled : autoApprovalEnabled ?? false ,
22572257 customModes : await this . customModesManager . getCustomModes ( ) ,
22582258 experiments : experiments ?? experimentDefault ,
2259- mcpServers : this . mcpHub ?. getServers ( ) ?? [ ] ,
2259+ mcpServers : this . mcpHub ?. getAllServers ( ) ?? [ ] ,
22602260 }
22612261 }
22622262
Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ export class McpHub {
6767 return this . connections . filter ( ( conn ) => ! conn . server . disabled ) . map ( ( conn ) => conn . server )
6868 }
6969
70+ getAllServers ( ) : McpServer [ ] {
71+ // Return all servers regardless of state
72+ return this . connections . map ( ( conn ) => conn . server )
73+ }
74+
7075 async getMcpServersPath ( ) : Promise < string > {
7176 const provider = this . providerRef . deref ( )
7277 if ( ! provider ) {
You can’t perform that action at this time.
0 commit comments