Skip to content

Comments

.NET: Add Foundry Agents Tool Sample - Local MCP#3703

Merged
rogerbarreto merged 5 commits intomicrosoft:mainfrom
rogerbarreto:feature/3674-local-mcp
Feb 10, 2026
Merged

.NET: Add Foundry Agents Tool Sample - Local MCP#3703
rogerbarreto merged 5 commits intomicrosoft:mainfrom
rogerbarreto:feature/3674-local-mcp

Conversation

@rogerbarreto
Copy link
Member

Motivation and Context

Description

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

@rogerbarreto rogerbarreto self-assigned this Feb 5, 2026
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation .NET labels Feb 5, 2026
@github-actions github-actions bot changed the title .Net: Add Foundry Agents Tool Sample - Local MCP [WIP] .NET: Add Foundry Agents Tool Sample - Local MCP [WIP] Feb 5, 2026
@rogerbarreto rogerbarreto marked this pull request as ready for review February 10, 2026 13:32
Copilot AI review requested due to automatic review settings February 10, 2026 13:32
@rogerbarreto rogerbarreto changed the title .NET: Add Foundry Agents Tool Sample - Local MCP [WIP] .NET: Add Foundry Agents Tool Sample - Local MCP Feb 10, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new .NET GettingStarted “FoundryAgents” sample that demonstrates using an MCP server from the client side (local MCP over HTTP) and passing the resolved tools into an Azure Foundry Agent.

Changes:

  • Introduces a new Step27 sample that connects to the Microsoft Learn MCP endpoint via HttpClientTransport and lists/uses discovered tools.
  • Wraps MCP tools with a delegating function to log tool invocations locally.
  • Adds README + project file for running the new sample.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step27_LocalMCP/README.md Documents prerequisites, configuration, and expected behavior for the local MCP sample.
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step27_LocalMCP/Program.cs Implements the sample: connect to MCP over HTTP, wrap tools for logging, create/run/delete agent.
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step27_LocalMCP/FoundryAgents_Step27_LocalMCP.csproj Adds the executable project targeting net10.0 with required package/project references.

@rogerbarreto rogerbarreto added this pull request to the merge queue Feb 10, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 10, 2026
@rogerbarreto rogerbarreto added this pull request to the merge queue Feb 10, 2026
Merged via the queue into microsoft:main with commit aa44e63 Feb 10, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation .NET

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants