UNPKG

chrome-debug-mcp

Version:

MCP Server for Chrome browser automation via debugging protocol with session persistence

24 lines 941 B
/** * 检查指定主机的端口是否开放 */ export declare function isPortOpen(host: string, port: number, timeout?: number): Promise<boolean>; /** * 尝试连接到指定的Chrome主机URL */ export declare function tryChromeHostUrl(chromeHostUrl: string): Promise<boolean>; /** * 获取Docker主机IP地址 */ export declare function getDockerHostIP(): Promise<string | null>; /** * 在网络范围内扫描Chrome调试端口 */ export declare function scanNetworkForChrome(baseIP: string, port: number): Promise<string | null>; /** * 测试与远程浏览器调试WebSocket的连接。 * 首先尝试特定主机,然后在需要时尝试自动发现。 * @param port 浏览器调试端口 (默认: 9222) * @returns 如果连接成功则返回WebSocket调试器URL,否则返回null */ export declare function discoverChromeHostUrl(port?: number): Promise<string | null>; //# sourceMappingURL=browserDiscovery.d.ts.map