@mcpjam/inspector 1.0.6 → 1.0.7

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/start.js CHANGED
@@ -167,40 +167,6 @@ function spawnPromise(command, args, options) {
167
167
  });
168
168
  }
169
169
 
170
- async function showSuccessMessage(port) {
171
- logDivider();
172
-
173
- // Use BASE_URL if set, otherwise construct from HOST and port
174
- // Default: localhost in development, 127.0.0.1 in production
175
- const defaultHost =
176
- process.env.NODE_ENV === "production" ? "127.0.0.1" : "localhost";
177
- const host = process.env.HOST || defaultHost;
178
- const baseUrl = process.env.BASE_URL || `http://${host}:${port}`;
179
-
180
- const successText = `🎉 MCP Inspector is now running successfully!
181
-
182
- 📱 Access your application at: ${baseUrl}
183
- 🔧 Unified server ready to handle MCP connections
184
- 📊 Monitor your MCP tools and resources
185
- 💬 Start chatting with your MCP-enabled AI
186
-
187
- Press Ctrl+C to stop the server`;
188
-
189
- logBox(successText, "🚀 Ready to Go!");
190
-
191
- logDivider();
192
-
193
- // Automatically open the browser
194
- try {
195
- await open(baseUrl);
196
- logSuccess(`🌐 Browser opened at ${baseUrl}`);
197
- } catch (error) {
198
- logWarning(
199
- `Could not open browser automatically. Please visit ${baseUrl} manually.`,
200
- );
201
- }
202
- }
203
-
204
170
  async function checkOllamaInstalled() {
205
171
  try {
206
172
  await spawnPromise("ollama", ["--version"], { echoOutput: false });
@@ -653,7 +619,7 @@ async function main() {
653
619
  // Use BASE_URL if set, otherwise construct from HOST and PORT
654
620
  // Default: localhost in development, 127.0.0.1 in production
655
621
  const defaultHost =
656
- process.env.NODE_ENV === "production" ? "127.0.0.1" : "localhost";
622
+ process.env.ENVIRONMENT === "production" ? "127.0.0.1" : "localhost";
657
623
  const host = process.env.HOST || defaultHost;
658
624
  const url = process.env.BASE_URL || `http://${host}:${PORT}`;
659
625