diff --git a/node/src/cli.ts b/node/src/cli.ts index 579527c..bf5aa5a 100644 --- a/node/src/cli.ts +++ b/node/src/cli.ts @@ -4,7 +4,6 @@ import { existsSync, readFileSync } from "node:fs"; import { dirname, join } from "node:path"; import { fileURLToPath } from "node:url"; import { resolveConfig, baseUrl, DEFAULT_PORT } from "./config.js"; -import { startServer } from "./server.js"; import { autostartManager } from "./autostart/index.js"; import { runStdioMcp } from "./mcp-stdio.js"; import { @@ -82,6 +81,7 @@ program .action(async (opts: { port?: number; bind?: string; dbPath?: string; config?: string }) => { const cfg = resolveConfig(opts); try { + const { startServer } = await import("./server.js"); const { app } = await startServer(cfg); app.log.info(`ClaudeMailbox listening on ${baseUrl(cfg)} (db: ${cfg.dbPath})`); } catch (err) {