diff --git a/src/index.ts b/src/index.ts index 4f907b6..9bdbd2a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,6 +7,7 @@ import { type ServerOnLog, type ServerOnLogHandler, type ServerLogEvent, + type ServerStatReport, type ServerStats, type ServerGetStats } from './server'; @@ -86,6 +87,13 @@ type PfMcpGetStats = ServerGetStats; */ type PfMcpStats = ServerStats; +/** + * Statistics report about the server. + * + * @alias ServerStatReport + */ +type PfMcpStatReport = ServerStatReport; + /** * Main function - Programmatic and CLI entry point with optional overrides * @@ -187,6 +195,7 @@ export { type PfMcpLogEvent, type PfMcpOnLog, type PfMcpOnLogHandler, + type PfMcpStatReport, type PfMcpStats, type PfMcpGetStats, type ToolCreator, diff --git a/src/server.ts b/src/server.ts index 4a74acc..c53ec59 100644 --- a/src/server.ts +++ b/src/server.ts @@ -25,7 +25,7 @@ import { DEFAULT_OPTIONS } from './options.defaults'; import { isZodRawShape, isZodSchema } from './server.schema'; import { isPlainObject, timeoutFunction } from './server.helpers'; import { createServerStats, type Stats } from './server.stats'; -import { stat } from './stats'; +import { stat, type StatReport } from './stats'; /** * A tool registered with the MCP server. @@ -93,6 +93,13 @@ interface ServerSettings { */ type ServerStats = Stats; +/** + * Server stats report. + * + * @alias StatReport + */ +type ServerStatReport = StatReport; + /** * A callback to Promise return server stats. */ @@ -458,6 +465,7 @@ export { type ServerOnLogHandler, type ServerOptions, type ServerSettings, + type ServerStatReport, type ServerStats, type ServerGetStats };