@modelcontextprotocol/inspector 0.2.3 ā 0.2.6
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/bin/cli.js +8 -2
- package/client/dist/assets/index-DY7RF803.css +2303 -0
- package/client/dist/assets/index-Dp6cG-Sy.js +22525 -0
- package/client/dist/index.html +2 -2
- package/package.json +5 -5
- package/server/build/index.js +5 -3
- package/client/dist/assets/index-CeTDqh-y.css +0 -1
- package/client/dist/assets/index-k3fLs7fd.js +0 -185
package/bin/cli.js
CHANGED
|
@@ -51,18 +51,24 @@ async function main() {
|
|
|
51
51
|
...(command ? [`--env`, command] : []),
|
|
52
52
|
...(mcpServerArgs ? ["--args", mcpServerArgs.join(" ")] : []),
|
|
53
53
|
],
|
|
54
|
-
{
|
|
54
|
+
{
|
|
55
|
+
env: { ...process.env, PORT: SERVER_PORT },
|
|
56
|
+
signal: abort.signal,
|
|
57
|
+
echoOutput: true,
|
|
58
|
+
},
|
|
55
59
|
);
|
|
56
60
|
|
|
57
61
|
const client = spawnPromise("node", [inspectorClientPath], {
|
|
58
62
|
env: { ...process.env, PORT: CLIENT_PORT },
|
|
59
63
|
signal: abort.signal,
|
|
64
|
+
echoOutput: true,
|
|
60
65
|
});
|
|
61
66
|
|
|
62
67
|
// Make sure our server/client didn't immediately fail
|
|
63
68
|
await Promise.any([server, client, delay(2 * 1000)]);
|
|
69
|
+
const portParam = SERVER_PORT === "3000" ? "" : `?proxyPort=${SERVER_PORT}`;
|
|
64
70
|
console.log(
|
|
65
|
-
`\nš MCP Inspector is up and running at http://localhost:${CLIENT_PORT} š`,
|
|
71
|
+
`\nš MCP Inspector is up and running at http://localhost:${CLIENT_PORT}${portParam} š`,
|
|
66
72
|
);
|
|
67
73
|
|
|
68
74
|
try {
|