import { loadEnvConfig } from './env.js'; /** * Server configuration interface */ export interface ServerConfig { port: number; isDevelopment: boolean; serverName: string; serverVersion: string; serverDescription: string; serverInstructions: string; } /** * Load server configuration * @returns Server configuration object */ export function loadServerConfig(): ServerConfig { const envConfig = loadEnvConfig(); return { port: parseInt(envConfig.PORT, 10), isDevelopment: envConfig.NODE_ENV === 'development', serverName: 'AWS Logs MCP', serverVersion: '0.1.0', serverDescription: 'MCP Server for AWS CloudWatch and CloudTrail', serverInstructions: ` This MCP provides near real-time access to AWS CloudWatch Logs and CloudTrail Events. Use it to troubleshoot Lambda functions, analyze application logs, and monitor AWS activity. Available tools: - testAwsConnection: Test AWS connectivity - cloudWatchLogGroups: List available CloudWatch Log Groups - cloudWatchLogs: Retrieve logs from CloudWatch - cloudTrailEvents: Retrieve events from CloudTrail ` }; }