import { getConfig } from "../config.js";
import { startServer } from "../server.js";
async function runMcp() {
  const config = getConfig();
  try {
    const { tryConnectDaemon } = await import("../daemon/proxy.js");
    const report = await tryConnectDaemon(config.daemonPort, config.daemonHost);
    if (report) {
      process.stderr.write(
        `[wigolo] Daemon detected at ${config.daemonHost}:${config.daemonPort} (status: ${report.status}). Full proxy deferred to v2.1; starting local server.
`
      );
    }
  } catch {
  }
  await startServer();
}
export {
  runMcp
};
//# sourceMappingURL=mcp.js.map