@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.
@@ -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-CPgI0-gs.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-BwWj6LL9.css">
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.1",
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.1",
51
- "@modelcontextprotocol/inspector-client": "^0.16.1",
52
- "@modelcontextprotocol/inspector-server": "^0.16.1",
53
- "@modelcontextprotocol/sdk": "^1.13.1",
54
- "concurrently": "^9.0.1",
55
- "open": "^10.1.0",
56
- "shell-quote": "^1.8.2",
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.23.8"
59
+ "zod": "^3.25.76"
60
60
  },
61
61
  "devDependencies": {
62
- "@playwright/test": "^1.52.0",
62
+ "@playwright/test": "^1.54.1",
63
63
  "@types/jest": "^29.5.14",
64
- "@types/node": "^22.7.5",
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.3.3",
67
+ "prettier": "^3.6.2",
68
68
  "rimraf": "^6.0.1",
69
69
  "typescript": "^5.4.2"
70
70
  },
@@ -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.MCP_PROXY_TOKEN || randomBytes(32).toString("hex");
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.env,
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) {