import { test, expect } from "@playwright/test"; // QA reference: qa/mcp-apps.md // Demo source: src/app/demos/mcp-apps/page.tsx // Backend: src/agents/mcp_apps_agent.py // Runtime: src/app/api/copilotkit-mcp-apps/route.ts (mcpApps.servers wires // the public Excalidraw MCP app at https://mcp.excalidraw.com, pinned // serverId: "excalidraw"). // // Pattern: MCP server-driven UI via ACTIVITY RENDERERS. The runtime // middleware fetches the UI resource associated with the `create_view` // MCP tool call and emits an activity event; CopilotKit's built-in // `MCPAppsActivityRenderer` auto-registers for the `mcp-apps` activity // type (per `@region[no-frontend-renderer-needed]` comment on page.tsx) // and paints a sandboxed