mcp-rand
Version:
MCP server providing random generation utilities including UUID, numbers, strings, passwords, Gaussian distribution, dice rolling, and card drawing
14 lines (13 loc) • 568 B
TypeScript
import type { Request } from '@modelcontextprotocol/sdk/types.js';
export interface Handler<T extends Request = Request> {
(request: T): Promise<unknown>;
}
export interface HandlerRegistry {
register(method: string, toolName: string, handler: Handler): void;
get(method: string, toolName?: string): Handler | undefined;
}
export declare class SimpleHandlerRegistry implements HandlerRegistry {
private handlers;
register(method: string, toolName: string, handler: Handler): void;
get(method: string, toolName?: string): Handler | undefined;
}