@modelcontextprotocol/inspector 2.2.0 → 2.4.0
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 +274 -22
- package/clients/cli/build/index.js +11593 -9967
- package/clients/launcher/build/index.js +6 -4
- package/clients/tui/build/index.js +3774 -362
- package/clients/web/build/index.js +2224 -300
- package/clients/web/dist/assets/{index-CiUpWldH.css → index-DQVN73FG.css} +1 -1
- package/clients/web/dist/assets/index-JCsLrWVa.js +1484 -0
- package/clients/web/dist/assets/{prism-light-CWdjx3zH.js → prism-light-HLcnHJHw.js} +1 -1
- package/clients/web/dist/assets/worker-json-8CDXFfik.js +1631 -0
- package/clients/web/dist/index.html +2 -2
- package/clients/web/static/sandbox_proxy.html +122 -10
- package/package.json +10 -6
- package/clients/tui/build/chunk-MCKGQKYU.js +0 -15
- package/clients/tui/build/undici-HXPKCIY3.js +0 -25789
- package/clients/web/build/chunk-MCKGQKYU.js +0 -15
- package/clients/web/build/undici-HXPKCIY3.js +0 -25789
- package/clients/web/dist/assets/index-BrCIxo3Q.js +0 -242
|
@@ -67,10 +67,12 @@ async function run() {
|
|
|
67
67
|
// rather than throwing "handleError is not a function" over it.
|
|
68
68
|
if (typeof handleError !== "function")
|
|
69
69
|
throw err;
|
|
70
|
-
//
|
|
71
|
-
//
|
|
72
|
-
//
|
|
73
|
-
|
|
70
|
+
// Write-then-exit like the direct bin — and AWAIT it. The envelope being
|
|
71
|
+
// a few hundred bytes is not the safeguard it looks like: on a pipe the
|
|
72
|
+
// write is asynchronous, so `process.exit()` discards it whether or not
|
|
73
|
+
// it would have fitted in the buffer. `handleError` settles on the write
|
|
74
|
+
// callback before exiting; skipping the await puts the truncation back.
|
|
75
|
+
await handleError(err); // writes the envelope + process.exit(code)
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
78
|
else {
|