@leanspec/mcp-linux-x64 0.2.17-dev.21035738990 → 0.2.17-dev.21036599661
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 +7 -3
- package/postinstall.js +17 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leanspec/mcp-linux-x64",
|
|
3
|
-
"version": "0.2.17-dev.
|
|
4
|
-
"description": "LeanSpec MCP
|
|
3
|
+
"version": "0.2.17-dev.21036599661",
|
|
4
|
+
"description": "LeanSpec MCP Server binary for Linux x64",
|
|
5
5
|
"os": [
|
|
6
6
|
"linux"
|
|
7
7
|
],
|
|
@@ -10,8 +10,12 @@
|
|
|
10
10
|
],
|
|
11
11
|
"main": "leanspec-mcp",
|
|
12
12
|
"files": [
|
|
13
|
-
"leanspec-mcp"
|
|
13
|
+
"leanspec-mcp",
|
|
14
|
+
"postinstall.js"
|
|
14
15
|
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"postinstall": "node postinstall.js"
|
|
18
|
+
},
|
|
15
19
|
"repository": {
|
|
16
20
|
"type": "git",
|
|
17
21
|
"url": "https://github.com/codervisor/lean-spec.git"
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Postinstall script to set execute permissions on the binary.
|
|
4
|
+
* npm doesn't preserve file permissions, so we need to set them after install.
|
|
5
|
+
*/
|
|
6
|
+
const { chmodSync } = require('fs');
|
|
7
|
+
const { join } = require('path');
|
|
8
|
+
|
|
9
|
+
const binaryPath = join(__dirname, 'leanspec-mcp');
|
|
10
|
+
|
|
11
|
+
try {
|
|
12
|
+
chmodSync(binaryPath, 0o755);
|
|
13
|
+
console.log('✓ Set execute permissions on leanspec-mcp binary');
|
|
14
|
+
} catch (err) {
|
|
15
|
+
console.error('Warning: Could not set execute permissions:', err.message);
|
|
16
|
+
// Don't fail the install
|
|
17
|
+
}
|