mcp-chain-of-draft-server
Version:
A Model Context Protocol server which provides Chain of Draft style thinking
14 lines (13 loc) • 612 B
TypeScript
/**
* Checks if a port is available
* @param port The port to check
* @returns Promise that resolves to true if port is available, false otherwise
*/
export declare const isPortAvailable: (port: number) => Promise<boolean>;
/**
* Finds the next available port starting from the given port
* @param startPort The port to start scanning from
* @param maxAttempts Maximum number of ports to try (default: 100)
* @returns Promise that resolves to the first available port, or null if none found
*/
export declare const findAvailablePort: (startPort: number, maxAttempts?: number) => Promise<number | null>;