1. Conduid
  2. Documentation
  3. AgentFX MCP MicrosoftLearn
MCP server · Documentation

AgentFX MCP MicrosoftLearn

Example of integration between Microsoft Agent Framework and Microsoft Learn MCP Server; see official documentation

34Low

Scored 6 months ago · breakdown

About AgentFX MCP MicrosoftLearn

AgentFX MCP MicrosoftLearn is an MCP server in the Documentation category: example of integration between Microsoft Agent Framework and Microsoft Learn MCP Server; see official documentation.

Install

From source
git clone https://github.com/ppiova/AgentFX-MCP-MicrosoftLearn

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about AgentFX MCP MicrosoftLearn

Powered by Claude · Grounded in docs

I know everything about AgentFX MCP MicrosoftLearn. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Agent Framework with Microsoft Learn MCP

Two .NET console applications demonstrating the integration of Microsoft Agent Framework with Model Context Protocol (MCP) to access Microsoft Learn documentation.

� Projects

1. AgentFrameworkWithLearnMcp

Simple demo with a single question execution. Perfect for learning the basics.

2. AgentFrameworkCopilot ⭐

Interactive ChatGPT-style experience with conversation history, commands, and enhanced UI. Uses AgentThread to maintain conversation context and state across multiple interactions. Recommended for interactive use.

✨ Key Features

  • 🔌 Connection to Microsoft Learn MCP Server
  • 🔍 Dynamic tool discovery (search, fetch, code samples)
  • 🤖 AI Agent powered by Azure OpenAI
  • 🧵 AgentThread for maintaining conversation context and state
  • 🧠 Memory Store for persistent user context and personalization
  • 💬 Interactive chat loop with conversation history
  • 📊 Real-time metrics and colored UI
  • 💾 Save conversations to file

📋 Prerequisites

  • .NET 9.0 SDK
  • Azure OpenAI Service with a deployment
  • Azure CLI (az login)

⚙️ Quick Setup

  1. Authenticate with Azure:
az login
  1. Configure your Azure OpenAI settings:

Edit launchSettings.json in each project's Properties folder:

{
  "profiles": {
    "AgentFrameworkCopilot": {
      "commandName": "Project",
      "environmentVariables": {
        "AZURE_OPENAI_ENDPOINT": "https://your-resource.openai.azure.com/",
        "AZURE_OPENAI_DEPLOYMENT_NAME": "gpt-5-mini"
      }
    }
  }
}
  1. Run the project:
# Simple demo
### Option 2: Environment variables in PowerShell

```powershell
$env:AZURE_OPENAI_ENDPOINT = "https://your-resource.openai.azure.com/"
$env:AZURE_OPENAI_DEPLOYMENT_NAME = "gpt-5-mini"

Option 3: Permanent environment variables

[System.Environment]::SetEnvironmentVariable('AZURE_OPENAI_ENDPOINT', 'https://your-resource.openai.azure.com/', 'User')
[System.Environment]::SetEnvironmentVariable('AZURE_OPENAI_DEPLOYMENT_NAME', 'gpt-5-mini', 'User')

🏃 Run

cd AgentFrameworkWithLearnMcp
dotnet run

# Interactive chat (recommended)
cd AgentFrameworkCopilot
dotnet run

💬 Interactive Commands

Once running AgentFrameworkCopilot:

Command Description
/help Show available commands
/clear Start new conversation
/history View conversation history
/memory Show all stored memories
/profile Display user profile information
/save Save conversation to file
/exit Quit application

📦 Dependencies

  • Azure.AI.OpenAI (2.5.0-beta.1)
  • Azure.Identity (1.17.0)
  • Microsoft.Agents.AI.OpenAI (1.0.0-preview.251028.1)
  • ModelContextProtocol (0.4.0-preview.3)

🔄 How It Works

  1. Connects to Microsoft Learn MCP Server (https://learn.microsoft.com/api/mcp)
  2. Discovers available tools (docs search, code samples, etc.)
  3. Creates an AI Agent with Azure OpenAI (gpt-5-mini)
  4. Initializes an AgentThread to maintain conversation state
  5. Agent automatically uses MCP tools to fetch official documentation
  6. AgentThread tracks all messages and context across the conversation
  7. Returns answers with official Microsoft Learn references

🧵 About AgentThreads

AgentThread is a key component of the Microsoft Agent Framework that:

  • Maintains conversation context across multiple user interactions
  • Automatically tracks all messages (user queries and agent responses)
  • Preserves state between agent runs
  • Enables multi-turn conversations with memory
  • Can be reset with /clear command to start fresh conversations

🧠 About Memory Store

The Memory Store provides persistent context and personalization capabilities:

  • User Profile: Stores personal information (name, title, interests, location)
  • Contextual Awareness: Agent remembers user preferences and details across conversations
  • Custom Memories: Extensible key-value storage for any user-specific data
  • Integrated with System Prompt: Memory context is automatically injected into agent instructions
  • Commands:
    • /memory - View all stored memories
    • /profile - Display formatted user profile

Default User Profile

The application loads a default profile for demonstration:

Name: Pablo Piovano
Nickname: Pablito Piova
Title: Microsoft MVP
Interests: Café, Cocinar Asados Argentinos, Viajar
Location: Sunchales, Santa Fe
Country: Argentina

You can customize the profile by editing the LoadDefaultUserProfile() method in Program.cs.

🔐 Authentication

Uses AzureCliCredential for Azure authentication. Ensure you have:

  • Azure CLI installed
  • Authenticated via az login
  • Proper permissions on the Azure OpenAI resource

Happy coding! 🎉

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About AgentFX MCP MicrosoftLearn

How do I install AgentFX MCP MicrosoftLearn?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is AgentFX MCP MicrosoftLearn safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is AgentFX MCP MicrosoftLearn still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.