UNPKG

summarai-mcp

Version:

MCP server for YouTube video summarization and information retrieval using SummarAI API

63 lines 1.52 kB
#!/usr/bin/env node declare const Server: any; declare const StdioServerTransport: any; declare const CallToolRequestSchema: any, ListToolsRequestSchema: any; declare const axios: any; declare const API_KEY: string | undefined; declare const YOUTUBE_VIDEO_SUMMARY_API_URL: string; declare const YOUTUBE_VIDEO_INFO_API_URL: string; interface SummarizeVideoParams { youtube_video_url: string; custom_prompt?: string; } interface VideoInfoParams { youtube_video_url: string; } interface ApiResponse { success: boolean; data?: { video_id: string; title: string; transcript_length: number; summary: string; }; error?: string; } interface VideoInfoApiResponse { success: boolean; data?: { video_id: string; title: string; transcript_available: boolean; available_languages: string[]; }; error?: string; } interface Tool { name: string; description: string; inputSchema: any; } interface CallToolResult { content: Array<{ type: string; text: string; }>; isError?: boolean; } interface TextContent { type: 'text'; text: string; } declare class SummarAIMCPServer { private server; constructor(); private setupToolHandlers; private extractYouTubeUrlFromRedirect; private extractYouTubeVideoId; private validateYouTubeUrl; private handleSummarizeVideo; private handleGetVideoInfo; run(): Promise<void>; } //# sourceMappingURL=server.d.ts.map