Repository navigation
[MCP] Update MCP SDK - #9184
Merged
Merged
[MCP] Update MCP SDK#9184
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the HotChocolate MCP adapter to a newer Model Context Protocol (MCP) ASP.NET Core SDK release and adjusts adapter/test code to align with the SDK’s structured-content JSON representation.
Changes:
- Bump
ChilliCream.ModelContextProtocol.AspNetCorefrom0.0.1-p.8to0.0.1-rc.1. - Update tool call handling to return structured content as
System.Text.Json.JsonElementinstead ofJsonNode. - Simplify MCP integration test snapshot assertions to snapshot
StructuredContentdirectly.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/HotChocolate/Adapters/test/Adapters.Mcp.Tests/IntegrationTestBase.cs |
Updates snapshot assertions to work with the new structured content type and removes JsonNode-based helpers. |
src/HotChocolate/Adapters/src/Adapters.Mcp.Core/Handlers/CallToolHandler.cs |
Adjusts StructuredContent creation to use JsonElement for MCP tool call responses. |
src/Directory.Packages.props |
Upgrades the MCP ASP.NET Core SDK package version. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Fusion Gateway Performance ResultsSimple Composite Query
Response Times & Query
query TestQuery {
topProducts(first: 5) {
inStock
name
price
shippingEstimate
upc
weight
reviews {
id
body
author {
id
username
name
}
}
}
}Deep Recursion Query
Response Times & Query
query TestQuery {
users {
id
username
name
reviews {
id
body
product {
inStock
name
price
shippingEstimate
upc
weight
reviews {
id
body
author {
id
username
name
reviews {
id
body
product {
inStock
name
price
shippingEstimate
upc
weight
}
}
}
}
}
}
}
topProducts(first: 5) {
inStock
name
price
shippingEstimate
upc
weight
reviews {
id
body
author {
id
username
name
reviews {
id
body
product {
inStock
name
price
shippingEstimate
upc
weight
}
}
}
}
}
}Variable Batching Throughput
Response Times & Query
query TestQuery($upc: ID!, $price: Long!, $weight: Long!) {
productByUpc(upc: $upc) {
inStock
shippingEstimate(weight: $weight, price: $price)
}
}Variables (5 sets batched per request) [
{ "upc": "1", "price": 899, "weight": 100 },
{ "upc": "2", "price": 1299, "weight": 1000 },
{ "upc": "3", "price": 15, "weight": 20 },
{ "upc": "4", "price": 499, "weight": 100 },
{ "upc": "5", "price": 1299, "weight": 1000 }
]Run 22352283028 • Commit 2c01b8a • Tue, 24 Feb 2026 13:35:33 GMT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of the changes (Less than 80 chars)