WhoBuilt

Building Interactive UIs in VS Code with MCP Apps

Jun 6, 2026· 16 min· 11K views·Watch on YouTube

Speakers

Marlene Mhangami, senior developer advocate at Microsoft and GitHub, and Liam Hampton, developer tools advocate at Microsoft and GitHub, explain MCP Apps and demonstrate how to build and use them in VS Code at AI Engineer.

MCP basics

Marlene describes MCP as an open protocol that lets applications provide context such as tools, prompts, and resources to language models. She explains the roles of hosts like VS Code, clients like GitHub Copilot, and servers that expose capabilities. She recommends finding servers through VS Code or GitHub because untrusted servers can pose security risks.

Why MCP Apps add interactive UI

Marlene says early MCP interactions mostly returned text, which could make tasks like explaining a diagram awkward. MCP Apps let server tools return interactive components that appear in chat. Her Excalidraw example produces a diagram users can move and edit.

How apps connect to tools

Marlene walks through a request for analytics: the agent chooses an MCP tool, and the server returns results with a reference to an HTML resource. VS Code fetches that resource and displays it in a sandboxed iframe. The app can communicate with the server again to get updated data during interaction.

Use cases and examples

Marlene describes data exploration, where clicking through charts can be easier than repeatedly typing questions, and e-commerce, where users could complete checkout in chat. She names Shopify as an example focused on preserving its brand experience, and also mentions Excalidraw and Figma.

Building and profiling an MCP App

Liam explains that an MCP App combines a tool, a bundled HTML resource, and a link between them; the UI can use React, Vue, Svelte, or vanilla JavaScript. He demonstrates a React flame graph app connected to a TypeScript MCP server that profiles Go code with pprof for five seconds. Copilot calls the profiler, and the results appear as an interactive flame graph in the chat iframe.

Takeaways

  • Use trusted server directories when choosing MCP servers, since servers can introduce security risks.
  • An MCP App connects a server tool’s results to a UI resource that the host can render in chat.
  • Interactive charts and diagrams can make data exploration easier than repeated text prompts.
  • A sandboxed iframe keeps an MCP App contained within the host interface.
  • A profiler MCP App can turn Go pprof output into a flame graph for inspecting where code spends time.

Mentioned in this talk

Search inside this talk

What was claimed 13

Show all 13 facts

Related talks