@rhofkens/mcp-quotes-server-claude-code
Version:
Model Context Protocol (MCP) server for managing and serving quotes
50 lines • 1.28 kB
TypeScript
/**
* Resilient Get Quotes Tool
*
* Enhanced version of getQuotes with full resilience patterns
*/
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
import type { IQuote } from '../types/quotes.js';
/**
* Handler function for the getResilientQuotes tool
*/
declare function getResilientQuotesHandler(params: unknown): Promise<{
quotes: IQuote[];
metadata?: {
cached: boolean;
stale?: boolean;
fallback?: boolean;
retries?: number;
};
}>;
/**
* Tool definition for getResilientQuotes
*/
export declare const getResilientQuotesTool: Tool;
interface IHealthStatus {
circuitBreaker: {
state: string;
failures: number;
};
cache: {
hits: number;
misses: number;
};
[key: string]: unknown;
}
/**
* Get health status of the resilient quotes system
*/
export declare function getQuotesHealthStatus(): Promise<IHealthStatus & {
recommendation: string;
}>;
/**
* Pre-warm cache with common quotes
*/
export declare function prewarmQuotesCache(commonPeople?: string[]): Promise<void>;
/**
* Handler export for tool registry
*/
export declare const handleGetResilientQuotes: typeof getResilientQuotesHandler;
export {};
//# sourceMappingURL=getResilientQuotes.d.ts.map