diff --git a/bin/cli.js b/bin/cli.js index 79a6d402a..27cb61221 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -34,16 +34,17 @@ const serverCommand = [ .filter(Boolean) .join(" "); -console.log(serverCommand); +const CLIENT_PORT = process.env.CLIENT_PORT ?? ""; +const SERVER_PORT = process.env.SERVER_PORT ?? ""; const { result } = concurrently( [ { - command: serverCommand, + command: `PORT=${SERVER_PORT} ${serverCommand}`, name: "server", }, { - command: `node ${inspectorClientPath}`, + command: `PORT=${CLIENT_PORT} node ${inspectorClientPath}`, name: "client", }, ], @@ -54,6 +55,10 @@ const { result } = concurrently( }, ); +console.log( + `\nšŸ” MCP Inspector is up and running at http://localhost:${CLIENT_PORT || 5173} šŸš€`, +); + result.catch((err) => { console.error("An error occurred:", err); process.exit(1); diff --git a/client/bin/cli.js b/client/bin/cli.js index f537e1900..ae4967fc5 100755 --- a/client/bin/cli.js +++ b/client/bin/cli.js @@ -13,6 +13,4 @@ const server = http.createServer((request, response) => { }); const port = process.env.PORT || 5173; -server.listen(port, () => { - console.log(`MCP inspector client running at http://localhost:${port}`); -}); +server.listen(port, () => {}); diff --git a/client/package.json b/client/package.json index 3c937385a..6f231f461 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "@modelcontextprotocol/inspector-client", - "version": "0.1.5", + "version": "0.1.7", "description": "Client-side application for the Model Context Protocol inspector", "license": "MIT", "author": "Anthropic, PBC (https://anthropic.com)", diff --git a/package.json b/package.json index 6f293ce0b..01c6e2b21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@modelcontextprotocol/inspector", - "version": "0.1.6", + "version": "0.1.7", "description": "Model Context Protocol inspector", "license": "MIT", "author": "Anthropic, PBC (https://anthropic.com)", diff --git a/server/package.json b/server/package.json index 296b6a07f..900c9c737 100644 --- a/server/package.json +++ b/server/package.json @@ -1,6 +1,6 @@ { "name": "@modelcontextprotocol/inspector-server", - "version": "0.1.5", + "version": "0.1.7", "description": "Server-side application for the Model Context Protocol inspector", "license": "MIT", "author": "Anthropic, PBC (https://anthropic.com)", diff --git a/server/src/index.ts b/server/src/index.ts index c8f2c74a9..59399e8b1 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -121,6 +121,4 @@ app.get("/config", (req, res) => { }); const PORT = process.env.PORT || 3000; -app.listen(PORT, () => { - console.log(`Server is running on port ${PORT}`); -}); +app.listen(PORT, () => {});