Merge branch 'main' into cleanup-old-transports

This commit is contained in:
Cliff Hall 2025-03-31 12:36:34 -04:00 • committed by GitHub
commit fb29ca0113
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 61 additions and 49 deletions

View file

@ -16,4 +16,18 @@ const server = http.createServer((request, response) => {
});
const port = process.env.PORT || 5173;
server.listen(port, () => {});
server.on("listening", () => {
console.log(
`🔍 MCP Inspector is up and running at http://127.0.0.1:${port} 🚀`,
);
});
server.on("error", (err) => {
if (err.message.includes(`EADDRINUSE`)) {
console.error(
`❌ MCP Inspector PORT IS IN USE at http://127.0.0.1:${port} ❌ `,
);
} else {
throw err;
}
});
server.listen(port);

View file

@ -18,7 +18,7 @@
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview",
"preview": "vite preview --port 5173",
"test": "jest --config jest.config.cjs",
"test:watch": "jest --config jest.config.cjs --watch"
},