Skip to content

Commit f49b2d1

Browse files
authored
Merge pull request modelcontextprotocol#233 from seuros/main
refactor: Update default ports for MCPI client and MPCP server
2 parents 2f85430 + d1746f5 commit f49b2d1

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Thanks for your interest in contributing! This guide explains how to get involve
77
1. Fork the repository and clone it locally
88
2. Install dependencies with `npm install`
99
3. Run `npm run dev` to start both client and server in development mode
10-
4. Use the web UI at http://127.0.0.1:5173 to interact with the inspector
10+
4. Use the web UI at http://127.0.0.1:6274 to interact with the inspector
1111

1212
## Development Process & Pull Requests
1313

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ npx @modelcontextprotocol/inspector -e KEY=value -e KEY2=$VALUE2 node build/inde
3030
npx @modelcontextprotocol/inspector -e KEY=$VALUE -- node build/index.js -e server-flag
3131
```
3232

33-
The inspector runs both a client UI (default port 5173) and an MCP proxy server (default port 3000). Open the client UI in your browser to use the inspector. You can customize the ports if needed:
33+
The inspector runs both an MCP Inspector (MCPI) client UI (default port 6274) and an MCP Proxy (MCPP) server (default port 6277). Open the MCPI client UI in your browser to use the inspector. (These ports are derived from the T9 dialpad mapping of MCPI and MCPP respectively, as a mnemonic). You can customize the ports if needed:
3434

3535
```bash
3636
CLIENT_PORT=8080 SERVER_PORT=9000 npx @modelcontextprotocol/inspector node build/index.js

bin/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ async function main() {
6161
"cli.js",
6262
);
6363

64-
const CLIENT_PORT = process.env.CLIENT_PORT ?? "5173";
65-
const SERVER_PORT = process.env.SERVER_PORT ?? "3000";
64+
const CLIENT_PORT = process.env.CLIENT_PORT ?? "6274";
65+
const SERVER_PORT = process.env.SERVER_PORT ?? "6277";
6666

6767
console.log("Starting MCP inspector...");
6868

client/bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const server = http.createServer((request, response) => {
1515
});
1616
});
1717

18-
const port = process.env.PORT || 5173;
18+
const port = process.env.PORT || 6274;
1919
server.on("listening", () => {
2020
console.log(
2121
`🔍 MCP Inspector is up and running at http://127.0.0.1:${port} 🚀`,

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"dev": "vite",
1919
"build": "tsc -b && vite build",
2020
"lint": "eslint .",
21-
"preview": "vite preview --port 5173",
21+
"preview": "vite preview --port 6274",
2222
"test": "jest --config jest.config.cjs",
2323
"test:watch": "jest --config jest.config.cjs --watch"
2424
},

client/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import { DEFAULT_INSPECTOR_CONFIG } from "./lib/constants";
4949
import { InspectorConfig } from "./lib/configurationTypes";
5050

5151
const params = new URLSearchParams(window.location.search);
52-
const PROXY_PORT = params.get("proxyPort") ?? "3000";
52+
const PROXY_PORT = params.get("proxyPort") ?? "6277";
5353
const PROXY_SERVER_URL = `http://${window.location.hostname}:${PROXY_PORT}`;
5454
const CONFIG_LOCAL_STORAGE_KEY = "inspectorConfig_v1";
5555

server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ app.get("/config", (req, res) => {
185185
}
186186
});
187187

188-
const PORT = process.env.PORT || 3000;
188+
const PORT = process.env.PORT || 6277;
189189

190190
const server = app.listen(PORT);
191191
server.on("listening", () => {

0 commit comments

Comments
 (0)