/** * Configuration types */ /** * Server HTTP configuration */ export interface HttpServerConfig { port: number; hostname?: string; corsEnabled: boolean; corsOptions?: { origin?: string | string[]; methods?: string[]; allowedHeaders?: string[]; exposedHeaders?: string[]; credentials?: boolean; }; } /** * MCP server configuration */ export interface McpServerConfig { name: string; version: string; description: string; instructions: string; } /** * Server transport configuration */ export interface TransportConfig { messageEndpoint: string; heartbeatInterval: number; } /** * Combined server configuration */ export interface ServerConfig { http: HttpServerConfig; mcp: McpServerConfig; transport: TransportConfig; }