UNPKG

il2cpp-dump-analyzer-mcp

Version:

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

51 lines (50 loc) 1.81 kB
/** * Transport configuration management for IL2CPP MCP Server * Handles environment variables and validation for different transport types */ import { TransportType, TransportConfig } from './transport-types'; export { TransportType, DEFAULT_TRANSPORT_CONFIG } from './transport-types'; /** * Environment variable names for transport configuration */ export declare const TRANSPORT_ENV_VARS: { readonly TYPE: "MCP_TRANSPORT"; readonly HOST: "MCP_HOST"; readonly PORT: "MCP_PORT"; readonly ENABLE_CORS: "MCP_ENABLE_CORS"; readonly API_KEY: "MCP_API_KEY"; readonly SESSION_TIMEOUT: "MCP_SESSION_TIMEOUT"; readonly ENABLE_LOGGING: "MCP_ENABLE_LOGGING"; readonly MAX_REQUEST_SIZE: "MCP_MAX_REQUEST_SIZE"; readonly RATE_LIMIT_RPM: "MCP_RATE_LIMIT_RPM"; readonly ENABLE_SSL: "MCP_ENABLE_SSL"; readonly SSL_CERT_PATH: "MCP_SSL_CERT_PATH"; readonly SSL_KEY_PATH: "MCP_SSL_KEY_PATH"; }; /** * Load transport configuration from environment variables */ export declare function loadTransportConfig(): TransportConfig; /** * Validate transport configuration */ export declare function validateTransportConfig(config: TransportConfig): { valid: boolean; errors: string[]; }; /** * Get transport configuration with validation */ export declare function getValidatedTransportConfig(): TransportConfig; /** * Create transport configuration for specific type */ export declare function createTransportConfig(type: TransportType, overrides?: Partial<TransportConfig>): TransportConfig; /** * Get environment variable documentation */ export declare function getEnvironmentVariableDocumentation(): Record<string, string>; /** * Print transport configuration summary */ export declare function printTransportConfigSummary(config: TransportConfig): void;