// This file provides a wrapper to handle the mismatch between the MCP server tools // which expect direct resource access and the TypeScript SDK import { EasychampAI } from 'easychamp-ai'; // Create a type that includes all the resources needed by MCP tools export interface EasychampWithAIOptimize { champLeagues: any; champs: any; teams: any; player: any; stage: any; sportKinds: any; fixture: any; group: any; chat: any; } // Factory function to create a client with all resources export function createEasychampClient(options: any): EasychampWithAIOptimize { const client = new EasychampAI(options); // Return the client directly as it already has all the resources return client as any; }