@codai/axiom-mcp 1.0.14 → 1.0.16
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/README.md +11 -3
- package/dist/mcp-stdio.js +7 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -200,10 +200,18 @@ Apply manifest to filesystem or create Pull Request.
|
|
|
200
200
|
```
|
|
201
201
|
|
|
202
202
|
**Features**:
|
|
203
|
-
- ✅ **
|
|
204
|
-
- ✅ **
|
|
203
|
+
- ✅ **Artifact Store**: Content-addressable cache at `.axiom/cache/<sha256>`
|
|
204
|
+
- ✅ **Real Filesystem Writes**: Reads from cache, writes to `out/` directory
|
|
205
|
+
- ✅ **SHA256 Validation**: Verifies file integrity after write (throws `ERR_SHA256_MISMATCH`)
|
|
206
|
+
- ✅ **Auto-creates `./out/`**: No manual directory setup required
|
|
207
|
+
- ✅ **POSIX paths**: `filesWritten[]` use `/` on all platforms (no backslash)
|
|
205
208
|
- ✅ **Security**: Blocks path traversal (`..`) and absolute paths
|
|
206
|
-
- ✅ **
|
|
209
|
+
- ✅ **Error Handling**: Clear errors if artifact content missing from cache (`ERR_ARTIFACT_CONTENT_MISSING`)
|
|
210
|
+
|
|
211
|
+
**Workflow Integration**:
|
|
212
|
+
1. **Generate**: Creates manifest + caches content by SHA256 in `.axiom/cache/`
|
|
213
|
+
2. **Apply**: Reads cached content + writes real files to `out/` + validates SHA256
|
|
214
|
+
3. **Deterministic**: Identical IR → identical SHA256 → identical files
|
|
207
215
|
|
|
208
216
|
---
|
|
209
217
|
|
package/dist/mcp-stdio.js
CHANGED
|
@@ -339,6 +339,12 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
339
339
|
});
|
|
340
340
|
async function main() {
|
|
341
341
|
console.error("[AXIOM MCP] Starting server initialization...");
|
|
342
|
+
console.error(`[AXIOM MCP] Process: Node ${process.version}, PID ${process.pid}`);
|
|
343
|
+
console.error(`[AXIOM MCP] Working directory: ${process.cwd()}`);
|
|
344
|
+
// CRITICAL: Give VS Code time to attach stdio pipes
|
|
345
|
+
// Without this delay, VS Code may miss early stderr output
|
|
346
|
+
await new Promise(resolve => setTimeout(resolve, 100));
|
|
347
|
+
console.error("[AXIOM MCP] Stdio pipes ready, proceeding with initialization...");
|
|
342
348
|
try {
|
|
343
349
|
const transport = new StdioServerTransport();
|
|
344
350
|
console.error("[AXIOM MCP] Transport created, connecting...");
|
|
@@ -346,6 +352,7 @@ async function main() {
|
|
|
346
352
|
console.error("[AXIOM MCP] Server connected successfully");
|
|
347
353
|
console.error(`[AXIOM MCP] Version ${MCP_VERSION}, Engine ${packageJson.dependencies?.["@codai/axiom-engine"]}`);
|
|
348
354
|
console.error("[AXIOM MCP] Ready to receive requests via stdio");
|
|
355
|
+
console.error("[AXIOM MCP] Waiting for initialize request from client...");
|
|
349
356
|
// Keep process alive - MCP SDK handles stdin/stdout
|
|
350
357
|
// No explicit exit - let MCP SDK manage lifecycle
|
|
351
358
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codai/axiom-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"axiom-mcp": "dist/server.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@codai/axiom-emitter-batchjob": "^1.0.1",
|
|
26
26
|
"@codai/axiom-emitter-docker": "^1.0.1",
|
|
27
27
|
"@codai/axiom-emitter-webapp": "^1.0.1",
|
|
28
|
-
"@codai/axiom-engine": "^1.0.
|
|
28
|
+
"@codai/axiom-engine": "^1.0.16",
|
|
29
29
|
"@codai/axiom-policies": "^1.0.1",
|
|
30
30
|
"@modelcontextprotocol/sdk": "^1.20.1"
|
|
31
31
|
},
|