@modelcontextprotocol/inspector-cli 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.
Files changed (2) hide show
  1. package/build/cli.js +13 -0
  2. package/package.json +1 -1
package/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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modelcontextprotocol/inspector-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "CLI for the Model Context Protocol inspector",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Model Context Protocol a Series of LF Projects, LLC.",