@khanglvm/tool-hub-mcp 1.1.3 → 1.1.4
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/package.json +6 -6
- package/postinstall.js +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanglvm/tool-hub-mcp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Serverless MCP Aggregator - Reduce AI context token consumption by 38%",
|
|
5
5
|
"bin": {
|
|
6
6
|
"tool-hub-mcp": "./cli.js"
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"postinstall": "node postinstall.js"
|
|
15
15
|
},
|
|
16
16
|
"optionalDependencies": {
|
|
17
|
-
"@khanglvm/tool-hub-mcp-darwin-arm64": "1.1.
|
|
18
|
-
"@khanglvm/tool-hub-mcp-darwin-x64": "1.1.
|
|
19
|
-
"@khanglvm/tool-hub-mcp-linux-x64": "1.1.
|
|
20
|
-
"@khanglvm/tool-hub-mcp-linux-arm64": "1.1.
|
|
21
|
-
"@khanglvm/tool-hub-mcp-win32-x64": "1.1.
|
|
17
|
+
"@khanglvm/tool-hub-mcp-darwin-arm64": "1.1.4",
|
|
18
|
+
"@khanglvm/tool-hub-mcp-darwin-x64": "1.1.4",
|
|
19
|
+
"@khanglvm/tool-hub-mcp-linux-x64": "1.1.4",
|
|
20
|
+
"@khanglvm/tool-hub-mcp-linux-arm64": "1.1.4",
|
|
21
|
+
"@khanglvm/tool-hub-mcp-win32-x64": "1.1.4"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|
|
24
24
|
"mcp",
|
package/postinstall.js
CHANGED
|
@@ -212,7 +212,13 @@ function createBinSymlink(binaryName) {
|
|
|
212
212
|
|
|
213
213
|
for (const dir of searchLevels) {
|
|
214
214
|
const testPath = path.join(__dirname, dir);
|
|
215
|
-
if
|
|
215
|
+
// Check if path exists or if we can create it
|
|
216
|
+
const parentDir = path.dirname(testPath);
|
|
217
|
+
if (fs.existsSync(parentDir)) {
|
|
218
|
+
// Create .bin directory if it doesn't exist
|
|
219
|
+
if (!fs.existsSync(testPath)) {
|
|
220
|
+
fs.mkdirSync(testPath, { recursive: true });
|
|
221
|
+
}
|
|
216
222
|
binDir = testPath;
|
|
217
223
|
break;
|
|
218
224
|
}
|