feishu-mcp
Version:
Model Context Protocol server for Feishu integration
17 lines (16 loc) • 523 B
JavaScript
import { resolve } from "path";
import { config } from "dotenv";
import { startServer } from "./index.js";
import { Logger } from "./utils/logger.js";
// Load .env from the current working directory
config({ path: resolve(process.cwd(), ".env") });
startServer().catch((error) => {
if (error instanceof Error) {
Logger.error("Failed to start server:", error.message);
}
else {
Logger.error("Failed to start server with unknown error:", error);
}
process.exit(1);
});