File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1520,8 +1520,7 @@ <h3>Raw Manifest:</h3>
15201520 'others' : 2 ,
15211521 }
15221522 const isLucien = searchParams . get ( 'source' ) === 'lucien'
1523- const isStaging = Boolean ( searchParams . get ( 'isStaging' ) )
1524- const sourceProtocol = ( isLucien && isStaging ) ? 'lucien-staging' : 'lucien'
1523+ const sourceProtocol = searchParams . get ( 'protocol' ) || 'lucien'
15251524
15261525 // Use the Lucien specified servers from the external JS file
15271526 const defaultSpecifiedServers = [ ]
@@ -2105,12 +2104,11 @@ <h3>Raw Manifest:</h3>
21052104 const installInfo = Object . values ( server . installations ) [ 0 ] ;
21062105 // No remote for now, only stdio
21072106 params . append ( 'command' , installInfo . command ) ;
2108- params . append ( 'args' , installInfo . args . join ( ' ' ) ) ;
2107+ params . append ( 'args' , encodeURIComponent ( installInfo . args . join ( ' ' ) ) ) ;
21092108 if ( installInfo . env ) {
21102109 params . append ( 'env' , JSON . stringify ( installInfo . env ) ) ;
21112110 }
21122111
2113- console . log ( params )
21142112 // Create and trigger the deeplink
21152113 const deeplink = `${ sourceProtocol } ://mcpm?${ params . toString ( ) } ` ;
21162114 window . location . href = deeplink ;
You can’t perform that action at this time.
0 commit comments