Skip to content

Commit 104e7c6

Browse files
fix: encode url with tool
1 parent ab8c89a commit 104e7c6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pages/registry/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)