UNPKG

chess-mcp

Version:

Chess MCP server with position evaluation, move validation, and masters database

14 lines (13 loc) 491 B
import { Request } from '@modelcontextprotocol/sdk/types.js'; export interface Handler<T extends Request = Request> { handle(request: T): Promise<any>; } export interface HandlerRegistry { register(method: string, handler: Handler): void; get(method: string): Handler | undefined; } export declare class SimpleHandlerRegistry implements HandlerRegistry { private handlers; register(method: string, handler: Handler): void; get(method: string): Handler | undefined; }