@air-jam/mcp-server 0.9.0 → 0.9.2

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.
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { existsSync } from "node:fs";
4
+ import path from "node:path";
5
+ import { spawn } from "node:child_process";
6
+ import { fileURLToPath, pathToFileURL } from "node:url";
7
+
8
+ const packageRoot = path.resolve(
9
+ path.dirname(fileURLToPath(import.meta.url)),
10
+ "..",
11
+ );
12
+ const distEntry = path.join(packageRoot, "dist", "cli.js");
13
+ const sourceEntry = path.join(packageRoot, "src", "cli.ts");
14
+
15
+ const forwardToSourceCli = async () =>
16
+ new Promise((resolve, reject) => {
17
+ const child = spawn(
18
+ process.execPath,
19
+ ["--import", "tsx", sourceEntry, ...process.argv.slice(2)],
20
+ {
21
+ cwd: packageRoot,
22
+ stdio: "inherit",
23
+ env: process.env,
24
+ },
25
+ );
26
+
27
+ child.on("exit", (code, signal) => {
28
+ if (signal) {
29
+ process.kill(process.pid, signal);
30
+ return;
31
+ }
32
+
33
+ process.exitCode = code ?? 0;
34
+ resolve(undefined);
35
+ });
36
+
37
+ child.on("error", reject);
38
+ });
39
+
40
+ if (existsSync(distEntry)) {
41
+ await import(pathToFileURL(distEntry).href);
42
+ } else {
43
+ await forwardToSourceCli();
44
+ }
package/dist/cli.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@air-jam/mcp-server",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Official Air Jam MCP server for project inspection, logs, quality gates, and visual artifacts",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git+https://github.com/vucinatim/airjam.git",
10
+ "url": "git+https://github.com/vucinatim/air-jam.git",
11
11
  "directory": "packages/mcp-server"
12
12
  },
13
- "homepage": "https://github.com/vucinatim/airjam#readme",
13
+ "homepage": "https://github.com/vucinatim/air-jam#readme",
14
14
  "bugs": {
15
- "url": "https://github.com/vucinatim/airjam/issues"
15
+ "url": "https://github.com/vucinatim/air-jam/issues"
16
16
  },
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
20
  "bin": {
21
- "airjam-mcp": "./dist/cli.js"
21
+ "airjam-mcp": "./bin/airjam-mcp.mjs"
22
22
  },
23
23
  "main": "./dist/index.js",
24
24
  "module": "./dist/index.js",
@@ -34,6 +34,7 @@
34
34
  }
35
35
  },
36
36
  "files": [
37
+ "bin",
37
38
  "dist",
38
39
  "src"
39
40
  ],
@@ -45,13 +46,14 @@
45
46
  "devDependencies": {
46
47
  "@types/node": "^24.10.1",
47
48
  "tsup": "^8.5.1",
49
+ "tsx": "^4.20.6",
48
50
  "typescript": "~5.9.3",
49
51
  "vitest": "^3.2.4"
50
52
  },
51
53
  "scripts": {
52
54
  "build": "node ../../scripts/ensure-workspace-package-build.mjs @air-jam/devtools-core && tsup",
53
- "test": "vitest run --config vitest.config.ts",
55
+ "test": "node ../../scripts/ensure-workspace-package-build.mjs @air-jam/devtools-core && tsup && vitest run --config vitest.config.ts",
54
56
  "test:watch": "vitest --config vitest.config.ts",
55
- "typecheck": "node ../../scripts/ensure-workspace-package-build.mjs @air-jam/devtools-core && tsc --noEmit && tsc -p tests/tsconfig.json --noEmit"
57
+ "typecheck": "node ../../scripts/ensure-workspace-package-build.mjs @air-jam/devtools-core && tsup && tsc --noEmit && tsc -p tests/tsconfig.json --noEmit"
56
58
  }
57
59
  }