mcp-planes-server
Version:
Plane API client and server
15 lines (14 loc) • 584 B
JavaScript
import { PlanesClient } from './client.js';
import dotenv from 'dotenv';
// 确保环境变量被加载
dotenv.config();
if (!process.env.PLANE_API_URL) {
throw new Error('PLANE_API_URL environment variable is required');
}
if (!process.env.PLANE_API_KEY) {
throw new Error('PLANE_API_KEY environment variable is required');
}
if (!process.env.PLANE_WORKSPACE_SLUG) {
throw new Error('PLANE_WORKSPACE_SLUG environment variable is required');
}
export const client = new PlanesClient(process.env.PLANE_API_URL, process.env.PLANE_API_KEY, process.env.PLANE_WORKSPACE_SLUG);