UNPKG

@iflow-mcp/chess-mcp

Version:

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

48 lines (47 loc) 1.39 kB
import { CallToolRequest } from '@modelcontextprotocol/sdk/types.js'; import { Handler } from './types.js'; import { ChessEngine } from '../chess-engine.js'; import { ChessImageService } from '../chess-image-service.js'; export declare const toolSpec: { name: string; description: string; inputSchema: { type: string; properties: { move: { type: string; description: string; pattern: string; }; fen: { type: string; description: string; }; pgn: { type: string; description: string; }; includeEvaluation: { type: string; description: string; }; includeImage: { type: string; description: string; }; depth: { type: string; description: string; minimum: number; maximum: number; }; }; required: string[]; }; }; export declare class PlayMoveHandler implements Handler<CallToolRequest> { private engine; private imageService; constructor(engine: ChessEngine, imageService: ChessImageService); handle(request: CallToolRequest): Promise<any>; }