#!/usr/bin/env node
import { StdioServerTransport as s } from "@modelcontextprotocol/sdk/server/stdio.js";
import c from "dotenv";
import { g as i } from "./mcp-server-zOuk6rId.js";
function p() {
  const e = process.env.TODOIST_BASE_URL, r = process.env.TODOIST_API_KEY;
  if (!r)
    throw new Error("TODOIST_API_KEY is not set");
  const o = i({ todoistApiKey: r, baseUrl: e }), t = new s();
  o.connect(t).then(() => {
    console.error("Server started");
  }).catch((n) => {
    console.error("Error starting the Todoist MCP server:", n), process.exit(1);
  });
}
c.config({ quiet: !0 });
p();
