@codai/axiom-mcp 1.0.14 → 1.0.15
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/mcp-stdio.js +7 -0
- package/package.json +1 -1
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
|
}
|