UNPKG

@dollhousemcp/mcp-server

Version:

DollhouseMCP - A Model Context Protocol (MCP) server that enables dynamic AI persona management from markdown files, allowing Claude and other compatible AI assistants to activate and switch between different behavioral personas.

32 lines 1.03 kB
/** * Lightweight in-memory accumulator for MCP-AQL operation metrics. * * Records operation counts, durations, and error rates. The companion * OperationMetricsCollector reads from this tracker each collection cycle. */ export interface OperationMetrics { totalOps: number; failedOps: number; durations: number[]; byEndpoint: Map<string, number>; byOperation: Map<string, number>; } export declare class OperationMetricsTracker { private totalOps; private failedOps; private readonly durations; private readonly byEndpoint; private readonly byOperation; record(operation: string, endpoint: string, durationMs: number, success: boolean): void; getMetrics(): OperationMetrics; /** Compute duration percentiles from the ring buffer. */ static percentiles(durations: number[]): { count: number; sum: number; avg: number; p50: number; p95: number; p99: number; }; } //# sourceMappingURL=OperationMetricsTracker.d.ts.map