UNPKG

il2cpp-dump-analyzer-mcp

Version:

Agentic RAG system for analyzing IL2CPP dump.cs files from Unity games

74 lines (73 loc) 2.58 kB
#!/usr/bin/env node import { TransportConfig } from '../transport'; import { IL2CPPVectorStore } from '../embeddings/vector-store'; import { Document } from '@langchain/core/documents'; /** * Configuration options for server initialization */ export interface InitializationOptions { dumpFilePath?: string; model?: string; chunkSize?: number; chunkOverlap?: number; progressCallback?: (progress: number, message: string) => void; environment?: 'development' | 'production' | 'test'; enableCaching?: boolean; logLevel?: 'debug' | 'info' | 'warn' | 'error'; hashFilePath?: string; forceReprocess?: boolean; } /** * Enhanced logging utility */ declare class Logger { private static shouldLog; static debug(message: string, ...args: any[]): void; static info(message: string, ...args: any[]): void; static warn(message: string, ...args: any[]): void; static error(message: string, error?: any): void; } /** * Initialize the MCP server with comprehensive setup * @param options Configuration options */ export declare function initializeServer(options?: InitializationOptions): Promise<void>; /** * Initialize the MCP server with a pre-existing vector store (backward compatibility) * @param store Vector store instance */ export declare function initializeVectorStore(store: IL2CPPVectorStore): void; /** * Start the MCP server with stdio transport (for command-line tools) */ export declare function startMcpStdioServer(): Promise<void>; /** * Start the MCP server with configurable transport (stdio, HTTP, WebSocket, SSE) */ export declare function startMcpServerWithTransport(transportConfig?: TransportConfig): Promise<void>; /** * Complete server startup with initialization and configurable transport * This function combines the initialization and startup logic with transport selection */ export declare function startMcpServer(options?: InitializationOptions & { transportConfig?: TransportConfig; }): Promise<void>; /** * Legacy function for backward compatibility - starts with stdio transport only */ export declare function startMcpServerStdio(options?: InitializationOptions): Promise<void>; /** * Get server status and statistics */ export declare function getServerStatus(): { initialized: boolean; vectorStoreReady: boolean; documentCount?: number; configuration: InitializationOptions; }; /** * Gracefully shutdown the server */ export declare function shutdown(): Promise<void>; export default startMcpServer; export { IL2CPPVectorStore, Document, Logger };