How cfonseca23/semantic-kernel-playwright-mcp works
Project type and purpose
• This is a .NET 8.0 console application (C#) that demos how to orchestrate AI-driven browsing and summarization.
• It combines Microsoft Semantic Kernel (for working with Azure OpenAI) with a Playwright-based Model Context Protocol (MCP) server to automate browser interactions (e.g., visiting Bing News, extracting and summarizing content).
File structure
• Top-level files:
• Program.cs – entry point; configures and runs the kernel + MCP flow
• SemanticKernelExtension.cs – contains helper methods (e.g., GetMCPClientForPlaywright, MapToFunctionsAsync)
• README.md – describes setup, features, architecture
• assets/ – contains documentation assets (demo GIF, readme)
Key architectural insights from the README
• Components: Semantic Kernel, Azure OpenAI, Playwright MCP server
• Workflow: Initialize kernel → launch MCP server → map MCP actions to SK functions → issue prompt → browser automation + summarization → output result
Elements
• Blue for AI components (Kernel, OpenAI)
• Green for browser automation (MCP, Playwright, Chromium)
• Gray for external services (Bing News)
• Orange for application code (Program.cs)
• Rectangles for processes/services