@mcpjam/inspector 1.0.9 → 1.0.11

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 CHANGED
@@ -3,4 +3,5 @@ CONVEX_URL=https://outstanding-fennec-304.convex.cloud
3
3
  VITE_WORKOS_CLIENT_ID=client_01K4C1TVPBE7JTBFQJF9SDW9P9
4
4
  VITE_WORKOS_REDIRECT_URI=mcpjam://oauth/callback
5
5
  CONVEX_HTTP_URL=https://outstanding-fennec-304.convex.site
6
- ENVIRONMENT=production
6
+ ENVIRONMENT=production
7
+ PORT=6274
package/bin/start.js CHANGED
@@ -342,7 +342,7 @@ async function main() {
342
342
  envVars.PORT = port;
343
343
  // Default: localhost in development, 127.0.0.1 in production
344
344
  const defaultHost =
345
- process.env.ENVIRONMENT === "production" ? "127.0.0.1" : "localhost";
345
+ process.env.ENVIRONMENT === "dev" ? "localhost" : "127.0.0.1";
346
346
  const baseHost = process.env.HOST || defaultHost;
347
347
  envVars.BASE_URL = `http://${baseHost}:${port}`;
348
348
  continue;
@@ -495,7 +495,7 @@ async function main() {
495
495
  Object.assign(process.env, envVars);
496
496
 
497
497
  // Port configuration (fixed default to 3000)
498
- const requestedPort = parseInt(process.env.PORT ?? "3000", 10);
498
+ const requestedPort = parseInt(process.env.PORT ?? "6274", 10);
499
499
  let PORT;
500
500
 
501
501
  try {
@@ -516,7 +516,7 @@ async function main() {
516
516
  }
517
517
  } else {
518
518
  // Fixed port policy: use default port 3000 and fail fast if unavailable
519
- logInfo("No specific port requested, using fixed default port 3000");
519
+ logInfo("No specific port requested, using fixed default port 6274");
520
520
  if (await isPortAvailable(requestedPort)) {
521
521
  PORT = requestedPort.toString();
522
522
  logSuccess(`Default port ${requestedPort} is available`);
@@ -532,7 +532,7 @@ async function main() {
532
532
  envVars.PORT = PORT;
533
533
  // Default: localhost in development, 127.0.0.1 in production
534
534
  const defaultHost =
535
- process.env.ENVIRONMENT === "production" ? "127.0.0.1" : "localhost";
535
+ process.env.ENVIRONMENT === "dev" ? "localhost" : "127.0.0.1";
536
536
  const baseHost = process.env.HOST || defaultHost;
537
537
  envVars.BASE_URL = `http://${baseHost}:${PORT}`;
538
538
  Object.assign(process.env, envVars);
@@ -619,7 +619,7 @@ async function main() {
619
619
  // Use BASE_URL if set, otherwise construct from HOST and PORT
620
620
  // Default: localhost in development, 127.0.0.1 in production
621
621
  const defaultHost =
622
- process.env.ENVIRONMENT === "production" ? "127.0.0.1" : "localhost";
622
+ process.env.ENVIRONMENT === "dev" ? "localhost" : "127.0.0.1";
623
623
  const host = process.env.HOST || defaultHost;
624
624
  const url = process.env.BASE_URL || `http://${host}:${PORT}`;
625
625