@modelcontextprotocol/inspector 0.10.2 → 0.12.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/client/bin/client.js +26 -2
- package/client/dist/assets/{OAuthCallback-DsrZ1Q5-.js → OAuthCallback-FfoeB75N.js} +1 -1
- package/client/dist/assets/{index-CMyU_PZH.js → index-CHwMp9hp.js} +5370 -4637
- package/client/dist/index.html +1 -1
- package/package.json +9 -5
- package/server/build/index.js +147 -15
package/client/bin/client.js
CHANGED
|
@@ -9,10 +9,34 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
9
9
|
const distPath = join(__dirname, "../dist");
|
|
10
10
|
|
|
11
11
|
const server = http.createServer((request, response) => {
|
|
12
|
-
|
|
12
|
+
const handlerOptions = {
|
|
13
13
|
public: distPath,
|
|
14
14
|
rewrites: [{ source: "/**", destination: "/index.html" }],
|
|
15
|
-
|
|
15
|
+
headers: [
|
|
16
|
+
{
|
|
17
|
+
// Ensure index.html is never cached
|
|
18
|
+
source: "index.html",
|
|
19
|
+
headers: [
|
|
20
|
+
{
|
|
21
|
+
key: "Cache-Control",
|
|
22
|
+
value: "no-cache, no-store, max-age=0",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
// Allow long-term caching for hashed assets
|
|
28
|
+
source: "assets/**",
|
|
29
|
+
headers: [
|
|
30
|
+
{
|
|
31
|
+
key: "Cache-Control",
|
|
32
|
+
value: "public, max-age=31536000, immutable",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
return handler(request, response, handlerOptions);
|
|
16
40
|
});
|
|
17
41
|
|
|
18
42
|
const port = process.env.PORT || 6274;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useToast, r as reactExports, j as jsxRuntimeExports, S as SESSION_KEYS, I as InspectorOAuthClientProvider, a as auth } from "./index-
|
|
1
|
+
import { u as useToast, r as reactExports, j as jsxRuntimeExports, S as SESSION_KEYS, I as InspectorOAuthClientProvider, a as auth } from "./index-CHwMp9hp.js";
|
|
2
2
|
const parseOAuthCallbackParams = (location) => {
|
|
3
3
|
const params = new URLSearchParams(location);
|
|
4
4
|
const code = params.get("code");
|