@codai/axiom-mcp 1.0.0 → 1.0.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.
- package/dist/postinstall.js +22 -6
- package/package.json +8 -3
- package/src/postinstall.ts +28 -6
package/dist/postinstall.js
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
const mcpDir = path.join(os.homedir(), ".
|
|
4
|
+
const mcpDir = path.join(os.homedir(), ".mcp", "servers");
|
|
5
5
|
fs.mkdirSync(mcpDir, { recursive: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
const mcpConfig = {
|
|
7
|
+
command: "npx",
|
|
8
|
+
args: ["@codai/axiom-mcp"],
|
|
9
|
+
env: {
|
|
10
|
+
AXIOM_MCP_PORT: "3411"
|
|
11
|
+
},
|
|
12
|
+
description: "AXIOM - AI-native intention language with deterministic manifest generation",
|
|
13
|
+
endpoints: [
|
|
14
|
+
"/parse - Parse .axm source to IR",
|
|
15
|
+
"/validate - Validate IR semantics",
|
|
16
|
+
"/generate - Generate artifacts from IR",
|
|
17
|
+
"/check - Run policy checks",
|
|
18
|
+
"/reverse - Reverse engineer IR from repo",
|
|
19
|
+
"/diff - Generate IR diff patches",
|
|
20
|
+
"/apply - Apply patches to filesystem"
|
|
21
|
+
]
|
|
22
|
+
};
|
|
23
|
+
fs.writeFileSync(path.join(mcpDir, "axiom.json"), JSON.stringify(mcpConfig, null, 2));
|
|
24
|
+
console.log("✅ AXIOM MCP config installed at ~/.mcp/servers/axiom.json");
|
|
25
|
+
console.log(" Start server: npx axiom-mcp");
|
|
26
|
+
console.log(" Default port: 3411");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codai/axiom-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"axiom-mcp": "dist/server.js"
|
|
@@ -12,8 +12,13 @@
|
|
|
12
12
|
"postinstall": "node dist/postinstall.js"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@codai/axiom-core": "
|
|
16
|
-
"@codai/axiom-engine": "
|
|
15
|
+
"@codai/axiom-core": "^1.0.1",
|
|
16
|
+
"@codai/axiom-engine": "^1.0.1",
|
|
17
|
+
"@codai/axiom-policies": "^1.0.1",
|
|
18
|
+
"@codai/axiom-emitter-webapp": "^1.0.1",
|
|
19
|
+
"@codai/axiom-emitter-apiservice": "^1.0.1",
|
|
20
|
+
"@codai/axiom-emitter-batchjob": "^1.0.1",
|
|
21
|
+
"@codai/axiom-emitter-docker": "^1.0.1"
|
|
17
22
|
},
|
|
18
23
|
"devDependencies": {
|
|
19
24
|
"@types/node": "^22.0.0",
|
package/src/postinstall.ts
CHANGED
|
@@ -3,10 +3,32 @@ import fs from "node:fs";
|
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
|
|
6
|
-
const mcpDir = path.join(os.homedir(), ".
|
|
6
|
+
const mcpDir = path.join(os.homedir(), ".mcp", "servers");
|
|
7
7
|
fs.mkdirSync(mcpDir, { recursive: true });
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
|
|
9
|
+
const mcpConfig = {
|
|
10
|
+
command: "npx",
|
|
11
|
+
args: ["@codai/axiom-mcp"],
|
|
12
|
+
env: {
|
|
13
|
+
AXIOM_MCP_PORT: "3411"
|
|
14
|
+
},
|
|
15
|
+
description: "AXIOM - AI-native intention language with deterministic manifest generation",
|
|
16
|
+
endpoints: [
|
|
17
|
+
"/parse - Parse .axm source to IR",
|
|
18
|
+
"/validate - Validate IR semantics",
|
|
19
|
+
"/generate - Generate artifacts from IR",
|
|
20
|
+
"/check - Run policy checks",
|
|
21
|
+
"/reverse - Reverse engineer IR from repo",
|
|
22
|
+
"/diff - Generate IR diff patches",
|
|
23
|
+
"/apply - Apply patches to filesystem"
|
|
24
|
+
]
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
fs.writeFileSync(
|
|
28
|
+
path.join(mcpDir, "axiom.json"),
|
|
29
|
+
JSON.stringify(mcpConfig, null, 2)
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
console.log("✅ AXIOM MCP config installed at ~/.mcp/servers/axiom.json");
|
|
33
|
+
console.log(" Start server: npx axiom-mcp");
|
|
34
|
+
console.log(" Default port: 3411");
|