refactor: Update default ports for MCPI client and MPCP server

Changes the default ports used by the MCP Inspector client UI and the MCP Proxy server to avoid conflicts with common development ports and provide a memorable mnemonic based on T9 mapping.
This commit is contained in:
Abdelkader Boudih
2025-03-31 00:31:28 +00:00
parent 539f32bf3b
commit da9dd09765
6 changed files with 8 additions and 8 deletions

View File

@@ -61,8 +61,8 @@ async function main() {
"cli.js",
);
const CLIENT_PORT = process.env.CLIENT_PORT ?? "5173";
const SERVER_PORT = process.env.SERVER_PORT ?? "3000";
const CLIENT_PORT = process.env.CLIENT_PORT ?? "6274";
const SERVER_PORT = process.env.SERVER_PORT ?? "6727";
console.log("Starting MCP inspector...");
@@ -100,7 +100,7 @@ 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" ? "" : `?proxyPort=${SERVER_PORT}`;
const portParam = SERVER_PORT === "6727" ? "" : `?proxyPort=${SERVER_PORT}`;
console.log(
`\n🔍 MCP Inspector is up and running at http://127.0.0.1:${CLIENT_PORT}${portParam} 🚀`,
);