Skip to content

.Net & Python: MCP Agent Samples #11463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
11 tasks done
markwallace-microsoft opened this issue Apr 9, 2025 · 1 comment
Closed
11 tasks done

.Net & Python: MCP Agent Samples #11463

markwallace-microsoft opened this issue Apr 9, 2025 · 1 comment
Assignees
Labels
Build Features planned for next Build conference modelcontextprotocol .NET Issue or Pull requests regarding .NET code python Pull requests for the Python Semantic Kernel

Comments

@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Apr 9, 2025

As a developer I should be able to find a sample in the SK repository that show me how to uses MCP with the agent framework

  1. Create an agent and use MCP tools with function calling.
    • Python - sample with ChatCompletionAgent and local MCP server
    • Python - sample with Azure AI Agent and local MCP Server
    • .Net - sample with ChatCompletionAgent and local MCP server
    • .Net - sample with Azure AI Agent and local MCP Server
  2. Create an agent and expose it as an MCP tool.
    • Python version
    • .Net version
  3. Create an MCP server and call an Agent to perform sampling
  • Support for chat completion and Azure AI agents.
  • Python and .Net sample
  • We need some process to detect MCP library breaking changes
@markwallace-microsoft markwallace-microsoft added triage .NET Issue or Pull requests regarding .NET code python Pull requests for the Python Semantic Kernel and removed triage labels Apr 9, 2025
@github-actions github-actions bot changed the title MCP Agent Samples .Net: MCP Agent Samples Apr 9, 2025
@github-actions github-actions bot changed the title .Net: MCP Agent Samples Python: MCP Agent Samples Apr 9, 2025
@markwallace-microsoft markwallace-microsoft changed the title Python: MCP Agent Samples .Net & Python: MCP Agent Samples Apr 9, 2025
@markwallace-microsoft markwallace-microsoft added modelcontextprotocol Build Features planned for next Build conference labels Apr 10, 2025
@markwallace-microsoft markwallace-microsoft moved this to Sprint: Planned in Semantic Kernel Apr 10, 2025
github-merge-queue bot pushed a commit that referenced this issue Apr 11, 2025
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
This adds a sample using Azure AI Agents and the local Github MCP server
as a plugin.

Partial for: #11463

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
@eavanvalkenburg
Copy link
Member

Python samples are done, so I will remove myself from this issue, @SergeyMenshykh can close once his are done.

@eavanvalkenburg eavanvalkenburg removed their assignment Apr 15, 2025
@SergeyMenshykh SergeyMenshykh moved this from Sprint: Planned to Sprint: In Progress in Semantic Kernel Apr 15, 2025
github-merge-queue bot pushed a commit that referenced this issue Apr 16, 2025
### Motivation and Context

This PR:  
- Adds samples to show MCP tools usage by chat completion and Azure AI
agents
- Updates the readme to make it more useful by providing additional
details about the way samples can be used, explored, run, and debugged
- Updates to the latest MCP package

Contributes to:
#11463
github-merge-queue bot pushed a commit that referenced this issue Apr 17, 2025
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
This PR adds a second create_mcp_server function that takes in a list of
functions/plugins/agents, and can thus easily be used to create a MCP
server based on a Agent
Adds a sample with a Azure AI Agent.
Partial for #11463 

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
github-merge-queue bot pushed a commit that referenced this issue Apr 17, 2025
### Motivation and Context

This PR adds a sample to demonstrate an SK agent exposed and consumed as
an MCP tool.

Contributes to:
#11463
github-merge-queue bot pushed a commit that referenced this issue Apr 17, 2025
### Motivation and Context

This PR moves MCP client samples into their own files/classes, as
pointed out in one of the previous PR review comments. No other changes
affecting the logic or functionality of the code have been made.

Contributes to:
#11463
@SergeyMenshykh SergeyMenshykh moved this from Sprint: In Progress to Sprint: Done in Semantic Kernel Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Features planned for next Build conference modelcontextprotocol .NET Issue or Pull requests regarding .NET code python Pull requests for the Python Semantic Kernel
Projects
Status: Sprint: Done
Development

No branches or pull requests

3 participants