UNPKG

@mikoto_zero/minigame-open-mcp

Version:

TapTap Open API MCP Server - Documentation and Management APIs for TapTap Minigame and H5 Games (Leaderboard, and more features coming)

45 lines 1.25 kB
/** * Logger utility for TapTap Minigame MCP Server * Controlled by TAPTAP_MINIGAME_MCP_VERBOSE environment variable */ /** * Logger class for structured logging */ export declare class Logger { private verbose; constructor(); /** * Log informational message */ info(message: string, data?: any): void; /** * Log error message */ error(message: string, error?: any): void; /** * Log debug message */ debug(message: string, data?: any): void; /** * Log tool call with input arguments */ logToolCall(toolName: string, args: any): void; /** * Log tool response with output */ logToolResponse(toolName: string, output: any, success?: boolean): void; /** * Log HTTP request */ logRequest(method: string, url: string, headers: Record<string, string>, body?: string): void; /** * Log HTTP response */ logResponse(method: string, url: string, status: number, statusText: string, body: any, success?: boolean, responseHeaders?: Record<string, string>): void; /** * Check if verbose mode is enabled */ isVerbose(): boolean; } export declare const logger: Logger; //# sourceMappingURL=logger.d.ts.map