@mcpjam/inspector 0.9.47 → 0.9.49
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/client/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/mcp_jam.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>MCPJam Inspector</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-CP5sSMH5.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-B-6IFHCF.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/dist/server/index.js
CHANGED
|
@@ -6,9 +6,8 @@ import { Hono as Hono13 } from "hono";
|
|
|
6
6
|
import { cors } from "hono/cors";
|
|
7
7
|
import { logger } from "hono/logger";
|
|
8
8
|
import { serveStatic } from "@hono/node-server/serve-static";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { fileURLToPath } from "url";
|
|
9
|
+
import { readFileSync } from "fs";
|
|
10
|
+
import { join } from "path";
|
|
12
11
|
|
|
13
12
|
// routes/mcp/index.ts
|
|
14
13
|
import { Hono as Hono12 } from "hono";
|
|
@@ -3568,8 +3567,6 @@ function logBox(content, title) {
|
|
|
3568
3567
|
});
|
|
3569
3568
|
console.log("\u2514" + "\u2500".repeat(width) + "\u2518");
|
|
3570
3569
|
}
|
|
3571
|
-
var __dirname = dirname(fileURLToPath(import.meta.url));
|
|
3572
|
-
var projectRoot = join(__dirname, "..", "..");
|
|
3573
3570
|
function getMCPConfigFromEnv() {
|
|
3574
3571
|
const configData = process.env.MCP_CONFIG_DATA;
|
|
3575
3572
|
if (configData) {
|
|
@@ -3628,20 +3625,10 @@ try {
|
|
|
3628
3625
|
}
|
|
3629
3626
|
var app = new Hono13();
|
|
3630
3627
|
try {
|
|
3631
|
-
const
|
|
3632
|
-
|
|
3633
|
-
if (existsSync(envFilePath)) {
|
|
3634
|
-
dotenv.config({ path: envFilePath });
|
|
3635
|
-
} else {
|
|
3636
|
-
dotenv.config({ path: envFileName });
|
|
3637
|
-
}
|
|
3628
|
+
const envFile = process.env.NODE_ENV === "production" ? ".env.production" : ".env.development";
|
|
3629
|
+
dotenv.config({ path: envFile });
|
|
3638
3630
|
if (!process.env.CONVEX_HTTP_URL) {
|
|
3639
|
-
|
|
3640
|
-
if (existsSync(fallbackEnv)) {
|
|
3641
|
-
dotenv.config({ path: fallbackEnv });
|
|
3642
|
-
} else {
|
|
3643
|
-
dotenv.config();
|
|
3644
|
-
}
|
|
3631
|
+
dotenv.config();
|
|
3645
3632
|
}
|
|
3646
3633
|
} catch (error) {
|
|
3647
3634
|
console.warn("[startup] Failed loading env files", error);
|