UNPKG

context-optimizer-mcp-server

Version:

Context optimization tools MCP server for AI coding assistants - compatible with GitHub Copilot, Cursor AI, and other MCP-supporting assistants

25 lines 1.13 kB
/** * Logger utility for MCP server * * Since MCP servers communicate over stdio using JSON-RPC, all logging output * must be directed to stderr to avoid interfering with the protocol messages. */ export type LogLevel = 'error' | 'warn' | 'info' | 'debug'; export declare class Logger { private static logLevel; static setLogLevel(level: LogLevel): void; static getLogLevel(): LogLevel; static shouldLog(level: LogLevel): boolean; static error(message: string, ...args: any[]): void; static warn(message: string, ...args: any[]): void; static info(message: string, ...args: any[]): void; static debug(message: string, ...args: any[]): void; static success(message: string, ...args: any[]): void; static config(message: string, ...args: any[]): void; static startup(message: string, ...args: any[]): void; static security(message: string, ...args: any[]): void; static tools(message: string, ...args: any[]): void; static file(message: string, ...args: any[]): void; static shutdown(message: string, ...args: any[]): void; } //# sourceMappingURL=logger.d.ts.map