Part 2 - Azure AI Foundry Agent & MCP Integration with C# & ASP.NET, Display Users List
Code & Cloud
0:00 / 0:00
Part 2 - Azure AI Foundry Agent & MCP Integration with C# & ASP.NET, Display Users List
171 просмотр · 10 месяцев назад
Code & Cloud
9,54 тыс. подписчиков
171 просмотр · 10 месяцев назад
🔗 Playlist Link: • Real World Examples - Integrate ASP.NET wi...
📹 Video Overview
In this second part of our series, we complete the two-way communication cycle by learning how to retrieve and display user data from Azure Storage Table back to our ASP.NET Core application through Azure AI Foundry Agent and MCP Server.
🎯 What You'll Learn in This Video
Create a new MCP tool to fetch all users from Azure Storage Table
Update your Azure AI Foundry Agent with the new retrieval capability
Build a new ASP.NET web page to display user lists
Handle JSON parsing and response formatting from AI agents
Implement proper data binding in Razor pages
Test the complete two-way communication flow
⏱️ Timestamps
00:00 - Introduction & Series Recap
00:52 - Today's Goal: Fetch & Display Users
02:08 - Creating the "Get All Users" MCP Tool
03:53 - Implementing User Retrieval Service Method
05:25 - Testing MCP Tool Locally
07:30 - Updating Azure AI Foundry Agent
09:31 - Building the Users List Web Page
11:46 - Integrating User Management Agent
15:10 - Handling Agent Responses & JSON Parsing
19:33 - Creating Razor Page Markup
23:03 - Testing with Multiple Users
24:39 - Complete System Recap
26:22 - Two-Way Communication Achieved!
26:47 - Preview: Next Video (User Authentication)
🛠️ Technologies Used
ASP.NET Core 8.0 - Web Application Framework
Azure AI Foundry - AI Agent Platform
MCP Server - Model Context Protocol
Azure Storage Table - Data Storage
C# - Programming Language
Razor Pages - UI Framework
💡 Key Code Snippets Covered
New MCP tool for user retrieval
Service method to fetch users from storage
Agent integration in ASP.NET controller
JSON parsing with proper serialization options
Razor page markup for user display
🔄 Complete Two-Way Communication Flow
ASP.NET → Agent: User creation (Part 1)
Agent → Storage: Data persistence (Part 1)
Storage → Agent: Data retrieval (This Video)
Agent → ASP.NET: Data display (This Video)
📚 Prerequisites
Watch • Part 1 - Azure AI Foundry Agent & MCP Inte... for foundation
Basic knowledge of C# and ASP.NET Core
Azure AI Foundry account
Understanding of MCP Server concepts
🚀 Next Video Preview
In Part 3, we'll build a complete sign-in form with user authentication, combining both creation and retrieval in a single demo!
📁 Resources
Source Code: https://github.com/Code-n-Cloud/YouTu...
Part 1: • Part 1 - Azure AI Foundry Agent & MCP Inte...