/** * MCP Server для Kinescope API * * Основан на архитектуре @mux/mcp */ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { KinescopeClient } from './client.js'; import { Endpoint } from './tools/index.js'; import { ClientCapabilities } from './compat.js'; import { McpOptions } from './options.js'; export interface InitKinescopeServerOptions { server: McpServer; apiKey: string; baseURL?: string; mcpOptions?: McpOptions; } /** * Создает новый MCP сервер для Kinescope */ export declare function newKinescopeMcpServer(): McpServer; /** * Инициализирует MCP сервер с инструментами Kinescope */ export declare function initKinescopeServer(options: InitKinescopeServerOptions): void; /** * Выбирает инструменты для включения в MCP сервер на основе опций */ export declare function selectTools(endpoints: Endpoint[], options?: McpOptions): Promise; /** * Выполняет обработчик с указанным клиентом и аргументами */ export declare function executeHandler(tool: any, handler: (client: KinescopeClient, args: any) => Promise, client: KinescopeClient, args: Record | undefined, compatibilityOptions?: Partial): Promise<{ content: { type: string; text: string; }[]; isError?: undefined; } | { content: { type: string; text: string; }[]; isError: boolean; }>; export { McpOptions } from './options.js'; export { ClientType } from './compat.js'; export { Filter } from './filtering.js'; export { endpoints } from './tools/index.js'; //# sourceMappingURL=server.d.ts.map