promptgraph-mcp 1.5.12 → 1.5.13
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/index.js +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -62,7 +62,9 @@ if (!args[0] && process.stdin.isTTY) {
|
|
|
62
62
|
process.exit(0);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
// Only reject an EXPLICIT unknown command. With no args (args[0] undefined),
|
|
66
|
+
// fall through to start the MCP server — never print to stdout here.
|
|
67
|
+
if (args[0] && !KNOWN_COMMANDS.has(args[0])) {
|
|
66
68
|
console.log(chalk.red('✗') + ' Unknown command: ' + chalk.white(args[0]));
|
|
67
69
|
console.log(chalk.gray(' Run `' + bin + ' help` to see available commands.\n'));
|
|
68
70
|
process.exit(1);
|