Skip to content

.Net: Update MCP prompt sample #11449

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

Merged

Conversation

SergeyMenshykh
Copy link
Member

@SergeyMenshykh SergeyMenshykh commented Apr 8, 2025

Motivation, Context and Description

This PR changes the MCP prompt to be a little more useful so that it can be reused on the client side. Additionally, the prompt registration API is simplified and aligned with the resource and resource template registration APIs - With* extension methods. Lastly, it maps prompt messages to a list of chat message content that can be easily added to the chat history on the client side by a hosting app.

Contributes to: #11199

@SergeyMenshykh SergeyMenshykh self-assigned this Apr 8, 2025
@SergeyMenshykh SergeyMenshykh requested a review from a team as a code owner April 8, 2025 18:20
@markwallace-microsoft markwallace-microsoft added the .NET Issue or Pull requests regarding .NET code label Apr 8, 2025
@SergeyMenshykh SergeyMenshykh moved this to Sprint: In Review in Semantic Kernel Apr 8, 2025
@SergeyMenshykh SergeyMenshykh enabled auto-merge April 9, 2025 09:32
@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue Apr 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 9, 2025
@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue Apr 9, 2025
@SergeyMenshykh SergeyMenshykh removed this pull request from the merge queue due to a manual request Apr 9, 2025
@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue Apr 9, 2025
@SergeyMenshykh SergeyMenshykh removed this pull request from the merge queue due to a manual request Apr 9, 2025
@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue Apr 9, 2025
@SergeyMenshykh SergeyMenshykh removed this pull request from the merge queue due to a manual request Apr 9, 2025
@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue Apr 9, 2025
Merged via the queue into microsoft:main with commit 516b6a5 Apr 9, 2025
20 checks passed
@SergeyMenshykh SergeyMenshykh deleted the update-mcp-prompt-sample branch April 9, 2025 16:53
@github-project-automation github-project-automation bot moved this from Sprint: In Review to Sprint: Done in Semantic Kernel Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modelcontextprotocol .NET Issue or Pull requests regarding .NET code
Projects
Status: Sprint: Done
Development

Successfully merging this pull request may close these issues.

4 participants