import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { Endpoint, HandlerFunction } from "./tools.mjs"; import { Tool } from '@modelcontextprotocol/sdk/types.js'; import { EasychampWithAIOptimize } from "./easychamp-ai-client.mjs"; import { ClientCapabilities } from "./compat.mjs"; import { ParsedOptions } from "./options.mjs"; export { endpoints } from "./tools.mjs"; export declare const server: McpServer; /** * Initializes the provided MCP Server with the given tools and handlers. * If not provided, the default client, tools and handlers will be used. */ export declare function init(params: { server: Server | McpServer; client?: EasychampWithAIOptimize; endpoints?: { tool: Tool; handler: HandlerFunction; }[]; capabilities?: Partial; }): void; /** * Selects the tools to include in the MCP Server based on the provided options. */ export declare function selectTools(endpoints: Endpoint[], options: ParsedOptions): Endpoint[]; /** * Runs the provided handler with the given client and arguments. */ export declare function executeHandler(tool: Tool, handler: HandlerFunction, client: EasychampWithAIOptimize, args: Record | undefined, compatibilityOptions?: Partial): Promise<{ content: { type: string; text: string; }[]; }>; export declare const readEnv: (env: string) => string | undefined; export declare const readEnvOrError: (env: string) => string; //# sourceMappingURL=server.d.mts.map