@modelcontextprotocol/inspector 1.0.0 → 1.0.1

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 CHANGED
@@ -2,7 +2,17 @@
2
2
 
3
3
  The MCP inspector is a developer tool for testing and debugging MCP servers.
4
4
 
5
- ![MCP Inspector Screenshot](https://raw.githubusercontent.com/modelcontextprotocol/inspector/main/mcp-inspector.png)
5
+ > # ⚠️ Deprecated
6
+ >
7
+ > **`@modelcontextprotocol/inspector` v1 is deprecated.**
8
+ >
9
+ > ```
10
+ > npx @modelcontextprotocol/inspector@latest
11
+ > ```
12
+ >
13
+ > v1 receives **security fixes only**. All new development happens in v2.
14
+
15
+ ![MCP Inspector Screenshot](https://raw.githubusercontent.com/modelcontextprotocol/inspector/v1/main/mcp-inspector.png)
6
16
 
7
17
  ## Architecture Overview
8
18
 
package/cli/build/cli.js CHANGED
@@ -6,6 +6,18 @@ import { dirname, resolve } from "path";
6
6
  import { spawnPromise } from "spawn-rx";
7
7
  import { fileURLToPath } from "url";
8
8
  const __dirname = dirname(fileURLToPath(import.meta.url));
9
+ /**
10
+ * v1 deprecation notice. Written to stderr, never stdout: `--cli` mode emits
11
+ * JSON on stdout and callers pipe it, so a banner there would corrupt output.
12
+ */
13
+ const DEPRECATION_NOTICE = [
14
+ "⚠️ @modelcontextprotocol/inspector v1 is deprecated.",
15
+ " Upgrade: npx @modelcontextprotocol/inspector@latest",
16
+ " v1 receives security fixes only.",
17
+ ].join("\n");
18
+ function printDeprecationNotice() {
19
+ console.error(`\n${DEPRECATION_NOTICE}\n`);
20
+ }
9
21
  function handleError(error) {
10
22
  let message;
11
23
  if (error instanceof Error) {
@@ -261,6 +273,7 @@ async function main() {
261
273
  process.on("uncaughtException", (error) => {
262
274
  handleError(error);
263
275
  });
276
+ printDeprecationNotice();
264
277
  try {
265
278
  const args = parseArgs();
266
279
  if (args.cli) {
@@ -167,6 +167,11 @@ async function startDevClient(clientOptions) {
167
167
 
168
168
  // Give vite time to start before opening or logging the URL
169
169
  setTimeout(() => {
170
+ console.log(
171
+ `\n⚠️ @modelcontextprotocol/inspector v1 is deprecated.\n` +
172
+ ` Upgrade: npx @modelcontextprotocol/inspector@latest\n` +
173
+ ` v1 receives security fixes only.`,
174
+ );
170
175
  console.log(`\n🚀 MCP Inspector is up and running at:\n ${url}\n`);
171
176
  if (process.env.MCP_AUTO_OPEN_ENABLED !== "false") {
172
177
  console.log("🌐 Opening browser...");
@@ -1,4 +1,4 @@
1
- import { u as useToast, r as reactExports, j as jsxRuntimeExports, p as parseOAuthCallbackParams, g as generateOAuthErrorDescription, S as SESSION_KEYS, I as InspectorOAuthClientProvider, a as auth } from "./index-DjSLdS7f.js";
1
+ import { u as useToast, r as reactExports, j as jsxRuntimeExports, p as parseOAuthCallbackParams, g as generateOAuthErrorDescription, S as SESSION_KEYS, I as InspectorOAuthClientProvider, a as auth } from "./index-CH-qD91V.js";
2
2
  const OAuthCallback = ({ onConnect }) => {
3
3
  const { toast } = useToast();
4
4
  const hasProcessedRef = reactExports.useRef(false);
@@ -1,4 +1,4 @@
1
- import { r as reactExports, S as SESSION_KEYS, p as parseOAuthCallbackParams, j as jsxRuntimeExports, g as generateOAuthErrorDescription } from "./index-DjSLdS7f.js";
1
+ import { r as reactExports, S as SESSION_KEYS, p as parseOAuthCallbackParams, j as jsxRuntimeExports, g as generateOAuthErrorDescription } from "./index-CH-qD91V.js";
2
2
  const OAuthDebugCallback = ({ onConnect }) => {
3
3
  reactExports.useEffect(() => {
4
4
  let isProcessed = false;