UNPKG

@grebyn/toolflow-mcp-server

Version:

MCP server for managing other MCP servers - discover, install, organize into bundles, and automate with workflows. Uses StreamableHTTP transport with dual OAuth/API key authentication.

29 lines 968 B
/** * MCP Server Logger Utility * * Provides centralized logging for MCP tool executions * Non-blocking and failure-resilient */ import { UserContext } from '../tools/types.js'; export interface LogContext { toolName: string; toolArgs: any; toolResponse?: any; executionStatus?: 'success' | 'failure' | 'error'; errorMessage?: string; executionTimeMs?: number; transportType?: string; sessionId?: string; clientIdentifier?: string; ipAddress?: string; userAgent?: string; } /** * Main logging function - fire and forget */ export declare function logToolExecution(context: UserContext, logContext: LogContext): Promise<void>; /** * Wrapper to time and log tool execution */ export declare function withLogging<T>(context: UserContext, toolName: string, toolArgs: any, transportType: string, additionalContext: Partial<LogContext>, executeFunction: () => Promise<T>): Promise<T>; //# sourceMappingURL=logger.d.ts.map