@modelcontextprotocol/inspector 0.16.1 → 0.16.3
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 +79 -1
- package/cli/build/cli.js +92 -14
- package/cli/build/client/connection.js +5 -0
- package/cli/build/index.js +2 -0
- package/cli/build/transport.js +7 -16
- package/client/bin/start.js +38 -8
- package/client/dist/assets/{OAuthCallback-CaDIOg8Q.js → OAuthCallback-DCwiUoWl.js} +1 -1
- package/client/dist/assets/{OAuthDebugCallback-Ccjj44Wa.js → OAuthDebugCallback-BNuktUej.js} +1 -1
- package/client/dist/assets/{index-BwWj6LL9.css → index-BWZfLo5E.css} +79 -4
- package/client/dist/assets/{index-CPgI0-gs.js → index-CHDvjhl9.js} +1114 -229
- package/client/dist/index.html +2 -2
- package/package.json +12 -12
- package/server/build/index.js +7 -2
package/client/dist/index.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
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-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-CHDvjhl9.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BWZfLo5E.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root" class="w-full"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modelcontextprotocol/inspector",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"description": "Model Context Protocol inspector",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Anthropic, PBC (https://anthropic.com)",
|
|
@@ -47,24 +47,24 @@
|
|
|
47
47
|
"check-version": "node scripts/check-version-consistency.js"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@modelcontextprotocol/inspector-cli": "^0.16.
|
|
51
|
-
"@modelcontextprotocol/inspector-client": "^0.16.
|
|
52
|
-
"@modelcontextprotocol/inspector-server": "^0.16.
|
|
53
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
54
|
-
"concurrently": "^9.0
|
|
55
|
-
"open": "^10.
|
|
56
|
-
"shell-quote": "^1.8.
|
|
50
|
+
"@modelcontextprotocol/inspector-cli": "^0.16.3",
|
|
51
|
+
"@modelcontextprotocol/inspector-client": "^0.16.3",
|
|
52
|
+
"@modelcontextprotocol/inspector-server": "^0.16.3",
|
|
53
|
+
"@modelcontextprotocol/sdk": "^1.17.0",
|
|
54
|
+
"concurrently": "^9.2.0",
|
|
55
|
+
"open": "^10.2.0",
|
|
56
|
+
"shell-quote": "^1.8.3",
|
|
57
57
|
"spawn-rx": "^5.1.2",
|
|
58
58
|
"ts-node": "^10.9.2",
|
|
59
|
-
"zod": "^3.
|
|
59
|
+
"zod": "^3.25.76"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@playwright/test": "^1.
|
|
62
|
+
"@playwright/test": "^1.54.1",
|
|
63
63
|
"@types/jest": "^29.5.14",
|
|
64
|
-
"@types/node": "^22.
|
|
64
|
+
"@types/node": "^22.17.0",
|
|
65
65
|
"@types/shell-quote": "^1.7.5",
|
|
66
66
|
"jest-fixed-jsdom": "^0.0.9",
|
|
67
|
-
"prettier": "3.
|
|
67
|
+
"prettier": "^3.6.2",
|
|
68
68
|
"rimraf": "^6.0.1",
|
|
69
69
|
"typescript": "^5.4.2"
|
|
70
70
|
},
|
package/server/build/index.js
CHANGED
|
@@ -27,6 +27,9 @@ const { values } = parseArgs({
|
|
|
27
27
|
options: {
|
|
28
28
|
env: { type: "string", default: "" },
|
|
29
29
|
args: { type: "string", default: "" },
|
|
30
|
+
command: { type: "string", default: "" },
|
|
31
|
+
transport: { type: "string", default: "" },
|
|
32
|
+
"server-url": { type: "string", default: "" },
|
|
30
33
|
},
|
|
31
34
|
});
|
|
32
35
|
// Function to get HTTP headers.
|
|
@@ -67,7 +70,7 @@ app.use((req, res, next) => {
|
|
|
67
70
|
const webAppTransports = new Map(); // Web app transports by web app sessionId
|
|
68
71
|
const serverTransports = new Map(); // Server Transports by web app sessionId
|
|
69
72
|
// Use provided token from environment or generate a new one
|
|
70
|
-
const sessionToken = process.env.
|
|
73
|
+
const sessionToken = process.env.MCP_PROXY_AUTH_TOKEN || randomBytes(32).toString("hex");
|
|
71
74
|
const authDisabled = !!process.env.DANGEROUSLY_OMIT_AUTH;
|
|
72
75
|
// Origin validation middleware to prevent DNS rebinding attacks
|
|
73
76
|
const originValidationMiddleware = (req, res, next) => {
|
|
@@ -396,8 +399,10 @@ app.get("/config", originValidationMiddleware, authMiddleware, (req, res) => {
|
|
|
396
399
|
try {
|
|
397
400
|
res.json({
|
|
398
401
|
defaultEnvironment,
|
|
399
|
-
defaultCommand: values.
|
|
402
|
+
defaultCommand: values.command,
|
|
400
403
|
defaultArgs: values.args,
|
|
404
|
+
defaultTransport: values.transport,
|
|
405
|
+
defaultServerUrl: values["server-url"],
|
|
401
406
|
});
|
|
402
407
|
}
|
|
403
408
|
catch (error) {
|