@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 +11 -1
- package/cli/build/cli.js +13 -0
- package/client/bin/start.js +5 -0
- package/client/dist/assets/{OAuthCallback-D56s1eS_.js → OAuthCallback-DKaW5Tk8.js} +1 -1
- package/client/dist/assets/{OAuthDebugCallback-CdGJkhXe.js → OAuthDebugCallback-Bx3X7Zkh.js} +1 -1
- package/client/dist/assets/{index-DjSLdS7f.js → index-CH-qD91V.js} +2162 -1373
- package/client/dist/assets/{index-BlUSNvoM.css → index-DXy0twoH.css} +48 -0
- package/client/dist/index.html +2 -2
- package/package.json +4 -4
- package/server/build/index.js +3 -0
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
|
-
|
|
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
|
+

|
|
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) {
|
package/client/bin/start.js
CHANGED
|
@@ -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-
|
|
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);
|
package/client/dist/assets/{OAuthDebugCallback-CdGJkhXe.js → OAuthDebugCallback-Bx3X7Zkh.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports, S as SESSION_KEYS, p as parseOAuthCallbackParams, j as jsxRuntimeExports, g as generateOAuthErrorDescription } from "./index-
|
|
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;
|