@ramarivera/mcpjam-inspector 1.5.19 → 1.5.21
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 +5 -5
- package/package.json +1 -1
package/bin/start.js
CHANGED
|
@@ -385,7 +385,6 @@ async function main() {
|
|
|
385
385
|
// Parse command line arguments
|
|
386
386
|
const args = process.argv.slice(2);
|
|
387
387
|
const envVars = {};
|
|
388
|
-
let parsingFlags = true;
|
|
389
388
|
let ollamaModel = null;
|
|
390
389
|
let mcpServerCommand = null;
|
|
391
390
|
let mcpServerArgs = [];
|
|
@@ -420,7 +419,6 @@ async function main() {
|
|
|
420
419
|
const arg = args[i];
|
|
421
420
|
|
|
422
421
|
if (arg === "--") {
|
|
423
|
-
parsingFlags = false;
|
|
424
422
|
continue;
|
|
425
423
|
}
|
|
426
424
|
|
|
@@ -531,9 +529,9 @@ async function main() {
|
|
|
531
529
|
continue;
|
|
532
530
|
}
|
|
533
531
|
|
|
534
|
-
// If we encounter a non-flag argument
|
|
535
|
-
//
|
|
536
|
-
if (!arg.startsWith("-")
|
|
532
|
+
// If we encounter a non-flag argument (or an unknown dash-prefixed argument),
|
|
533
|
+
// treat it as MCP server command and stop parsing launcher flags.
|
|
534
|
+
if (!arg.startsWith("-")) {
|
|
537
535
|
mcpServerCommand = arg;
|
|
538
536
|
// Collect all remaining arguments as server arguments
|
|
539
537
|
mcpServerArgs = args.slice(i + 1);
|
|
@@ -739,6 +737,8 @@ async function main() {
|
|
|
739
737
|
envVars.SERVER_PORT = PORT;
|
|
740
738
|
envVars.BASE_URL = `http://${baseHost}:${PORT}`;
|
|
741
739
|
Object.assign(process.env, envVars);
|
|
740
|
+
logInfo(`Listening on ${envVars.BASE_URL}`);
|
|
741
|
+
logInfo(`Browser auto-open is ${shouldOpenBrowser ? "enabled" : "disabled"} (${shouldOpenBrowser ? "omit --no-open to keep enabled" : "set --no-open"})`);
|
|
742
742
|
} catch (error) {
|
|
743
743
|
logError(`Port configuration failed: ${error.message}`);
|
|
744
744
|
throw error;
|