Merge pull request #32 from modelcontextprotocol/feature/fix-double-slash-urls

Fix double slash in example server URLs
This commit is contained in:
Jerome 2026-01-16 17:04:19 +00:00 • committed by GitHub
commit f48f411661
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -239,8 +239,9 @@ async function main() {
let html = fs.readFileSync(splashPath, 'utf8');
// Inject example server endpoints with copy buttons
const baseUrl = config.baseUri.replace(/\/$/, ''); // Remove trailing slash if present
const exampleServersHtml = AVAILABLE_EXAMPLES.map(slug => {
const fullUrl = `${config.baseUri}/${slug}/mcp`;
const fullUrl = `${baseUrl}/${slug}/mcp`;
return `
<div class="endpoint endpoint-with-copy">
<div class="endpoint-info">