@codai/axiom-mcp 1.0.5 → 1.0.6

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.
@@ -1,6 +1,11 @@
1
1
  import fs from "node:fs";
2
2
  import os from "node:os";
3
3
  import path from "node:path";
4
+ // Skip postinstall if running via npx (to avoid mutex issues)
5
+ if (process.env.npm_command === 'exec' || process.env.npm_execpath?.includes('npx')) {
6
+ console.log("⏭️ Skipping MCP config install (npx mode)");
7
+ process.exit(0);
8
+ }
4
9
  const mcpDir = path.join(os.homedir(), ".mcp", "servers");
5
10
  fs.mkdirSync(mcpDir, { recursive: true });
6
11
  const mcpConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codai/axiom-mcp",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "axiom-mcp": "dist/server.js",
@@ -3,6 +3,12 @@ import fs from "node:fs";
3
3
  import os from "node:os";
4
4
  import path from "node:path";
5
5
 
6
+ // Skip postinstall if running via npx (to avoid mutex issues)
7
+ if (process.env.npm_command === 'exec' || process.env.npm_execpath?.includes('npx')) {
8
+ console.log("⏭️ Skipping MCP config install (npx mode)");
9
+ process.exit(0);
10
+ }
11
+
6
12
  const mcpDir = path.join(os.homedir(), ".mcp", "servers");
7
13
  fs.mkdirSync(mcpDir, { recursive: true });
8
14