From 5772183ae8c6ad7caf592a76d6645397d53ef186 Mon Sep 17 00:00:00 2001 From: Jerome Swannack Date: Fri, 16 Jan 2026 17:03:00 +0000 Subject: [PATCH] Fix double slash in example server URLs Remove trailing slash from baseUri before constructing example server URLs to avoid URLs like "example.com//budget-allocator/mcp". Co-Authored-By: Claude Opus 4.5 --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 7c0a90c..67b950c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 `