@modelcontextprotocol/inspector 0.16.1 → 0.16.2

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-DLtnCiTW.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-BtsSr_hT.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.2",
4
4
  "description": "Model Context Protocol inspector",
5
5
  "license": "MIT",
6
6
  "author": "Anthropic, PBC (https://anthropic.com)",
@@ -47,10 +47,10 @@
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",
50
+ "@modelcontextprotocol/inspector-cli": "^0.16.2",
51
+ "@modelcontextprotocol/inspector-client": "^0.16.2",
52
+ "@modelcontextprotocol/inspector-server": "^0.16.2",
53
+ "@modelcontextprotocol/sdk": "^1.17.0",
54
54
  "concurrently": "^9.0.1",
55
55
  "open": "^10.1.0",
56
56
  "shell-quote": "^1.8.2",
@@ -27,6 +27,7 @@ const { values } = parseArgs({
27
27
  options: {
28
28
  env: { type: "string", default: "" },
29
29
  args: { type: "string", default: "" },
30
+ command: { type: "string", default: "" },
30
31
  },
31
32
  });
32
33
  // Function to get HTTP headers.
@@ -67,7 +68,7 @@ app.use((req, res, next) => {
67
68
  const webAppTransports = new Map(); // Web app transports by web app sessionId
68
69
  const serverTransports = new Map(); // Server Transports by web app sessionId
69
70
  // Use provided token from environment or generate a new one
70
- const sessionToken = process.env.MCP_PROXY_TOKEN || randomBytes(32).toString("hex");
71
+ const sessionToken = process.env.MCP_PROXY_AUTH_TOKEN || randomBytes(32).toString("hex");
71
72
  const authDisabled = !!process.env.DANGEROUSLY_OMIT_AUTH;
72
73
  // Origin validation middleware to prevent DNS rebinding attacks
73
74
  const originValidationMiddleware = (req, res, next) => {
@@ -396,7 +397,7 @@ app.get("/config", originValidationMiddleware, authMiddleware, (req, res) => {
396
397
  try {
397
398
  res.json({
398
399
  defaultEnvironment,
399
- defaultCommand: values.env,
400
+ defaultCommand: values.command,
400
401
  defaultArgs: values.args,
401
402
  });
402
403
  }