@taiga-ai/mcp-server 0.2.1 → 0.2.2-dev.147

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 CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.2.1",
3
+ "version": "0.2.2-dev.147",
4
4
  "description": "MCP server for Taiga -- gives AI assistants access to documents, skills, and projects",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -26,9 +26,9 @@
26
26
  "zod": "^3.24.4"
27
27
  },
28
28
  "devDependencies": {
29
- "@types/node": "^22.15.3",
29
+ "@types/node": "^22.19.17",
30
30
  "typescript": "^5.7.2",
31
- "vitest": "^4.0.16"
31
+ "vitest": "^4.1.3"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
@@ -6,12 +6,16 @@
6
6
  * - Removes `private: true` so npm allows publishing
7
7
  * - Sets publishConfig to public access
8
8
  * - Strips workspace-only dependencies (@taiga/types is compile-time only)
9
+ * - Marks the bin entry executable. tsc emits dist/index.js with mode 0644,
10
+ * so without this `npx -y @taiga-ai/mcp-server` fails with EACCES because
11
+ * the kernel cannot exec a non-executable file regardless of the shebang.
9
12
  */
10
13
 
11
14
  const fs = require('fs');
12
15
  const path = require('path');
13
16
 
14
17
  const pkgPath = path.join(__dirname, '..', 'package.json');
18
+ const binPath = path.join(__dirname, '..', 'dist', 'index.js');
15
19
 
16
20
  try {
17
21
  const raw = fs.readFileSync(pkgPath, 'utf8');
@@ -26,8 +30,11 @@ try {
26
30
 
27
31
  fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n', 'utf8');
28
32
  console.log('prepare-publish: package.json updated');
33
+
34
+ fs.chmodSync(binPath, 0o755);
35
+ console.log('prepare-publish: dist/index.js marked executable');
29
36
  } catch (err) {
30
- console.error('prepare-publish: failed to update package.json');
37
+ console.error('prepare-publish: failed');
31
38
  console.error(err.stack || err);
32
39
  process.exit(1);
33
40
  }