@mcp-use/inspector 0.8.3-canary.0 → 0.9.0-canary.2
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/dist/cli.js +29 -0
- package/dist/client/assets/browser-B7TIAiNJ.js +17967 -0
- package/dist/client/assets/display-A5IEINAP-CxMIzbGz.js +480 -0
- package/dist/client/assets/{embeddings-BiULWmf2.js → embeddings-CF86nH4i.js} +6 -1
- package/dist/client/assets/{index-BIMuOeon.js → index-B8yt0GKw.js} +11662 -2464
- package/dist/client/assets/{index-DAor5Yr-.js → index-BCYl76Jb.js} +2 -3
- package/dist/client/assets/index-BLXuIjh0.js +725 -0
- package/dist/client/assets/index-BMuvzxLw.js +400 -0
- package/dist/client/assets/{index-DPEyMG1a.js → index-BaR5HKmC.js} +28313 -19836
- package/dist/client/assets/{index-CwF__a_n.css → index-Br7cLVs6.css} +29 -0
- package/dist/client/assets/{index-B9oLougE.js → index-CV9pPOH9.js} +36 -4
- package/dist/client/assets/{index-C4Csm_Xe.js → index-DoWSnGj3.js} +76 -784
- package/dist/client/assets/index-RN6yjAFG.js +2817 -0
- package/dist/client/assets/{display-YIYC6WJE-BTd-7ehF.js → index-cuGVED_J.js} +149 -926
- package/dist/client/assets/util-D59LNlyU.js +23 -0
- package/dist/client/assets/{winston-DPHXtm9k.js → winston-nzaZqgVL.js} +154 -760
- package/dist/client/index.html +3 -3
- package/dist/server/{chunk-26WTIZ4S.js → chunk-LNMQYGXR.js} +29 -0
- package/dist/server/{chunk-6ZFXPXO4.js → chunk-PBQJCPZX.js} +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/middleware.js +2 -2
- package/dist/server/server.js +1 -1
- package/dist/server/shared-static.d.ts.map +1 -1
- package/dist/server/shared-static.js +1 -1
- package/package.json +2 -2
- package/dist/client/assets/browser-CeWBn_h2.js +0 -38211
- package/dist/client/assets/chunk-VL2OQCWN-aIw8FJQU.js +0 -6475
package/dist/cli.js
CHANGED
|
@@ -1399,6 +1399,35 @@ function registerStaticRoutes(app2, clientDistPath) {
|
|
|
1399
1399
|
app2.get("/", (c) => {
|
|
1400
1400
|
return c.redirect("/inspector");
|
|
1401
1401
|
});
|
|
1402
|
+
app2.get("/inspector", (c) => {
|
|
1403
|
+
const indexPath = join2(distPath, "index.html");
|
|
1404
|
+
if (existsSync2(indexPath)) {
|
|
1405
|
+
const content = readFileSync(indexPath, "utf-8");
|
|
1406
|
+
return c.html(content);
|
|
1407
|
+
}
|
|
1408
|
+
return c.html(`
|
|
1409
|
+
<!DOCTYPE html>
|
|
1410
|
+
<html>
|
|
1411
|
+
<head>
|
|
1412
|
+
<title>MCP Inspector</title>
|
|
1413
|
+
</head>
|
|
1414
|
+
<body>
|
|
1415
|
+
<h1>MCP Inspector</h1>
|
|
1416
|
+
<p>Client files not found. Please run 'yarn build' to build the UI.</p>
|
|
1417
|
+
</body>
|
|
1418
|
+
</html>
|
|
1419
|
+
`);
|
|
1420
|
+
});
|
|
1421
|
+
const handleInspectorRoute = (c) => {
|
|
1422
|
+
const indexPath = join2(distPath, "index.html");
|
|
1423
|
+
if (existsSync2(indexPath)) {
|
|
1424
|
+
const content = readFileSync(indexPath, "utf-8");
|
|
1425
|
+
return c.html(content);
|
|
1426
|
+
}
|
|
1427
|
+
return c.notFound();
|
|
1428
|
+
};
|
|
1429
|
+
app2.get("/inspector/*", handleInspectorRoute);
|
|
1430
|
+
app2.post("/inspector/*", handleInspectorRoute);
|
|
1402
1431
|
app2.get("*", (c) => {
|
|
1403
1432
|
const indexPath = join2(distPath, "index.html");
|
|
1404
1433
|
if (existsSync2(indexPath)) {
|