claude-playwright
Version:
Seamless integration between Claude Code and Playwright MCP for efficient browser automation and testing
45 lines • 1.42 kB
TypeScript
/**
* MCP Integration Utilities
* Handles coordination between Sessions and Browser Profiles for MCP server
*/
export declare class MCPIntegration {
private sessionManager;
private profileManager;
constructor(workingDir?: string);
/**
* Initialize MCP with best available session and profile combination
*/
initializeMCPEnvironment(): Promise<{
sessionData: any;
profileData: any;
environmentVars: Record<string, string>;
}>;
/**
* Associate current session with a profile
*/
associateSessionWithProfile(sessionName: string, profileName: string): Promise<boolean>;
/**
* Save session with profile association
*/
saveSessionWithProfile(sessionName: string, storageState: any, profileName?: string, metadata?: any): Promise<boolean>;
/**
* Get recommended profile for a session
*/
getRecommendedProfile(sessionName: string): Promise<string | null>;
/**
* Clean up expired sessions and optimize profiles
*/
cleanupAndOptimize(): Promise<void>;
/**
* Get status report for MCP integration
*/
getStatusReport(): Promise<{
activeSessions: number;
expiredSessions: number;
availableProfiles: number;
currentSession?: string;
currentProfile?: string;
recommendations: string[];
}>;
}
//# sourceMappingURL=mcp-integration.d.ts.map