File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/plus/gk/utils/-webview Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import { getHostAppName } from '../../../../system/-webview/vscode';
55import { satisfies } from '../../../../system/version' ;
66
77export async function isMcpBannerEnabled ( container : Container ) : Promise < boolean > {
8- // Check if running on web
9- if ( isWeb ) {
8+ // Check if running on web or automatically registrable
9+ if ( isWeb || supportsMcpExtensionRegistration ( ) ) {
1010 return false ;
1111 }
1212
@@ -26,5 +26,9 @@ export async function isMcpBannerEnabled(container: Container): Promise<boolean>
2626}
2727
2828export function supportsMcpExtensionRegistration ( ) : boolean {
29+ if ( isWeb ) {
30+ return false ;
31+ }
32+
2933 return satisfies ( version , '>= 1.101.0' ) && lm . registerMcpServerDefinitionProvider != null ;
3034}
You can’t perform that action at this time.
0 commit comments