@@ -2089,32 +2089,32 @@ <h3>Raw Manifest:</h3>
20892089 </svg>
20902090 Install
20912091 ` ;
2092- }
2093-
2094- // Handle click event to build search params and trigger deeplink
2095- installButton . addEventListener ( 'click' , ( event ) => {
2096- // Prevent the modal from opening
2097- event . stopPropagation ( ) ;
2098-
2099- // Build search params with server install info
2100- const params = new URLSearchParams ( ) ;
2101- params . append ( 'name' , server . name ) ;
2102- params . append ( 'action' , 'install' ) ;
2103-
2104- const installInfo = Object . values ( server . installations ) [ 0 ] ;
2105- // No remote for now, only stdio
2106- params . append ( 'command' , installInfo . command ) ;
2107- params . append ( 'args' , encodeURIComponent ( installInfo . args . join ( ' ' ) ) ) ;
2108- if ( installInfo . env ) {
2109- params . append ( 'env' , JSON . stringify ( installInfo . env ) ) ;
2110- }
21112092
2112- // Create and trigger the deeplink
2113- const deeplink = `${ sourceProtocol } ://mcpm?${ params . toString ( ) } ` ;
2114- window . location . href = deeplink ;
2115- } ) ;
2116-
2117- serverContent . appendChild ( installButton ) ;
2093+ // Handle click event to build search params and trigger deeplink
2094+ installButton . addEventListener ( 'click' , ( event ) => {
2095+ // Prevent the modal from opening
2096+ event . stopPropagation ( ) ;
2097+
2098+ // Build search params with server install info
2099+ const params = new URLSearchParams ( ) ;
2100+ params . append ( 'name' , server . name ) ;
2101+ params . append ( 'action' , 'install' ) ;
2102+
2103+ const installInfo = Object . values ( server . installations ) [ 0 ] ;
2104+ // No remote for now, only stdio
2105+ params . append ( 'command' , installInfo . command ) ;
2106+ params . append ( 'args' , encodeURIComponent ( installInfo . args . join ( ' ' ) ) ) ;
2107+ if ( installInfo . env ) {
2108+ params . append ( 'env' , JSON . stringify ( installInfo . env ) ) ;
2109+ }
2110+
2111+ // Create and trigger the deeplink
2112+ const deeplink = `${ sourceProtocol } ://mcpm?${ params . toString ( ) } ` ;
2113+ window . location . href = deeplink ;
2114+ } ) ;
2115+
2116+ serverContent . appendChild ( installButton ) ;
2117+ }
21182118
21192119 const linksContainer = document . createElement ( 'div' ) ;
21202120 linksContainer . className = 'server-links' ;
0 commit comments