{ "cells": [ { "cell_type": "markdown", "id": "deb94027", "metadata": {}, "source": [ "# Azure AI Agents with Model Context Protocol (MCP) Support\n", "\n", "This notebook demonstrates how to use Azure AI Agents with Model Context Protocol (MCP) tools to create an intelligent agent that can leverage external MCP servers for enhanced capabilities." ] }, { "cell_type": "markdown", "id": "c65b1772", "metadata": {}, "source": [ "## Install Required NuGet Packages\n", "\n", "First, we need to install the Azure AI Agents Persistent package which provides the core functionality for working with Azure AI Agents." ] }, { "cell_type": "markdown", "id": "000d6659", "metadata": {}, "source": [ "## Keyless Authentication Benefits\n", "\n", "This notebook demonstrates **keyless authentication** which provides several advantages:\n", "- ✅ **No API keys to manage** - Uses Azure identity-based authentication\n", "- ✅ **Enhanced security** - No secrets stored in code or configuration\n", "- ✅ **Automatic credential rotation** - Azure handles credential lifecycle\n", "- ✅ **Role-based access** - Uses Azure RBAC for fine-grained permissions\n", "\n", "The `DefaultAzureCredential` will automatically use the best available credential source:\n", "1. Managed Identity (when running in Azure)\n", "2. Azure CLI credentials (during development)\n", "3. Visual Studio credentials\n", "4. Environment variables (if configured)" ] }, { "cell_type": "code", "execution_count": 1, "id": "ba8d7dfe", "metadata": { "language_info": { "name": "polyglot-notebook" }, "polyglot_notebook": { "kernelName": "csharp" } }, "outputs": [ { "data": { "text/html": [ "