UNPKG

vibe-coder-mcp

Version:

Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.

46 lines 1.68 kB
export interface PortRange { start: number; end: number; service: string; } export interface PortAllocationResult { port: number; service: string; attempted: number[]; success: boolean; error?: string; } export interface AllocationSummary { allocations: Map<string, PortAllocationResult>; totalAttempted: number[]; success: boolean; } export interface InstanceInfo { pid: number; port: number; service: string; startTime: number; } export interface PortAllocatorConfig { instanceTrackingDir?: string; } export declare class PortAllocator { private static config; private static get INSTANCE_TRACKING_DIR(); static initialize(config: PortAllocatorConfig): void; static getConfig(): PortAllocatorConfig; static isPortExcluded(port: number): boolean; static isPortUsedByVibeCoderInstance(port: number): Promise<boolean>; static findAvailablePort(port: number): Promise<boolean>; static findAvailablePortInRange(range: PortRange): Promise<PortAllocationResult>; static parsePortRange(envVar: string, defaultRange: PortRange): PortRange; static detectPortConflicts(ports: number[]): Promise<Map<number, boolean>>; static allocatePortsForServices(ranges: PortRange[]): Promise<AllocationSummary>; static cleanupOrphanedPorts(): Promise<number>; static registerInstance(port: number, service: string): Promise<void>; static unregisterInstance(port: number): Promise<void>; static getActiveInstances(): Promise<InstanceInfo[]>; private static isProcessRunning; static cleanupInstanceTracking(): Promise<void>; } //# sourceMappingURL=port-allocator.d.ts.map