Skip to content

.NET: Add Hosted-ToolboxMcpSkills sample - #6175

Merged
semenshi merged 6 commits into
microsoft:mainfrom
semenshi:feature/hosted-toolbox-mcp-skills-sample
Jun 2, 2026
Merged

.NET: Add Hosted-ToolboxMcpSkills sample#6175
semenshi merged 6 commits into
microsoft:mainfrom
semenshi:feature/hosted-toolbox-mcp-skills-sample

Conversation

@semenshi

@semenshi semenshi commented May 29, 2026

Copy link
Copy Markdown
Contributor

Adds a new hosted sample Hosted-ToolboxMcpSkills under dotnet/samples/04-hosting/FoundryHostedAgents/responses/ that demonstrates how to discover MCP-based skills from a Foundry Toolbox and make them available to a Foundry-hosted agent via AgentSkillsProvider.

Follows the conventions of the other samples in the folder.

Adds a hosted Foundry Responses sample that discovers MCP-based skills from a Foundry Toolbox and makes them available to the agent via AgentSkillsProvider.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 29, 2026 15:14
@moonbox3 moonbox3 added documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs .NET Usage: [Issues, PRs], Target: .Net labels May 29, 2026
@semenshi semenshi self-assigned this May 29, 2026
@semenshi semenshi moved this to In Review in Agent Framework May 29, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated Code Review

Reviewers: 4 | Confidence: 90% | Result: All clear

Reviewed: Correctness, Security Reliability, Test Coverage, Design Approach


Automated review by semenshi's agents

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 hosted sample (Hosted-ToolboxMcpSkills) under dotnet/samples/04-hosting/FoundryHostedAgents/responses/ showing how to connect to a Foundry Toolbox MCP endpoint, discover MCP-served Agent Skills via AgentSkillsProviderBuilder.UseMcpSkills, and expose them to a Foundry-hosted agent through AIContextProviders.

Changes:

  • Introduces a new hosted agent sample that connects to a Foundry Toolbox MCP endpoint and wires discovered MCP skills into the agent via AgentSkillsProvider.
  • Adds contributor and NuGet-user Docker workflows plus local .env-based configuration and documentation.
  • Registers the new sample project in dotnet/agent-framework-dotnet.slnx.

Reviewed changes

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

Show a summary per file
File Description
dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-ToolboxMcpSkills/README.md Documents the sample’s purpose, configuration, and run steps (local + Docker).
dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-ToolboxMcpSkills/Program.cs Implements the hosted agent: connects to Toolbox MCP, builds an MCP-backed skills provider, hosts via Foundry Responses.
dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-ToolboxMcpSkills/HostedToolboxMcpSkills.csproj Adds required package/project references for the sample.
dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-ToolboxMcpSkills/Dockerfile.contributor Contributor workflow Dockerfile (copies pre-published output).
dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-ToolboxMcpSkills/Dockerfile NuGet-consumer Dockerfile (restore/publish inside container).
dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-ToolboxMcpSkills/agent.yaml Container agent definition for hosting (resources + env vars).
dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-ToolboxMcpSkills/agent.manifest.yaml Agent manifest metadata + parameterization for hosting templates.
dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-ToolboxMcpSkills/.env.example Local configuration template for running the sample.
dotnet/agent-framework-dotnet.slnx Adds the new sample project to the .NET solution index.

semenshi and others added 3 commits May 29, 2026 16:24
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@semenshi
semenshi marked this pull request as ready for review May 29, 2026 16:19

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated Code Review

Reviewers: 4 | Confidence: 84% | Result: All clear

Reviewed: Correctness, Security Reliability, Test Coverage, Design Approach


Automated review by semenshi's agents

Removes the need for an explicit InnerHandler. Enables CheckCertificateRevocationList to satisfy CA5399.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@semenshi
semenshi enabled auto-merge May 29, 2026 16:59
@semenshi
semenshi disabled auto-merge May 29, 2026 18:03
@semenshi
semenshi added this pull request to the merge queue Jun 2, 2026
Merged via the queue into microsoft:main with commit 0cf4892 Jun 2, 2026
27 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in Agent Framework Jun 2, 2026
@SergeyMenshykh SergeyMenshykh self-assigned this Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs .NET Usage: [Issues, PRs], Target: .Net

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants