Build an AI agent without leaving VS Code

Microsoft Developer demonstrates building the “Sparkles” AI agent in VS Code using the Microsoft Foundry Toolkit, including deploying a model, wiring up an MCP server, and validating the agent with traces and evaluation runs for repeatable testing.

Overview

The video walks through creating a production-oriented agent project and iterating on it end-to-end from the development environment.

Build production-ready AI agents

Create a Foundry project

Select and deploy a model (GPT-5.4)

Configure the prompt agent

Connect the MCP server

Test the cupcake ordering flow

Inspect observability traces

Set up agent evaluations