From 8d7e01e2eeabe7bd5cd622d688b26d28f8ae7876 Mon Sep 17 00:00:00 2001 From: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com> Date: Fri, 14 Nov 2025 10:42:28 +0000 Subject: [PATCH] fix auth issue + extra tags (#2218) --- dotnet/samples/HostedAgents/AgentWithHostedMCP/Program.cs | 2 +- dotnet/samples/HostedAgents/AgentWithHostedMCP/agent.yaml | 2 ++ dotnet/samples/HostedAgents/AgentWithTextSearchRag/agent.yaml | 1 + dotnet/samples/HostedAgents/AgentsInWorkflows/agent.yaml | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dotnet/samples/HostedAgents/AgentWithHostedMCP/Program.cs b/dotnet/samples/HostedAgents/AgentWithHostedMCP/Program.cs index d6bfca7bf7..9cbea8b73a 100644 --- a/dotnet/samples/HostedAgents/AgentWithHostedMCP/Program.cs +++ b/dotnet/samples/HostedAgents/AgentWithHostedMCP/Program.cs @@ -24,7 +24,7 @@ AITool mcpTool = new HostedMcpServerTool(serverName: "microsoft_learn", serverAd // Create an agent with the MCP tool using Azure OpenAI Responses. AIAgent agent = new AzureOpenAIClient( new Uri(endpoint), - new AzureCliCredential()) + new DefaultAzureCredential()) .GetOpenAIResponseClient(deploymentName) .CreateAIAgent( instructions: "You answer questions by searching the Microsoft Learn content only.", diff --git a/dotnet/samples/HostedAgents/AgentWithHostedMCP/agent.yaml b/dotnet/samples/HostedAgents/AgentWithHostedMCP/agent.yaml index 1a484bfade..6444f1aad0 100644 --- a/dotnet/samples/HostedAgents/AgentWithHostedMCP/agent.yaml +++ b/dotnet/samples/HostedAgents/AgentWithHostedMCP/agent.yaml @@ -9,9 +9,11 @@ metadata: authors: - Microsoft Agent Framework Team tags: + - Azure AI AgentServer - Microsoft Agent Framework - Model Context Protocol - MCP + - Tool Call Approval template: kind: hosted name: AgentWithHostedMCP diff --git a/dotnet/samples/HostedAgents/AgentWithTextSearchRag/agent.yaml b/dotnet/samples/HostedAgents/AgentWithTextSearchRag/agent.yaml index 78e45e9c56..1366071b17 100644 --- a/dotnet/samples/HostedAgents/AgentWithTextSearchRag/agent.yaml +++ b/dotnet/samples/HostedAgents/AgentWithTextSearchRag/agent.yaml @@ -10,6 +10,7 @@ metadata: authors: - Microsoft Agent Framework Team tags: + - Azure AI AgentServer - Microsoft Agent Framework - Retrieval-Augmented Generation - RAG diff --git a/dotnet/samples/HostedAgents/AgentsInWorkflows/agent.yaml b/dotnet/samples/HostedAgents/AgentsInWorkflows/agent.yaml index 5e9360efd9..900f05d513 100644 --- a/dotnet/samples/HostedAgents/AgentsInWorkflows/agent.yaml +++ b/dotnet/samples/HostedAgents/AgentsInWorkflows/agent.yaml @@ -8,6 +8,7 @@ metadata: authors: - Microsoft Agent Framework Team tags: + - Azure AI AgentServer - Microsoft Agent Framework - Workflows template: