@modelcontextprotocol/inspector 0.16.2 → 0.16.4
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 +72 -0
- package/cli/build/cli.js +80 -12
- package/cli/build/client/connection.js +5 -0
- package/client/bin/start.js +31 -4
- package/client/dist/assets/{OAuthCallback-CC1cu0Zx.js → OAuthCallback-DyaAiF-O.js} +1 -2
- package/client/dist/assets/{OAuthDebugCallback-_4BLxVDe.js → OAuthDebugCallback-BD-zJllm.js} +1 -2
- package/client/dist/assets/{index-BtsSr_hT.css → index-BWZfLo5E.css} +0 -4
- package/client/dist/assets/{index-DLtnCiTW.js → index-MFoeZZBS.js} +410 -239
- package/client/dist/index.html +2 -2
- package/package.json +12 -12
- package/server/build/index.js +4 -0
- package/client/dist/assets/oauthUtils-DTcoXpSP.js +0 -33
package/client/dist/index.html
CHANGED
|
@@ -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-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-MFoeZZBS.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.
|
|
3
|
+
"version": "0.16.4",
|
|
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.
|
|
51
|
-
"@modelcontextprotocol/inspector-client": "^0.16.
|
|
52
|
-
"@modelcontextprotocol/inspector-server": "^0.16.
|
|
53
|
-
"@modelcontextprotocol/sdk": "^1.17.
|
|
54
|
-
"concurrently": "^9.0
|
|
55
|
-
"open": "^10.
|
|
56
|
-
"shell-quote": "^1.8.
|
|
50
|
+
"@modelcontextprotocol/inspector-cli": "^0.16.4",
|
|
51
|
+
"@modelcontextprotocol/inspector-client": "^0.16.4",
|
|
52
|
+
"@modelcontextprotocol/inspector-server": "^0.16.4",
|
|
53
|
+
"@modelcontextprotocol/sdk": "^1.17.2",
|
|
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.
|
|
59
|
+
"zod": "^3.25.76"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@playwright/test": "^1.
|
|
62
|
+
"@playwright/test": "^1.54.1",
|
|
63
63
|
"@types/jest": "^29.5.14",
|
|
64
|
-
"@types/node": "^22.
|
|
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.
|
|
67
|
+
"prettier": "^3.6.2",
|
|
68
68
|
"rimraf": "^6.0.1",
|
|
69
69
|
"typescript": "^5.4.2"
|
|
70
70
|
},
|
package/server/build/index.js
CHANGED
|
@@ -28,6 +28,8 @@ const { values } = parseArgs({
|
|
|
28
28
|
env: { type: "string", default: "" },
|
|
29
29
|
args: { type: "string", default: "" },
|
|
30
30
|
command: { type: "string", default: "" },
|
|
31
|
+
transport: { type: "string", default: "" },
|
|
32
|
+
"server-url": { type: "string", default: "" },
|
|
31
33
|
},
|
|
32
34
|
});
|
|
33
35
|
// Function to get HTTP headers.
|
|
@@ -399,6 +401,8 @@ app.get("/config", originValidationMiddleware, authMiddleware, (req, res) => {
|
|
|
399
401
|
defaultEnvironment,
|
|
400
402
|
defaultCommand: values.command,
|
|
401
403
|
defaultArgs: values.args,
|
|
404
|
+
defaultTransport: values.transport,
|
|
405
|
+
defaultServerUrl: values["server-url"],
|
|
402
406
|
});
|
|
403
407
|
}
|
|
404
408
|
catch (error) {
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
const parseOAuthCallbackParams = (location) => {
|
|
2
|
-
const params = new URLSearchParams(location);
|
|
3
|
-
const code = params.get("code");
|
|
4
|
-
if (code) {
|
|
5
|
-
return { successful: true, code };
|
|
6
|
-
}
|
|
7
|
-
const error = params.get("error");
|
|
8
|
-
const error_description = params.get("error_description");
|
|
9
|
-
const error_uri = params.get("error_uri");
|
|
10
|
-
if (error) {
|
|
11
|
-
return { successful: false, error, error_description, error_uri };
|
|
12
|
-
}
|
|
13
|
-
return {
|
|
14
|
-
successful: false,
|
|
15
|
-
error: "invalid_request",
|
|
16
|
-
error_description: "Missing code or error in response",
|
|
17
|
-
error_uri: null
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
const generateOAuthErrorDescription = (params) => {
|
|
21
|
-
const error = params.error;
|
|
22
|
-
const errorDescription = params.error_description;
|
|
23
|
-
const errorUri = params.error_uri;
|
|
24
|
-
return [
|
|
25
|
-
`Error: ${error}.`,
|
|
26
|
-
errorDescription ? `Details: ${errorDescription}.` : "",
|
|
27
|
-
errorUri ? `More info: ${errorUri}.` : ""
|
|
28
|
-
].filter(Boolean).join("\n");
|
|
29
|
-
};
|
|
30
|
-
export {
|
|
31
|
-
generateOAuthErrorDescription as g,
|
|
32
|
-
parseOAuthCallbackParams as p
|
|
33
|
-
};
|