@modelcontextprotocol/inspector 0.14.3 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -10
- package/cli/build/index.js +38 -3
- package/cli/build/transport.js +14 -1
- package/client/bin/start.js +198 -50
- package/client/dist/assets/{OAuthCallback-BrCtrNqU.js → OAuthCallback-CaW3Hcqw.js} +1 -1
- package/client/dist/assets/{OAuthDebugCallback-CnQiL6bh.js → OAuthDebugCallback-DiBt_oxh.js} +1 -1
- package/client/dist/assets/{index-DYfnI33L.js → index-BNqYF5Na.js} +561 -264
- package/client/dist/index.html +1 -1
- package/package.json +9 -7
- package/server/build/index.js +3 -2
package/client/dist/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/mcp.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>MCP Inspector</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-BNqYF5Na.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-C1MLjTGf.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modelcontextprotocol/inspector",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Model Context Protocol inspector",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Anthropic, PBC (https://anthropic.com)",
|
|
@@ -27,13 +27,14 @@
|
|
|
27
27
|
"build-client": "cd client && npm run build",
|
|
28
28
|
"build-cli": "cd cli && npm run build",
|
|
29
29
|
"clean": "rimraf ./node_modules ./client/node_modules ./cli/node_modules ./build ./client/dist ./server/build ./cli/build ./package-lock.json && npm install",
|
|
30
|
-
"dev": "
|
|
31
|
-
"dev:windows": "
|
|
30
|
+
"dev": "node client/bin/start.js --dev",
|
|
31
|
+
"dev:windows": "node client/bin/start.js --dev",
|
|
32
32
|
"start": "node client/bin/start.js",
|
|
33
33
|
"start-server": "cd server && npm run start",
|
|
34
34
|
"start-client": "cd client && npm run preview",
|
|
35
35
|
"test": "npm run prettier-check && cd client && npm test",
|
|
36
36
|
"test-cli": "cd cli && npm run test",
|
|
37
|
+
"test:e2e": "MCP_AUTO_OPEN_ENABLED=false npm run test:e2e --workspace=client",
|
|
37
38
|
"prettier-fix": "prettier --write .",
|
|
38
39
|
"prettier-check": "prettier --check .",
|
|
39
40
|
"lint": "prettier --check . && cd client && npm run lint",
|
|
@@ -43,10 +44,10 @@
|
|
|
43
44
|
"check-version": "node scripts/check-version-consistency.js"
|
|
44
45
|
},
|
|
45
46
|
"dependencies": {
|
|
46
|
-
"@modelcontextprotocol/inspector-cli": "^0.
|
|
47
|
-
"@modelcontextprotocol/inspector-client": "^0.
|
|
48
|
-
"@modelcontextprotocol/inspector-server": "^0.
|
|
49
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
47
|
+
"@modelcontextprotocol/inspector-cli": "^0.15.0",
|
|
48
|
+
"@modelcontextprotocol/inspector-client": "^0.15.0",
|
|
49
|
+
"@modelcontextprotocol/inspector-server": "^0.15.0",
|
|
50
|
+
"@modelcontextprotocol/sdk": "^1.13.1",
|
|
50
51
|
"concurrently": "^9.0.1",
|
|
51
52
|
"open": "^10.1.0",
|
|
52
53
|
"shell-quote": "^1.8.2",
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
"zod": "^3.23.8"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
59
|
+
"@playwright/test": "^1.52.0",
|
|
58
60
|
"@types/jest": "^29.5.14",
|
|
59
61
|
"@types/node": "^22.7.5",
|
|
60
62
|
"@types/shell-quote": "^1.7.5",
|
package/server/build/index.js
CHANGED
|
@@ -65,7 +65,8 @@ app.use((req, res, next) => {
|
|
|
65
65
|
});
|
|
66
66
|
const webAppTransports = new Map(); // Web app transports by web app sessionId
|
|
67
67
|
const serverTransports = new Map(); // Server Transports by web app sessionId
|
|
68
|
-
|
|
68
|
+
// Use provided token from environment or generate a new one
|
|
69
|
+
const sessionToken = process.env.MCP_PROXY_TOKEN || randomBytes(32).toString("hex");
|
|
69
70
|
const authDisabled = !!process.env.DANGEROUSLY_OMIT_AUTH;
|
|
70
71
|
// Origin validation middleware to prevent DNS rebinding attacks
|
|
71
72
|
const originValidationMiddleware = (req, res, next) => {
|
|
@@ -415,7 +416,7 @@ server.on("listening", () => {
|
|
|
415
416
|
// Display clickable URL with pre-filled token
|
|
416
417
|
const clientPort = process.env.CLIENT_PORT || "6274";
|
|
417
418
|
const clientUrl = `http://localhost:${clientPort}/?MCP_PROXY_AUTH_TOKEN=${sessionToken}`;
|
|
418
|
-
console.log(`\n🔗 Open inspector with token pre-filled:\n ${clientUrl}\n
|
|
419
|
+
console.log(`\n🔗 Open inspector with token pre-filled:\n ${clientUrl}\n`);
|
|
419
420
|
}
|
|
420
421
|
else {
|
|
421
422
|
console.log(`⚠️ WARNING: Authentication is disabled. This is not recommended.`);
|