@modeltoolsprotocol/mtpcli 1.3.2 → 1.3.3
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/dist/index.js +11 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8843,7 +8843,7 @@ var init_mcp = __esm(() => {
|
|
|
8843
8843
|
});
|
|
8844
8844
|
|
|
8845
8845
|
// src/version.ts
|
|
8846
|
-
var VERSION2 = "1.3.
|
|
8846
|
+
var VERSION2 = "1.3.3";
|
|
8847
8847
|
|
|
8848
8848
|
// src/serve.ts
|
|
8849
8849
|
var exports_serve = {};
|
|
@@ -10642,6 +10642,15 @@ function describe(program2, options) {
|
|
|
10642
10642
|
function withDescribe(program2, options) {
|
|
10643
10643
|
program2.option("--mtp-describe", "Output machine-readable MTP JSON schema");
|
|
10644
10644
|
program2.on("option:mtp-describe", () => {
|
|
10645
|
+
const subNames = new Set;
|
|
10646
|
+
for (const cmd of program2.commands) {
|
|
10647
|
+
subNames.add(cmd.name());
|
|
10648
|
+
for (const alias of cmd.aliases())
|
|
10649
|
+
subNames.add(alias);
|
|
10650
|
+
}
|
|
10651
|
+
const args = process.argv.slice(2);
|
|
10652
|
+
if (args.some((a) => subNames.has(a)))
|
|
10653
|
+
return;
|
|
10645
10654
|
const schema = describe(program2, options);
|
|
10646
10655
|
const clean = JSON.parse(JSON.stringify(schema));
|
|
10647
10656
|
console.log(JSON.stringify(clean, null, 2));
|
|
@@ -10651,7 +10660,7 @@ function withDescribe(program2, options) {
|
|
|
10651
10660
|
}
|
|
10652
10661
|
|
|
10653
10662
|
// src/version.ts
|
|
10654
|
-
var VERSION = "1.3.
|
|
10663
|
+
var VERSION = "1.3.3";
|
|
10655
10664
|
|
|
10656
10665
|
// src/index.ts
|
|
10657
10666
|
var program2 = new Command().name("mtpcli").version(VERSION).description("Unified CLI for discovering, authenticating, and bridging --mtp-describe-compatible tools").addHelpText("after", `
|