@tronsfey/ucli 0.5.0 → 0.5.1
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/{client-3I7XBDJU.js → client-LCWUZRZX.js} +94 -4
- package/dist/client-LCWUZRZX.js.map +1 -0
- package/dist/index.js +326 -69
- package/dist/index.js.map +1 -1
- package/dist/{runner-GVYIJNHN.js → runner-HH357SRR.js} +33 -17
- package/dist/{runner-GVYIJNHN.js.map → runner-HH357SRR.js.map} +1 -1
- package/package.json +2 -2
- package/skill.md +92 -8
- package/dist/client-3I7XBDJU.js.map +0 -1
|
@@ -36662,9 +36662,95 @@ var require_streamableHttp = __commonJS({
|
|
|
36662
36662
|
}
|
|
36663
36663
|
});
|
|
36664
36664
|
|
|
36665
|
-
// ../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.
|
|
36665
|
+
// ../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.2_zod@4.3.6/node_modules/@tronsfey/mcp2cli/package.json
|
|
36666
|
+
var require_package = __commonJS({
|
|
36667
|
+
"../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.2_zod@4.3.6/node_modules/@tronsfey/mcp2cli/package.json"(exports, module) {
|
|
36668
|
+
module.exports = {
|
|
36669
|
+
name: "@tronsfey/mcp2cli",
|
|
36670
|
+
version: "1.0.2",
|
|
36671
|
+
description: "Command-line proxy for any MCP server \u2014 call tools directly from the terminal",
|
|
36672
|
+
main: "dist/index.js",
|
|
36673
|
+
bin: {
|
|
36674
|
+
mcp2cli: "./bin/mcp2cli"
|
|
36675
|
+
},
|
|
36676
|
+
files: [
|
|
36677
|
+
"dist/",
|
|
36678
|
+
"bin/",
|
|
36679
|
+
"README.md",
|
|
36680
|
+
"LICENSE"
|
|
36681
|
+
],
|
|
36682
|
+
keywords: [
|
|
36683
|
+
"mcp",
|
|
36684
|
+
"model-context-protocol",
|
|
36685
|
+
"cli",
|
|
36686
|
+
"proxy",
|
|
36687
|
+
"commander",
|
|
36688
|
+
"typescript",
|
|
36689
|
+
"ai",
|
|
36690
|
+
"tools"
|
|
36691
|
+
],
|
|
36692
|
+
author: "",
|
|
36693
|
+
license: "MIT",
|
|
36694
|
+
repository: {
|
|
36695
|
+
type: "git",
|
|
36696
|
+
url: "https://github.com/tronsfey928/mcp2cli.git"
|
|
36697
|
+
},
|
|
36698
|
+
homepage: "https://github.com/tronsfey928/mcp2cli#readme",
|
|
36699
|
+
bugs: {
|
|
36700
|
+
url: "https://github.com/tronsfey928/mcp2cli/issues"
|
|
36701
|
+
},
|
|
36702
|
+
engines: {
|
|
36703
|
+
node: ">=18"
|
|
36704
|
+
},
|
|
36705
|
+
scripts: {
|
|
36706
|
+
build: "tsc",
|
|
36707
|
+
dev: "ts-node src/index.ts",
|
|
36708
|
+
start: "node dist/index.js",
|
|
36709
|
+
test: "jest --testPathIgnorePatterns=tests/integration",
|
|
36710
|
+
"test:coverage": "jest --coverage --testPathIgnorePatterns=tests/integration",
|
|
36711
|
+
"test:e2e": "npm run build && jest --testPathPattern=tests/integration --testTimeout=30000 --runInBand --forceExit",
|
|
36712
|
+
lint: "tsc --noEmit",
|
|
36713
|
+
clean: "rm -rf dist",
|
|
36714
|
+
prepublishOnly: "npm run lint && npm test && npm run build"
|
|
36715
|
+
},
|
|
36716
|
+
dependencies: {
|
|
36717
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
36718
|
+
chalk: "^4.1.2",
|
|
36719
|
+
commander: "^12.1.0",
|
|
36720
|
+
"fs-extra": "^11.2.0",
|
|
36721
|
+
jmespath: "^0.16.0",
|
|
36722
|
+
ora: "^5.4.1"
|
|
36723
|
+
},
|
|
36724
|
+
devDependencies: {
|
|
36725
|
+
"@modelcontextprotocol/server-filesystem": "^2026.1.14",
|
|
36726
|
+
"@types/express": "^4.17.25",
|
|
36727
|
+
"@types/fs-extra": "^11.0.4",
|
|
36728
|
+
"@types/jest": "^29.5.14",
|
|
36729
|
+
"@types/jmespath": "^0.15.2",
|
|
36730
|
+
"@types/node": "^22.0.0",
|
|
36731
|
+
jest: "^29.7.0",
|
|
36732
|
+
"ts-jest": "^29.4.0",
|
|
36733
|
+
"ts-node": "^10.9.2",
|
|
36734
|
+
typescript: "^5.7.3",
|
|
36735
|
+
zod: "^3.25.76"
|
|
36736
|
+
},
|
|
36737
|
+
jest: {
|
|
36738
|
+
preset: "ts-jest",
|
|
36739
|
+
testEnvironment: "node",
|
|
36740
|
+
testMatch: [
|
|
36741
|
+
"**/tests/**/*.test.ts"
|
|
36742
|
+
],
|
|
36743
|
+
collectCoverageFrom: [
|
|
36744
|
+
"src/**/*.ts"
|
|
36745
|
+
]
|
|
36746
|
+
}
|
|
36747
|
+
};
|
|
36748
|
+
}
|
|
36749
|
+
});
|
|
36750
|
+
|
|
36751
|
+
// ../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.2_zod@4.3.6/node_modules/@tronsfey/mcp2cli/dist/client/index.js
|
|
36666
36752
|
var require_client3 = __commonJS({
|
|
36667
|
-
"../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.
|
|
36753
|
+
"../../node_modules/.pnpm/@tronsfey+mcp2cli@1.0.2_zod@4.3.6/node_modules/@tronsfey/mcp2cli/dist/client/index.js"(exports) {
|
|
36668
36754
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36669
36755
|
exports.parseCommand = parseCommand;
|
|
36670
36756
|
exports.isTransportUnsupported = isTransportUnsupported;
|
|
@@ -36673,6 +36759,7 @@ var require_client3 = __commonJS({
|
|
|
36673
36759
|
var stdio_js_1 = require_stdio2();
|
|
36674
36760
|
var sse_js_1 = require_sse();
|
|
36675
36761
|
var streamableHttp_js_1 = require_streamableHttp();
|
|
36762
|
+
var pkg = require_package();
|
|
36676
36763
|
function parseCommand(cmdString) {
|
|
36677
36764
|
const parts = [];
|
|
36678
36765
|
let current = "";
|
|
@@ -36698,13 +36785,16 @@ var require_client3 = __commonJS({
|
|
|
36698
36785
|
if (inSingle || inDouble) {
|
|
36699
36786
|
throw new Error(`Unclosed quote in command: ${cmdString}`);
|
|
36700
36787
|
}
|
|
36788
|
+
if (parts.length === 0) {
|
|
36789
|
+
throw new Error("Empty command string");
|
|
36790
|
+
}
|
|
36701
36791
|
const [command, ...args] = parts;
|
|
36702
36792
|
return { command, args };
|
|
36703
36793
|
}
|
|
36704
36794
|
function makeClient() {
|
|
36705
36795
|
return new index_js_1.Client({
|
|
36706
36796
|
name: "mcp2cli",
|
|
36707
|
-
version:
|
|
36797
|
+
version: pkg.version
|
|
36708
36798
|
});
|
|
36709
36799
|
}
|
|
36710
36800
|
function isTransportUnsupported(err) {
|
|
@@ -36768,4 +36858,4 @@ var require_client3 = __commonJS({
|
|
|
36768
36858
|
}
|
|
36769
36859
|
});
|
|
36770
36860
|
export default require_client3();
|
|
36771
|
-
//# sourceMappingURL=client-
|
|
36861
|
+
//# sourceMappingURL=client-LCWUZRZX.js.map
|