fix: Prefer 127.0.0.1 over localhost

This commit is contained in:
Max Gerber
2025-03-14 16:16:31 -07:00
committed by GitHub
parent c77252900a
commit fb667fd4d0

View File

@@ -96,7 +96,7 @@ async function main() {
await Promise.any([server, client, delay(2 * 1000)]); await Promise.any([server, client, delay(2 * 1000)]);
const portParam = SERVER_PORT === "3000" ? "" : `?proxyPort=${SERVER_PORT}`; const portParam = SERVER_PORT === "3000" ? "" : `?proxyPort=${SERVER_PORT}`;
console.log( console.log(
`\n🔍 MCP Inspector is up and running at http://localhost:${CLIENT_PORT}${portParam} 🚀`, `\n🔍 MCP Inspector is up and running at http://127.0.0.1:${CLIENT_PORT}${portParam} 🚀`,
); );
try { try {