@langxai/aif-mcp 0.1.22 → 0.1.24

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.
@@ -11,12 +11,12 @@ function run(cmd, args) {
11
11
  }
12
12
 
13
13
  // Prefer explicit package source for stable first-run resolution.
14
- let outcome = run("uvx", ["--from", "aif-normbase", "aif-mcp"]);
14
+ let outcome = run("uvx", ["--from", "aif-normbase", "aif-mcp-eda"]);
15
15
  if (outcome.ok) {
16
16
  process.exit(0);
17
17
  }
18
18
 
19
19
  // Fallback to local Python module execution for dev usage.
20
- outcome = run("python", ["-m", "integrations.mcp.server"]);
20
+ outcome = run("python", ["-m", "integrations.mcp_eda.server"]);
21
21
  process.exit(outcome.code);
22
22
 
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+ /* eslint-disable no-console */
3
+ const { spawnSync } = require("node:child_process");
4
+
5
+ function run(cmd, args) {
6
+ const result = spawnSync(cmd, args, { stdio: "inherit", shell: process.platform === "win32" });
7
+ if (result.error) {
8
+ return { ok: false, code: 1 };
9
+ }
10
+ return { ok: result.status === 0, code: result.status ?? 1 };
11
+ }
12
+
13
+ // Prefer explicit package source for stable first-run resolution.
14
+ let outcome = run("uvx", ["--from", "aif-normbase", "aif-mcp-normbase"]);
15
+ if (outcome.ok) {
16
+ process.exit(0);
17
+ }
18
+
19
+ // Fallback to local Python module execution for dev usage.
20
+ outcome = run("python", ["-m", "integrations.mcp_normbase.server"]);
21
+ process.exit(outcome.code);
22
+
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@langxai/aif-mcp",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "AIF MCP adapter launcher for npx",
5
5
  "license": "MIT",
6
6
  "bin": {
7
- "aif-mcp": "bin/aif-mcp.js"
7
+ "aif-mcp-normbase": "bin/aif-mcp-normbase.js",
8
+ "aif-mcp-eda": "bin/aif-mcp-eda.js"
8
9
  },
9
10
  "files": [
10
11
  "bin"