make server port configurable via URL query param
This commit is contained in:
parent
2b79b6ffd4
commit
a3d542c0a3
1 changed files with 9 additions and 3 deletions
|
|
@ -61,8 +61,9 @@ async function main() {
|
|||
|
||||
// Make sure our server/client didn't immediately fail
|
||||
await Promise.any([server, client, delay(2 * 1000)]);
|
||||
const portParam = SERVER_PORT === "3000" ? "" : `?port=${SERVER_PORT}`;
|
||||
console.log(
|
||||
`\n🔍 MCP Inspector is up and running at http://localhost:${CLIENT_PORT} 🚀`,
|
||||
`\n🔍 MCP Inspector is up and running at http://localhost:${CLIENT_PORT}${portParam} 🚀`,
|
||||
);
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue