@modelcontextprotocol/inspector 0.17.2 → 0.17.5
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/cli/build/client/prompts.js +10 -5
- package/cli/build/client/resources.js +12 -6
- package/cli/build/client/tools.js +17 -4
- package/cli/build/index.js +25 -8
- package/client/dist/assets/{OAuthCallback-DOgG8dke.js → OAuthCallback-Bojw9MF2.js} +1 -1
- package/client/dist/assets/{OAuthDebugCallback-m70IPFbL.js → OAuthDebugCallback-ms23dRpk.js} +1 -1
- package/client/dist/assets/{index-Bl2jgoAl.js → index-CneFQkmB.js} +30375 -12463
- package/client/dist/assets/{index-CV-uzqYs.css → index-DH5T2nDo.css} +29 -2
- package/client/dist/index.html +2 -2
- package/package.json +6 -6
- package/server/build/index.js +17 -3
|
@@ -916,11 +916,11 @@ video {
|
|
|
916
916
|
.mt-4 {
|
|
917
917
|
margin-top: 1rem;
|
|
918
918
|
}
|
|
919
|
-
.line-clamp-
|
|
919
|
+
.line-clamp-2 {
|
|
920
920
|
overflow: hidden;
|
|
921
921
|
display: -webkit-box;
|
|
922
922
|
-webkit-box-orient: vertical;
|
|
923
|
-
-webkit-line-clamp:
|
|
923
|
+
-webkit-line-clamp: 2;
|
|
924
924
|
}
|
|
925
925
|
.block {
|
|
926
926
|
display: block;
|
|
@@ -1173,6 +1173,11 @@ video {
|
|
|
1173
1173
|
margin-right: calc(0.5rem * var(--tw-space-x-reverse));
|
|
1174
1174
|
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1175
1175
|
}
|
|
1176
|
+
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
|
|
1177
|
+
--tw-space-y-reverse: 0;
|
|
1178
|
+
margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
|
|
1179
|
+
margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
|
|
1180
|
+
}
|
|
1176
1181
|
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
|
|
1177
1182
|
--tw-space-y-reverse: 0;
|
|
1178
1183
|
margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
|
|
@@ -1398,6 +1403,10 @@ video {
|
|
|
1398
1403
|
--tw-bg-opacity: 1;
|
|
1399
1404
|
background-color: rgb(254 249 195 / var(--tw-bg-opacity, 1));
|
|
1400
1405
|
}
|
|
1406
|
+
.object-contain {
|
|
1407
|
+
-o-object-fit: contain;
|
|
1408
|
+
object-fit: contain;
|
|
1409
|
+
}
|
|
1401
1410
|
.p-0 {
|
|
1402
1411
|
padding: 0px;
|
|
1403
1412
|
}
|
|
@@ -1472,6 +1481,10 @@ video {
|
|
|
1472
1481
|
padding-top: 1.5rem;
|
|
1473
1482
|
padding-bottom: 1.5rem;
|
|
1474
1483
|
}
|
|
1484
|
+
.py-8 {
|
|
1485
|
+
padding-top: 2rem;
|
|
1486
|
+
padding-bottom: 2rem;
|
|
1487
|
+
}
|
|
1475
1488
|
.pb-4 {
|
|
1476
1489
|
padding-bottom: 1rem;
|
|
1477
1490
|
}
|
|
@@ -1591,6 +1604,10 @@ video {
|
|
|
1591
1604
|
--tw-text-opacity: 1;
|
|
1592
1605
|
color: rgb(55 65 81 / var(--tw-text-opacity, 1));
|
|
1593
1606
|
}
|
|
1607
|
+
.text-gray-800 {
|
|
1608
|
+
--tw-text-opacity: 1;
|
|
1609
|
+
color: rgb(31 41 55 / var(--tw-text-opacity, 1));
|
|
1610
|
+
}
|
|
1594
1611
|
.text-gray-900 {
|
|
1595
1612
|
--tw-text-opacity: 1;
|
|
1596
1613
|
color: rgb(17 24 39 / var(--tw-text-opacity, 1));
|
|
@@ -2012,6 +2029,11 @@ h1 {
|
|
|
2012
2029
|
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
|
|
2013
2030
|
}
|
|
2014
2031
|
|
|
2032
|
+
.focus-visible\:ring-red-500:focus-visible {
|
|
2033
|
+
--tw-ring-opacity: 1;
|
|
2034
|
+
--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity, 1));
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2015
2037
|
.focus-visible\:ring-ring:focus-visible {
|
|
2016
2038
|
--tw-ring-color: hsl(var(--ring));
|
|
2017
2039
|
}
|
|
@@ -2375,6 +2397,11 @@ h1 {
|
|
|
2375
2397
|
color: rgb(243 244 246 / var(--tw-text-opacity, 1));
|
|
2376
2398
|
}
|
|
2377
2399
|
|
|
2400
|
+
.dark\:text-gray-200:is(.dark *) {
|
|
2401
|
+
--tw-text-opacity: 1;
|
|
2402
|
+
color: rgb(229 231 235 / var(--tw-text-opacity, 1));
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2378
2405
|
.dark\:text-gray-300:is(.dark *) {
|
|
2379
2406
|
--tw-text-opacity: 1;
|
|
2380
2407
|
color: rgb(209 213 219 / var(--tw-text-opacity, 1));
|
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-CneFQkmB.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DH5T2nDo.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.17.
|
|
3
|
+
"version": "0.17.5",
|
|
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.17.
|
|
51
|
-
"@modelcontextprotocol/inspector-client": "^0.17.
|
|
52
|
-
"@modelcontextprotocol/inspector-server": "^0.17.
|
|
53
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
50
|
+
"@modelcontextprotocol/inspector-cli": "^0.17.5",
|
|
51
|
+
"@modelcontextprotocol/inspector-client": "^0.17.5",
|
|
52
|
+
"@modelcontextprotocol/inspector-server": "^0.17.5",
|
|
53
|
+
"@modelcontextprotocol/sdk": "^1.23.0",
|
|
54
54
|
"concurrently": "^9.2.0",
|
|
55
55
|
"node-fetch": "^3.3.2",
|
|
56
56
|
"open": "^10.2.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"jest-fixed-jsdom": "^0.0.9",
|
|
69
69
|
"lint-staged": "^16.1.5",
|
|
70
70
|
"playwright": "^1.56.1",
|
|
71
|
-
"prettier": "^3.
|
|
71
|
+
"prettier": "^3.7.1",
|
|
72
72
|
"rimraf": "^6.0.1",
|
|
73
73
|
"typescript": "^5.4.2"
|
|
74
74
|
},
|
package/server/build/index.js
CHANGED
|
@@ -187,18 +187,31 @@ const authMiddleware = (req, res, next) => {
|
|
|
187
187
|
* This is necessary for the EventSource polyfill which expects web streams
|
|
188
188
|
*/
|
|
189
189
|
const createWebReadableStream = (nodeStream) => {
|
|
190
|
+
let closed = false;
|
|
190
191
|
return new ReadableStream({
|
|
191
192
|
start(controller) {
|
|
192
193
|
nodeStream.on("data", (chunk) => {
|
|
193
|
-
|
|
194
|
+
if (!closed) {
|
|
195
|
+
controller.enqueue(chunk);
|
|
196
|
+
}
|
|
194
197
|
});
|
|
195
198
|
nodeStream.on("end", () => {
|
|
196
|
-
|
|
199
|
+
if (!closed) {
|
|
200
|
+
closed = true;
|
|
201
|
+
controller.close();
|
|
202
|
+
}
|
|
197
203
|
});
|
|
198
204
|
nodeStream.on("error", (err) => {
|
|
199
|
-
|
|
205
|
+
if (!closed) {
|
|
206
|
+
closed = true;
|
|
207
|
+
controller.error(err);
|
|
208
|
+
}
|
|
200
209
|
});
|
|
201
210
|
},
|
|
211
|
+
cancel() {
|
|
212
|
+
closed = true;
|
|
213
|
+
nodeStream.destroy();
|
|
214
|
+
},
|
|
202
215
|
});
|
|
203
216
|
};
|
|
204
217
|
/**
|
|
@@ -396,6 +409,7 @@ app.delete("/mcp", originValidationMiddleware, authMiddleware, async (req, res)
|
|
|
396
409
|
}
|
|
397
410
|
else {
|
|
398
411
|
await serverTransport.terminateSession();
|
|
412
|
+
await serverTransport.close();
|
|
399
413
|
webAppTransports.delete(sessionId);
|
|
400
414
|
serverTransports.delete(sessionId);
|
|
401
415
|
sessionHeaderHolders.delete(sessionId);
|