Merge pull request #32 from modelcontextprotocol/feature/fix-double-slash-urls
Fix double slash in example server URLs
This commit is contained in:
commit
f48f411661
1 changed files with 2 additions and 1 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in a new issue