@mcpjam/inspector 1.0.10 → 1.0.12
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/.env.production +2 -1
- package/README.md +1 -1
- package/bin/start.js +2 -2
- package/dist/client/assets/index-DF7gom5k.css +1 -0
- package/dist/client/assets/{index-DnqKdYct.js → index-_lUj8lkq.js} +142 -137
- package/dist/client/index.html +2 -2
- package/dist/server/index.js +3 -2
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/client/assets/index-rt9IYzHW.css +0 -1
package/dist/client/index.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
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-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-_lUj8lkq.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DF7gom5k.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
package/dist/server/index.js
CHANGED
|
@@ -966,7 +966,8 @@ var RpcLogBus = class {
|
|
|
966
966
|
if (filter.size > 0 && !filter.has(serverId)) continue;
|
|
967
967
|
all.push(...buf);
|
|
968
968
|
}
|
|
969
|
-
if (
|
|
969
|
+
if (limit === 0) return [];
|
|
970
|
+
if (!Number.isFinite(limit) || limit < 0) return all;
|
|
970
971
|
return all.slice(Math.max(0, all.length - limit));
|
|
971
972
|
}
|
|
972
973
|
};
|
|
@@ -1105,7 +1106,7 @@ servers.post("/reconnect", async (c) => {
|
|
|
1105
1106
|
servers.get("/rpc/stream", async (c) => {
|
|
1106
1107
|
const serverIds = c.mcpClientManager.listServers();
|
|
1107
1108
|
const url = new URL(c.req.url);
|
|
1108
|
-
const replay = parseInt(url.searchParams.get("replay") || "
|
|
1109
|
+
const replay = parseInt(url.searchParams.get("replay") || "0", 10);
|
|
1109
1110
|
const encoder = new TextEncoder();
|
|
1110
1111
|
const stream = new ReadableStream({
|
|
1111
1112
|
start(controller) {
|