Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
],
Expand All @@ -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);
Expand Down
4 changes: 1 addition & 3 deletions client/bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, () => {});
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelcontextprotocol/inspector-client",
"version": "0.1.5",
"version": "0.1.7",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forgot to bump this in previous PR so bumping twice now

"description": "Client-side application for the Model Context Protocol inspector",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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)",
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -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)",
Expand Down
4 changes: 1 addition & 3 deletions server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, () => {});